Coder Social home page Coder Social logo

cachix cache for attic about attic HOT 6 OPEN

zhaofengli avatar zhaofengli commented on August 26, 2024 2
cachix cache for attic

from attic.

Comments (6)

stratosgear avatar stratosgear commented on August 26, 2024 4

Sorry for the additional noise, here, but I also do not seem to benefit from using the above binary cache. I really look forward to be able to NOT compile attic that often... :)

from attic.

zhaofengli avatar zhaofengli commented on August 26, 2024 1

That's a good idea, but in this case more dogfooding would be nice. Currently the CI pushes to https://staging.attic.rs/attic-ci (public key: attic-ci:U5Sey4mUxwBXM3iFapmP0/ogODXywKLRNgRPQpEXxbo=) but I'll shortly switch to a more permanent instance that I've been using myself.

from attic.

kubukoz avatar kubukoz commented on August 26, 2024 1

Would it be useful to add this cache's config in the flake itself? e.g.

https://github.com/cachix/devenv/blob/5c0f94be41dd900ef473bcda7719e2995e7a9539/flake.nix#L4-L8

I'm not actually sure it propagates to downstream flakes, but if someone were to build this flake directly they could easily benefit from these caches.

I actually prefer this over adding yet another global entry for Cachix, as that increases lookup time for other builds.

from attic.

bbigras avatar bbigras commented on August 26, 2024 1

It's weird, if I run:

nix run github:zhaofengli/attic \
  --substituters "https://cache.nixos.org" \
  --trusted-public-keys "cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=" \
  --substituters "https://staging.attic.rs/attic-ci" \
  --trusted-public-keys "attic-ci:U5Sey4mUxwBXM3iFapmP0/ogODXywKLRNgRPQpEXxbo="

I see a bunch of stuff downloading from staging.attic.rs, but it still needs to build attic. It's like only the rust deps are cached.

EDIT:

maybe the right command is this, but it still fetches a lot of cargo stuff:

nix run github:zhaofengli/attic \
  --substituters "https://cache.nixos.org https://staging.attic.rs/attic-ci" \
  --trusted-public-keys "cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= attic-ci:U5Sey4mUxwBXM3iFapmP0/ogODXywKLRNgRPQpEXxbo="

from attic.

pinpox avatar pinpox commented on August 26, 2024

Any updates on this? I'm eager to try out attic, but the build takes for ever on my not-too-powerful test server.

from attic.

bbigras avatar bbigras commented on August 26, 2024

Any progress? It still seems to build everything when I run:

nix run github:zhaofengli/attic \
  --extra-substituters "https://staging.attic.rs/attic-ci" \
  --extra-trusted-public-keys "attic-ci:U5Sey4mUxwBXM3iFapmP0/ogODXywKLRNgRPQpEXxbo="

Did you move from https://staging.attic.rs/attic-ci yet?

from attic.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.