-
-
Notifications
You must be signed in to change notification settings - Fork 78
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
Using dev mode for git/hg checkouts #263
Comments
you can currently achieve that with |
I remember doing this at some point, never had issues. It would be nice if you could install it like this Would require a |
Okay, one reason for using dev mode is that it allows to specify subdir to use as a library root inside of a checkout directory. It seems that we easily can't get rid of using devmode for vcs checkouts without losing that feature. |
One viable option was discussed in #238:
However I would like to completely remove the feature of using subfolders inside checkouts, it doesn't seem to worth it and it introduces unnecessary obstacles. This should be backward-compatible in the sense already checked out dirs will continue to work, since they are using So, let's do this and then remove usage of |
I'm all for it. And it's not like you can't manually do a checkout+dev if you really need it. |
We might need to revert 1390259 and stick with "using devmode when subdir is given" because apparently some popular libs can't be installed from git without specifying a subdir: https://github.com/massiveinteractive/mcover/tree/master/src |
That's not exactly something I'd consider good practice, but well too late now. Another option would be to add a |
Or, we can keep the break, change our CI scripts to use git checkout + haxelib dev and delegate responsibility to library authors, but that's probably not a good thing to do. |
If the feature was new I'd say yes, but sadly it's not the case. So we need to remove the need of dev while keeping the subdir feature, |
I wonder if we should print a deprecation message when subdir is used, so we can remove that eventually? |
Not sure, since people are using it we could try and make it work without dev mode. |
The check to see if the dev version is equal to the directory to be removed is no longer needed See: HaxeFoundation#263 and 1390259, 866f009
* Clean up imports in client.Main Removed redundant ones and ordered them Avoid * imports where possible * Fix grammar of --quiet flag description * Fix compiler version check in `run` command * Fix a typo in Vcs module * Fix std@host_resolve error message - Correct spelling mistake - Update command suggestion * Fix incorrect hg command Non-existent option was being used: "--no-ext-diff" * Fix proxy not loading when updating through `set` * Cleanup switch case * Fix duplicate colon in install argument prompt * Remove no longer needed check The check to see if the dev version is equal to the directory to be removed is no longer needed See: #263 and 1390259, 866f009 * Remove unused import * Use defined dependency versions in checks
There is another issue with using dev mode for the subdir option, which is that it can be forgotten, leading to a broken installation. # install a version from git
haxelib git hashlink https://github.com/HaxeFoundation/hashlink.git master other/haxelib/
# then decide to temporarily use a dev version
haxelib dev hashlink /some/path
# unset the dev version, and try to switch back to the git version
haxelib dev hashilnk
haxelib set hashlink git Now the Storing a file for how a git/hg library was installed would also allow for smarter git installations/updates so that is probably the best solution. The |
Right now, when one does
haxelib git libname ...
, it checks out intogit
directory inside library folder and then sets it as a.dev
path. I think that doesn't make much sense, and we should keep dev mode separated from git/hg checkouts. What I propose is to remove setting.dev
and store "git" version to.current
like it's a normal version.The text was updated successfully, but these errors were encountered: