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

Derivations using maven are not deterministic #25686

Open
vrthra opened this Issue May 10, 2017 · 0 comments

Comments

Projects
None yet
1 participant
@vrthra
Member

vrthra commented May 10, 2017

Issue description

The builds using maven are not deterministic.

Steps to reproduce

$ nix-build -A javaPackages.mavenHello_1_1        
$ /nix/store/7cl08a5r07jppqxx2ml85dik2zvj2699-maven-hello-1.1

$ nix-build -A javaPackages.mavenHello_1_1 --check
checking path(s) ‘/nix/store/7cl08a5r07jppqxx2ml85dik2zvj2699-maven-hello-1.1’
unpacking sources
unpacking source archive /nix/store/p8m5r18sxcg04lgl0bh4clpwb1pdfiky-maven-hello-v1.1-src
...
'./target/maven-hello-1.1.jar' -> '/nix/store/7cl08a5r07jppqxx2ml85dik2zvj2699-maven-hello-1.1/target/maven-hello-1.1.jar'
error: derivation ‘/nix/store/401jjcp4q8rsjbb4jf232d6frii5z905-maven-hello-1.1.drv’ may not be deterministic: output ‘/nix/store/7cl08a5r07jppqxx2ml85dik2zvj2699-maven-hello-1.1’ differs

Technical details

  • System: (NixOS: nixos-version, Ubuntu/Fedora: lsb_release -a, ...)
$ nixos-version 
17.03.873.0c041520c3 (Gorilla)
  • Nix version: (run nix-env --version)
$ nix-env --version
nix-env (Nix) 1.11.8
  • Nixpkgs version: (run nix-instantiate --eval '<nixpkgs>' -A lib.nixpkgsVersion)
$ nix-instantiate --eval '<nixpkgs>' -A lib.nixpkgsVersion
"17.03.873.0c041520c3"
  • Sandboxing enabled: (run grep build-use-sandbox /etc/nix/nix.conf)

Yes.

@vrthra vrthra added the 0.kind: bug label May 10, 2017

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