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

ci:Magic Nix Cache is deprecated -> find replacement #4544

Open
JakobLichterfeld opened this issue Feb 17, 2025 · 8 comments
Open

ci:Magic Nix Cache is deprecated -> find replacement #4544

JakobLichterfeld opened this issue Feb 17, 2025 · 8 comments
Assignees
Labels
github_actions Pull requests that update Github_actions code

Comments

@JakobLichterfeld
Copy link
Collaborator

JakobLichterfeld commented Feb 17, 2025

Our CI thows the following warning

[Magic Nix Cache is deprecated: .github/workflows/ensure_linting.yml#L21](https://github.com/teslamate-org/teslamate/commit/c8e6cddb4ba6b5f4fb58257f7def1803c8a76447#annotation_32045752967)
Magic Nix Cache has been deprecated due to a change in the underlying GitHub APIs and will stop working on 1 February 2025.
To continue caching Nix builds in GitHub Actions, use FlakeHub Cache instead.

Replace...
        uses: DeterminateSystems/magic-nix-cache-action@6221693898146dc97e38ad0e013488a16477a4c4 #v9

...with...
        uses: DeterminateSystems/flakehub-cache-action@6221693898146dc97e38ad0e013488a16477a4c4 #v9

For more details: https://dtr.mn/magic-nix-cache-eol

( see for exmple: https://github.com/teslamate-org/teslamate/actions/runs/13373331839)

@JakobLichterfeld
Copy link
Collaborator Author

JakobLichterfeld commented Feb 17, 2025

https://determinate.systems/posts/magic-nix-cache-free-tier-eol/

The TL;DR:

The free Magic Nix Cache will stop working unless you’re on GitHub Enterprise Server.
Users can upgrade to FlakeHub Cache and get one month free using the coupon code FHC.
Open source projects can request a free account at support@flakehub.com.

@JakobLichterfeld
Copy link
Collaborator Author

IMO we should move away from this cache action and replace with a different one

https://github.com/nix-community/cache-nix-action

@JakobLichterfeld JakobLichterfeld added the github_actions Pull requests that update Github_actions code label Feb 17, 2025
@brianmay
Copy link
Collaborator

brianmay commented Feb 17, 2025

More documentation on change:

https://determinate.systems/posts/magic-nix-cache-free-tier-eol/

And here:

https://flakehub.com/cache

Notice to Magic Nix Cache users

GitHub will shut down the API that Magic Nix Cache uses on February 1st. Their new SDK makes it clear they don't want other languages or libraries, like Magic Nix Cache, to interact with their cache.

To continue using Magic Nix Cache after January 2025, switch to FlakeHub Cache and get one month free with the coupon code FHC.

Open source projects can contact us at support@flakehub.com to get FlakeHub Cache for free.

Our announcement blog post has more detaild about this change.

@brianmay
Copy link
Collaborator

DeterminateSystems/magic-nix-cache-action#106

@brianmay
Copy link
Collaborator

I am testing cache-nix-action on my personal project: brianmay/robotica-rust#764

@brianmay
Copy link
Collaborator

Also see: DeterminateSystems/magic-nix-cache-action#106 (comment)

@JakobLichterfeld
Copy link
Collaborator Author

Also see: DeterminateSystems/magic-nix-cache-action#106 (comment)

The lack of communication and documentation from DeterminateSystems means that I tend to no longer want to use their actions.

@brianmay
Copy link
Collaborator

Yes. same here.

I can't help but think DeterminateSystems was looking for any excuse to stop their free offering and blame github in the process. I am not at all optimistic that they will resume their development efforts or retract their statements blaming github.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
github_actions Pull requests that update Github_actions code
Projects
None yet
Development

No branches or pull requests

2 participants