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

Stop double pin of packages located in ./opam/opam #6343

Merged
merged 3 commits into from
Jan 16, 2025

Conversation

kit-ty-kate
Copy link
Member

Fixes #6342

The problem was that the files_in_source function would call its internal scanning function files twice on <dir> and <dir>/opam, however a side close of that subfunction would itself add <dir>/opam/opam if it is detected, which leads to the same file being detected twice.

Copy link
Collaborator

@rjbou rjbou left a comment

Choose a reason for hiding this comment

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

I've added a test in pin test (lock test is a side effect, it's not its purpose).
Otherwise, lgtm!

@kit-ty-kate kit-ty-kate merged commit 436b4fe into ocaml:master Jan 16, 2025
42 checks passed
@kit-ty-kate kit-ty-kate deleted the no-double-pin branch January 16, 2025 11:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Double pin of package when in opam directory
2 participants