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

duplicate entries appear in cpanfile.snapshot #38

Closed
miyagawa opened this issue May 7, 2022 · 0 comments
Closed

duplicate entries appear in cpanfile.snapshot #38

miyagawa opened this issue May 7, 2022 · 0 comments

Comments

@miyagawa
Copy link
Owner

miyagawa commented May 7, 2022

When upgrading/downgrading a module in transient dependency, there're cases where the module appears twice in the snapshot file. Usually when you run carmel install again it will disappear.

➜  cat cpanfile
requires 'Plack';
➜  carmel install
(snip)
➜  grep URI- cpanfile.snapshot 
  URI-5.10
    pathname: O/OA/OALDERS/URI-5.10.tar.gz

➜  cat cpanfile
requires 'Plack';
requires 'URI', '==5.09';
➜  carmel install
(snip)
➜  grep URI- cpanfile.snapshot
  URI-5.09
    pathname: O/OA/OALDERS/URI-5.09.tar.gz
  URI-5.10
    pathname: O/OA/OALDERS/URI-5.10.tar.gz

With -v:

URI-5.10 found in snapshot for URI
URI not found in snapshot
   URI (5.08) in /Users/miyagawa/.carmel/5.32.1-darwin-2level/builds/URI-5.08
URI-5.10 found in snapshot for URI::Escape
URI::Escape not found in snapshot
   URI::Escape (5.10) in /Users/miyagawa/.carmel/5.32.1-darwin-2level/builds/URI-5.10
miyagawa added a commit that referenced this issue May 7, 2022
Fix #38 when searching for artifacts, consider the root requirements
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

1 participant