question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Only build attributes not found in any cache.

See original GitHub issue

This would speed up CI builds significantly and save bandwidth. Currently the cachix-action will pull built packages: https://github.com/Mic92/nur-packages/runs/589727774 In the example above there were 500 MB pulled without a single package built.

This is how it can be implemented:

  1. Get all packages: nix-env -f ./non-broken.nix -qaP \* --out-path --xml --meta > packages.xml
  2. Get all build hashes: grep -oP '(?<=/nix/store/)[^-]*' < packages.xml (obviously this should be done by proper xml parsing)
  3. Only build those attributes where curl -I https://<binary-cache>/<hash>.narinfo does not return a 404

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:1
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
Mic92commented, May 28, 2020

https://github.com/Mic92/nix-build-uncached it is. Even if your flag lands in Nix it is still going to take a while until it ends in a released version. Until than nix-build-cached will pay the builds.

0reactions
zimbatmcommented, Apr 23, 2020

nice! I have a name suggestion: nix-build-uncached. I started adding a nix-build --uncached attribute to Nix itself but this is still at a very early stage.

Read more comments on GitHub >

github_iconTop Results From Across the Web

docker buildx build
docker buildx build: The `buildx build` command starts a build using BuildKit. ... --no-cache, Do not use cache when building the image.
Read more >
Custom Attribute to cache read only Property value in C# ...
When a project is build, all properties get get set accessor methods attached to them. You can find out more here microsoft get...
Read more >
Solving common problems - Gradle User Manual
When using symbolic links, Gradle does not store the link in the build cache but the actual file contents of the destination of...
Read more >
sam build - AWS Serverless Application Model
By default, builds are not cached. If the --no-cached option is invoked, it overrides the cached = true setting in samcofig.toml. Note: AWS...
Read more >
29. Cache Abstraction - Spring
All the other caches that do not contain the method will be updated as well even ... Only available in ' unless '...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found