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

--skip-dependencies option in haxelib #343

Closed
mastef opened this issue Aug 24, 2016 · 4 comments · Fixed by #456
Closed

--skip-dependencies option in haxelib #343

mastef opened this issue Aug 24, 2016 · 4 comments · Fixed by #456

Comments

@mastef
Copy link
Contributor

mastef commented Aug 24, 2016

When installing an extension with a dependency like "openfl": "", haxelib starts downloading the latest version ( e.g. 4.0.3 ) although openfl is already present on the system ( 3.6.1 )

Now there would be two/three ways to go about this :

  • when no version number is specified, and the library exists already, use the existing library. But the drawback is that it's usually actually nice to have the latest libraries installed. So I'd rather advocate for keeping this behavior
  • allow an option like --skip-dependencies that lets the user install dependencies on their own if they wish to
  • allow an option like --no-update which only checks for dependencies being met, and doesn't auto-update to latest, unless dependency demands it ( >=4 )

Having written the last paragraph actually just noticed that dependencies can't specify a version number equal to, or above. That would be a good enhancement too

@hughsando
Copy link
Member

Yes, I would like --skip-dependencies so I can install flixel to use with NME, without 100M of lime+openfl which I do not need.
Possibly some kind of "prompt" option that allows Y/N per dependency.

@Gama11
Copy link
Member

Gama11 commented Aug 25, 2016

Sorry about that, we decided to avoid using haxelib dependencies for that exact reason for a while... But now it's become necessary to lock flixel to specific OpenFL / Lime versions.

I don't think there should be a prompt by default, that would break all sorts of CI scripts.

@hughsando
Copy link
Member

Agree, something like --skip-dependencies and --prompt-dependencies or maybe
--dependencies skip
--dependencies prompt
--dependencies ifmissing

@mastef
Copy link
Contributor Author

mastef commented Dec 1, 2017

For starters I guess it would be just checking if the --skip-dependencies parameter exists in the start of this method? src/haxelib/client/Main.hx#L960-L984

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

Successfully merging a pull request may close this issue.

3 participants