ci/eval: specify temp Nix store for Nix commands#418153
Closed
YorikSar wants to merge 1 commit intoNixOS:masterfrom
Closed
ci/eval: specify temp Nix store for Nix commands#418153YorikSar wants to merge 1 commit intoNixOS:masterfrom
YorikSar wants to merge 1 commit intoNixOS:masterfrom
Conversation
When I ran this on macOS: ``` nix build -f ci eval.singleSystem --argstr evalSystem aarch64-darwin --arg chunkSize 10000 --arg quickTest true -L --no-link ``` I get an error: ``` attrpaths-superset.json> error: creating directory '/nix/store/.links': Operation not permitted ``` It seems Nix commands executed to generate `attrpaths-superset.json` and run `nixpkgs-eval-*` try to unconditionally create `.links` directory in Nix store. This change points them to an empty Nix Store in a temporary directory.
Contributor
|
There is a different approach to the same problem in #406307. |
wolfgangwalther
requested changes
Jun 19, 2025
Contributor
wolfgangwalther
left a comment
There was a problem hiding this comment.
Judging by the number of rebuilds.. this change proposed here seems to throw off the comparison between master branch and the PR. No attrpaths match anymore, thus everything is supposedly rebuilt. Thus, I'd say this doesn't work as is.
13 tasks
Contributor
Author
|
@wolfgangwalther You're right, I didn't think this through. The resulting JSON points to the temporary directory: {
"AMB-plugins.x86_64-linux": {
"out": "/build/tmp.O0hRSdyCZL/8hz97h4k1d0pqb573v5z9lrym9dj6snj-AMB-plugins-0.8.1"
},
"ArchiSteamFarm.x86_64-linux": {
"out": "/build/tmp.O0hRSdyCZL/q8kf0nbw4n1pfiqily4mr9rwlk197yar-ArchiSteamFarm-6.1.6.7"
},
"CuboCore.coreaction.x86_64-linux": {
"out": "/build/tmp.O0hRSdyCZL/3gkhlgcgqyhpf1z3h8igqy1plq2sks2k-coreaction-5.0.0"
},And thus it cannot be matched between runs. I'll back off and let #406307 (hopefully) to proceed. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When I ran this on macOS:
I get an error:
It seems Nix commands executed to generate
attrpaths-superset.jsonand runnixpkgs-eval-*try to unconditionally create.linksdirectory in Nix store.This change points them to an empty Nix Store in a temporary directory.
Things done
nix.conf? (See Nix manual)sandbox = relaxedsandbox = trueAdd a 👍 reaction to pull requests you find important.