Only build attributes not found in any cache.
See original GitHub issueThis 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:
- Get all packages:
nix-env -f ./non-broken.nix -qaP \* --out-path --xml --meta > packages.xml
- Get all build hashes:
grep -oP '(?<=/nix/store/)[^-]*' < packages.xml
(obviously this should be done by proper xml parsing) - Only build those attributes where
curl -I https://<binary-cache>/<hash>.narinfo
does not return a 404
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:8 (8 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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.nice! I have a name suggestion:
nix-build-uncached
. I started adding anix-build --uncached
attribute to Nix itself but this is still at a very early stage.