tazjin / nixery

Container registry which transparently builds images using the Nix package manager. Canonical repository is https://cs.tvl.fyi/depot/-/tree/tools/nixery
https://nixery.dev/
Apache License 2.0
1.82k stars 68 forks source link

fix(popcount): Fix nix-build -A nixery-popcount #88

Closed flokli closed 4 years ago

flokli commented 4 years ago

Previously, this was failing as follows:

these derivations will be built:
  /nix/store/7rbrf06phkiyz31dwpq88x920zjhnw0c-nixery-popcount.drv
building '/nix/store/7rbrf06phkiyz31dwpq88x920zjhnw0c-nixery-popcount.drv'...
building
warning: GOPATH set to GOROOT (/nix/store/4859cp1v7zqcqh43jkqsayl4wrz3g6hp-go-1.13.4/share/go) has no effect
failed to initialize build cache at /homeless-shelter/.cache/go-build: mkdir /homeless-shelter: permission denied
builder for '/nix/store/7rbrf06phkiyz31dwpq88x920zjhnw0c-nixery-popcount.drv' failed with exit code 1
error: build of '/nix/store/7rbrf06phkiyz31dwpq88x920zjhnw0c-nixery-popcount.drv' failed
flokli commented 4 years ago

@tazjin I assume you mean nix paths realized, not travis artifacts - I don't see any travis artifacts being used.

travis builds the nixery-popcount attribute, and it succeeds there.

This is due to NIX_PATH=nixpkgs=https://github.com/NixOS/nixpkgs-channels/archive/5271f8dddc0f2e54f55bd2fc1868c09ff72ac980.tar.gz using go-1.11.12.

However, it fails with a more recent nixpkgs checkout - compare running nix-build -A nixery-popcount on HEAD~1 with NIX_PATH set to something like NIX_PATH=nixpkgs=https://github.com/NixOS/nixpkgs/archive/c5e6fbd20399873ad7689840d88175d564b06724.tar.gz (or just don't set it to track your local channel, if that one is recent enough).