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

Improves nim installation by using csources (same as atlas) #1233

Merged
merged 9 commits into from
Jul 4, 2024

Conversation

jmgomez
Copy link
Collaborator

@jmgomez jmgomez commented Jul 1, 2024

Notice when SAT is enabled, csources is stored in the cache.
Missing:

  • Proper reporting
  • Handle special versions (assume csources_2?). We could have special cases for #version-x
  • Refactor to another file (nimble.nim is crazy big already)
  • Test cases
  • Fixes an issue where the packageCache wasnt being shared in local mode
  • Remove nimble from nim compilation Fixes Remove nimble from nim compilation #1175

Notice when SAT is enabled, csources is stored in the cache.
Missing:
-- Proper reporting
-- Handle special versions (assume csources_2?). We could have special cases for #version-x
- Refactor to another file (nimble.nim is crazy big already)
@jmgomez jmgomez marked this pull request as draft July 1, 2024 12:42
@jmgomez jmgomez marked this pull request as ready for review July 3, 2024 10:48
@jmgomez jmgomez changed the title draft: improves nim installation by using csources (same as atlas) Improves nim installation by using csources (same as atlas) Jul 4, 2024
#TODO We could test special against the special versionn-x branch to get the right csources
if nimVersion.isSpecial or (major == 1 and minor >= 9) or major >= 2:
# already uses csources_v2
"csources_v2"
Copy link
Member

Choose a reason for hiding this comment

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

More future proof would be:

if major >= 3: "csources_v" &$major

But it's also somewhat risky to predict the future this far.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

ok but It's an easy enough change to do when csources is increased as there is a test already that uses it in the nimble ci

@Araq Araq merged commit fa09e48 into nim-lang:master Jul 4, 2024
9 of 10 checks passed
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.

Remove nimble from nim compilation
2 participants