Skip to content
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

Duplicate Entry in Cargo file leads to issues building on nix #5221

Open
Daholli opened this issue Oct 18, 2024 · 1 comment
Open

Duplicate Entry in Cargo file leads to issues building on nix #5221

Daholli opened this issue Oct 18, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@Daholli
Copy link

Daholli commented Oct 18, 2024

Version

0.13.2

Operating System

Linux

Distribution Method

deb (Linux)

Describe the issue

Heyho,

I would like to package the new version on gitbutler on nix, but due to nix unique way of handling packaging, we get build errors due to duplicate entries of cargo

NixOS/nixpkgs#347819

The system wants to symlink the same thing twice but cannot do so, Not sure what causes the duplicated entry of gix-attributes in the cargo lock.

(if you feel like this is way out of specs please ignore my request)

How to reproduce

Run

nix-shell -p nixpkgs-review --run "nixpkgs-review pr 347819"

on any a x86_64-linux system with nix installed

Expected behavior

The package builds fine from source like it did in 0.12.6

Relevant log output

building '/nix/store/qksp5w0b861p7cwqjccvgi0viznnpvg8-cargo-vendor-dir.drv'...
ln: failed to create symbolic link '/nix/store/g6krgpmcpqc0bwr26gyn2zp84qlaj4pf-cargo-vendor-dir/gix-attributes-0.22.5/f5fa2yliymrvc2qamkp6b7j5qd9fkrra-gix-attributes-0.22.5': Permission denied
error: builder for '/nix/store/qksp5w0b861p7cwqjccvgi0viznnpvg8-cargo-vendor-dir.drv' failed with exit code 1;
       last 1 log lines:
       > ln: failed to create symbolic link '/nix/store/g6krgpmcpqc0bwr26gyn2zp84qlaj4pf-cargo-vendor-dir/gix-attributes-0.22.5/f5fa2yliymrvc2qamkp6b7j5qd9fkrra-gix-attributes-0.22.5': Permission denied
       For full logs, run 'nix log /nix/store/qksp5w0b861p7cwqjccvgi0viznnpvg8-cargo-vendor-dir.drv'.
error: 1 dependencies of derivation '/nix/store/cl50j785xrp456m5aw5z6l82knlsc6ij-gitbutler-0.13.2.drv' failed to build
@Daholli Daholli added the bug Something isn't working label Oct 18, 2024
@Daholli
Copy link
Author

Daholli commented Oct 18, 2024

ah... nvm i see what the issue is... it is a depedency that also needs gix but uses a different version, that does not seem like something you guys can fix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant