-
Notifications
You must be signed in to change notification settings - Fork 454
fix: switching to custom lock dir #12712
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
base: main
Are you sure you want to change the base?
Conversation
7ffcfef to
1809abc
Compare
|
The issue was originally brought up by @mefyl. We apparently never check a case where there just is no Very nice repro, should be easy to fix. I think the code that determines the lock dir always unconditionally adds |
1809abc to
2f48ec3
Compare
|
@Leonidas-from-XIV I want to explore a fix for this before undrafting. If I manage to fix it I will include it in this PR. |
|
It's probably in |
Leonidas-from-XIV
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, that is a very fast fix with a good repro case.
| | _ :: _ :: _ -> | ||
| (* Multiple lock dirs but context doesn't specify which one to use, | ||
| fall back to default *) | ||
| Some default_source_path) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But what if default_source_path is not in workspace.lock_dirs?
It might be correct; my question is more a behavioral: if the workspace specifies lock dirs, do they exist in addition to the default lock dir or replacing the default lock dir? Personally looking from a user perspective I would assume the latter, but I think it is worth being aware of the choice.
Signed-off-by: Ali Caglayan <[email protected]>
Signed-off-by: Ali Caglayan <[email protected]>
071f050 to
7e67f02
Compare
Reproduction and fix for #12717.
This test demonstrates two issues.
When combining theSeems to be fixed by feat(pkg): autolocking #12653.contextstanza we get some internal errors.