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

pkg(fix): use upstream or overlay as repository name (#10605) #10634

Closed
wants to merge 1 commit into from

Conversation

moyodiallo
Copy link
Collaborator

@moyodiallo moyodiallo commented Jun 10, 2024

Fixes #10605

let repos = default_repositories @ List.map ~f:Lazy.force repos in
let repos =
match List.map ~f:Lazy.force repos with
| [] -> default_repositories
Copy link
Collaborator

Choose a reason for hiding this comment

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

if List.is_empty repos then default_repositories else List.map ~f:Lazy.force repos

@moyodiallo moyodiallo force-pushed the fix-upstream-name branch 2 times, most recently from 2ef17c4 to e7df6ba Compare June 11, 2024 14:51
Copy link
Member

@rgrinberg rgrinberg left a comment

Choose a reason for hiding this comment

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

Could you add a description to the PR so that I can understand the intention of the fix?

@moyodiallo
Copy link
Collaborator Author

Could you add a description to the PR so that I can understand the intention of the fix?

My bad, this PR is not the good fix. And overriding won't be the good fix too, because we could have two different lock_dirs, one overrides the name upstream and the other don't.

@moyodiallo moyodiallo closed this Jun 14, 2024
@moyodiallo moyodiallo deleted the fix-upstream-name branch June 14, 2024 09:34
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.

pkg: dune pkg lock raises a code error if you try to name a repository "upstream"
3 participants