-
Notifications
You must be signed in to change notification settings - Fork 189
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
Improve version management of nim by nimble #1131
Conversation
50b5d18
to
0c31f6f
Compare
The following algorithm is implemented: 1. Use --nim param if specified(no validation of the version) 2. Use develop version if present(no validation of the version) 3. Use locked nim 4. Use global version if matches `require` section 5. Download and install matching version of `requires` specification does not match the existing one
tests/tnonim.nim
Outdated
# Copyright (C) Dominik Picheta. All rights reserved. | ||
# BSD License. Look at license.txt for more info. | ||
# # Copyright (C) Dominik Picheta. All rights reserved. | ||
# # BSD License. Look at license.txt for more info. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# #
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will be reverted
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
lgtm - in future versions we might want to use a precompiled version and / or not compile tooling (which makes the build take much longer) but those are orthogonal concerns |
one side effect of the tooling being built is that another nimble is built too - depending on PATH settings, this may interfere with the nimble that the user is currently using - that's something to consider for commands that create shells |
The following algorithm is implemented:
the version)
require
sectionrequires
specification does notmatch the existing one