-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Allow to substitute FODs with different storeDir #14113
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: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -88,14 +88,15 @@ private: | |
|
||
public: | ||
|
||
const PathSetting storeDir_{ | ||
PathSetting storeDir_{ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. From the first impression this seems like breaking a very important invariant of the stores (store directory is an inherent property of a store). Making storeDir mutable is not the right approach here. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I've tried to think of an alternative solution but fell short. It would of course be possible to move the whole Do you have anything in mind? |
||
this, | ||
getDefaultNixStoreDir(), | ||
"store", | ||
R"( | ||
Logical location of the Nix store, usually | ||
`/nix/store`. Note that you can only copy store paths | ||
between stores if they have the same `store` setting. | ||
between stores if they have the same `store` setting, | ||
with the exception of fixed-output derivation outputs. | ||
)"}; | ||
}; | ||
|
||
|
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.
I would love to have some systematic stuff for local vs remote setting, fyi. E.g. if you explicitly do
?store=...
, you probably don't want the remote side to silently overwrite that.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.
Hm, great point. I didn't even think about passing
?store=
manually! This diminishes the point of this PR, but I will try to amend it to introduce a way to "merge" local and remote settings.