Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change of lib directory brake haxelib #191

Closed
ibilon opened this issue Mar 23, 2015 · 3 comments
Closed

change of lib directory brake haxelib #191

ibilon opened this issue Mar 23, 2015 · 3 comments
Assignees

Comments

@ibilon
Copy link
Member

ibilon commented Mar 23, 2015

Doing another haxelib setup and then moving the lib folder will break haxelib since the path to the "real" haxelib is hardcoded.

#!/bin/sh
OLDCWD=`pwd`
cd /hardcoded/path/to/haxelib/haxelib_client/3,2,0-rc,3/src/
exec haxe -D haxelib_client=3.2.0-rc.3 --run tools.haxelib.Main -cwd $OLDCWD $@

changing the cd to

cd $(cat ~/.haxelib)/haxelib_client/3,2,0-rc,3/src/

would prevent that.

@back2dos
Copy link
Member

That might do the trick, although you cannot really assume that ~/.haxelib is the right place to look for the path.

@jasononeil Maybe we could use something more basic, like the path where haxe itself located?

@ibilon
Copy link
Member Author

ibilon commented Mar 23, 2015

@back2dos The error happened to me because I moved the lib folder away from where haxe is (so I can switch haxe version more easily)

@nadako
Copy link
Member

nadako commented Mar 12, 2016

"fixed" by #291

@nadako nadako closed this as completed Mar 12, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants