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

atlas installs a different version of packages (and even different packages) than nimble #18754

Closed
timotheecour opened this issue Aug 27, 2021 · 2 comments

Comments

@timotheecour
Copy link
Member

timotheecour commented Aug 27, 2021

while attempting to fix the other atlas issues I've reported, I encountered the following problem: atlas installs a different version than nimble; this obviously poses problems as packages are designed to work with certain assumptions and typically tested using nimble, but if atlas installs different versions than nimble, those assumptions break down.

Example

starting from scratch:

NIMBLE_DIR=$HOME/.nimble_fake78 XDG_CONFIG_HOME= nimble install https://github.com/disruptek/balls
bin/nim c -r tools/atlas/atlas.nim clone https://github.com/disruptek/balls

Current Output

  • for nimble:

ls -1 $HOME/.nimble_fake78/pkgs
balls-3.4.2
grok-0.5.3
npeg-0.24.1
sync-1.4.0
ups-0.0.7

  • for atlas:
    grok is at 349c15fd1e03f1fcdd81a1edefba3fa6116ab911, with tag 0.0.4, instead of 0.5.3
    npeg is at 5d80f93aa720898936668b3bc47d0fff101ec414, with no tag (most recent is 0.24.1 which is same tag but different commit)
    sync is at 4036beb8c83acfa59ffdcbadcb3926bd953cfb39, with no tag (most recent is v1.4.0, which is same tag but different commit)
    ups is at 74c31af8030112dac758440aa51ef175992f71f3, with tag 0.0.2 instead of 0.0.7

and it installs more packages than nimble:

balls
grok
nim-bytes2human
npeg
packages (not an actual package)
sync
testes
ups

Expected Output

versions match

Additional Information

1.5.1 98f7254
this is related to #18753 but different

@timotheecour timotheecour changed the title atlas installs a different version of packages than nimble atlas installs a different version of packages (and even different packages) than nimble Aug 27, 2021
@Araq
Copy link
Member

Araq commented Aug 27, 2021

That's by design...

@Araq Araq closed this as completed Aug 27, 2021
@timotheecour
Copy link
Member Author

timotheecour commented Aug 27, 2021

That's by design...

where is that design documented / explained?
The problem here is nimble packages are developed and tested via nimble install+friends, not via atlas, so if these resolve to different hashes, it's a recepie for broken packages.

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

No branches or pull requests

2 participants