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

Outputs existing in local store but not in cache are not built #38

Open
baracoder opened this issue Feb 22, 2021 · 1 comment
Open

Outputs existing in local store but not in cache are not built #38

baracoder opened this issue Feb 22, 2021 · 1 comment

Comments

@baracoder
Copy link
Contributor

baracoder commented Feb 22, 2021

I want to use nix-build-uncached on persistent builders, so that builds are even faster, because dependencies are already cached.

I have this script to build new outputs and upload them

      nix-build-uncached ./ci.nix -build-flags '-o results/x'
      if [ -e results/x ]; then
        nix -v sign-paths -r --key-file $NIX_CACHE_KEY ./results/x*
        nix copy --to $BINARY_CACHE_URL ./results/x*
      fi

Now if I mess up the signing & uploading part, I end up in a situation, where the outputs are present on the builder but not in the cache and nix-build-uncached will not create any outputs.

Unfortunately nix-build --dry-run does not provide any information about those paths.

Related NixOS/nix#1607

@Mic92
Copy link
Owner

Mic92 commented Feb 22, 2021

I have this problem too, but not yet a solution.

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

No branches or pull requests

2 participants