Skip to content

Weird behaviour with nix eval and paths: <<unknown>> prefix since 8dc2b2715bc5dc401dd83a1104332c674b335c72 #13295

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

Open
2 tasks
NobbZ opened this issue May 29, 2025 · 0 comments · May be fixed by #13296
Open
2 tasks
Labels

Comments

@NobbZ
Copy link
Contributor

NobbZ commented May 29, 2025

Describe the bug

when running nix eval --expr '/a', «unknown»/a is printed.

Steps To Reproduce

Expected behavior

Just /a is printed.

Metadata

since (see log):

nix (Nix) 2.27.0pre20250219_8dc2b27

still affected:

nix (Nix) 2.30.0pre20250527_de71ceb

Additional context

initial commit: 8dc2b27

bisection log
git bisect start
# status: waiting for both good and bad commits
# good: [206e32e2d7c72c940a4348648f5de46122c495c9] Mark release
git bisect good 206e32e2d7c72c940a4348648f5de46122c495c9
# status: waiting for bad commit, 1 good commit known
# bad: [0a66906e55bb1393091284460f959106a1c09a23] Merge pull request #12924 from NixOS/mergify/bp/2.28-maintenance/pr-12911
git bisect bad 0a66906e55bb1393091284460f959106a1c09a23
# good: [b24757f08ab4ae98a9b6e8756fe21fa7e2d55248] Merge pull request #11231 from DeterminateSystems/release-notes
git bisect good b24757f08ab4ae98a9b6e8756fe21fa7e2d55248
# good: [daa8ceb022dcf182ae8db889533b778b471f84bb] Merge pull request #11986 from DeterminateSystems/fix-warning
git bisect good daa8ceb022dcf182ae8db889533b778b471f84bb
# good: [fc83c6ccb3b300256508297bb92dd95e18a81213] Merge pull request #12379 from silvanshade/blake3-c
git bisect good fc83c6ccb3b300256508297bb92dd95e18a81213
# bad: [d433a2242e4bc5be72d18d81ee2bfd5dbb35b9be] Merge pull request #12553 from DeterminateSystems/archive-relative-paths
git bisect bad d433a2242e4bc5be72d18d81ee2bfd5dbb35b9be
# good: [693a38ae2e6d6bcbe39ec1d4034821d6f90cf9f5] Merge pull request #10153 from b-camacho/lfs
git bisect good 693a38ae2e6d6bcbe39ec1d4034821d6f90cf9f5
# good: [da5109835b408bf8bbffc464a40a764f0e84d9f6] Merge pull request #12498 from NixOS/fix-cli-fine-version
git bisect good da5109835b408bf8bbffc464a40a764f0e84d9f6
# skip: [c3d8799f9f969de14983ddd7d145c58e8566e22c] MountedSourceAccessor: Remove redundant pathExists() method
git bisect skip c3d8799f9f969de14983ddd7d145c58e8566e22c
# good: [641733fd26bbc728b9337b8a356c67c0293ccf8c] Add test
git bisect good 641733fd26bbc728b9337b8a356c67c0293ccf8c
# bad: [76f41196054aafa36b4a364c91d4dffaa39e2d87] Merge pull request #12391 from SuperSandro2000/per-user-stat-chmod
git bisect bad 76f41196054aafa36b4a364c91d4dffaa39e2d87
# bad: [8dc2b2715bc5dc401dd83a1104332c674b335c72] In pure eval mode, restrict rootFS to just the Nix store
git bisect bad 8dc2b2715bc5dc401dd83a1104332c674b335c72
# good: [99e78c37f7a00bc9d0573f548f5c23ebf5d42677] Use UnionSourceAccessor to mount the chroot store on top of the real store directory
git bisect good 99e78c37f7a00bc9d0573f548f5c23ebf5d42677
# good: [4206d95996a2da037b2c76f53bfd632f663ac4dc] Remove sourcePathToStorePath()
git bisect good 4206d95996a2da037b2c76f53bfd632f663ac4dc
# first bad commit: [8dc2b2715bc5dc401dd83a1104332c674b335c72] In pure eval mode, restrict rootFS to just the Nix store

Checklist


Add 👍 to issues you find important.

@NobbZ NobbZ added the bug label May 29, 2025
xokdvium added a commit to xokdvium/nix that referenced this issue May 29, 2025
Judging by the comment for `makeEmptySourceAccessor` the prefix has
to be empty:

> Return a source accessor that contains only an empty root directory.

Fixes NixOS#13295.
xokdvium added a commit to xokdvium/nix that referenced this issue May 29, 2025
Judging by the comment for `makeEmptySourceAccessor` the prefix has
to be empty:

> Return a source accessor that contains only an empty root directory.

Fixes NixOS#13295.
@xokdvium xokdvium linked a pull request May 29, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant