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

Improve version management of nim by nimble #1131

Merged
merged 7 commits into from
Nov 18, 2023
Merged

Conversation

yyoncho
Copy link
Contributor

@yyoncho yyoncho commented Aug 16, 2023

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

@yyoncho yyoncho force-pushed the auto-nim branch 3 times, most recently from 50b5d18 to 0c31f6f Compare August 16, 2023 07:16
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.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

# # ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will be reverted

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

@arnetheduck
Copy link

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

@arnetheduck
Copy link

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

@Araq Araq merged commit a1fdbe8 into nim-lang:master Nov 18, 2023
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 this pull request may close these issues.

4 participants