Skip to content

Conversation

@midchildan
Copy link

Inside the guest, Nix operations fail on flakes in Git repositories located on the host filesystem due to differing UIDs. The changes in this PR fixes this.

Before:

# nix build .#legacyPackages.aarch64-linux.hello
error:
       … while fetching the input 'git+file:///Users/midchildan/Documents/src/repos/github.com/NixOS/nixpkgs'

       error: opening Git repository "/Users/midchildan/Documents/src/repos/github.com/NixOS/nixpkgs": repository path '/Users/midchildan/Documents/src/repos/github.com/NixOS/nixpkgs' is not owned by current user

After:

# nix build .#legacyPackages.aarch64-linux.hello
# result/bin/hello
Hello, world!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant