Commit graph

460 commits

Author SHA1 Message Date
Graham Christensen 31b9becad9 Merge remote-tracking branch 'origin/main' into HEAD 2024-03-04 11:44:59 -05:00
Graham Christensen 77af0493d2
Apply suggestions from code review 2024-03-04 11:38:31 -05:00
Eelco Dolstra b2a2acdecc
Merge pull request #21 from DeterminateSystems/eelcodolstra/fh-224-magic-nix-cache-use-post-build-hook-for-the-gha-cache-as
Use post-build hook to trigger GHA cache uploads
2024-03-01 18:20:50 +01:00
Cole Helbling 619a6346c0 Merge remote-tracking branch 'origin/eelcodolstra/fh-224-magic-nix-cache-use-post-build-hook-for-the-gha-cache-as' into merge-against-upstream 2024-03-01 08:40:20 -08:00
Eelco Dolstra 9bf26f0680 Invalidate negative narinfo cache entries 2024-03-01 11:55:59 +01:00
Eelco Dolstra b53876db25 Typo 2024-02-29 22:48:51 +01:00
Eelco Dolstra e99ef6ba61 Log upload 2024-02-29 22:31:07 +01:00
Eelco Dolstra 7a2d7ce296 Simplify dev shell 2024-02-29 21:42:35 +01:00
Eelco Dolstra f16e3c292a Make NAR upload streaming 2024-02-29 21:22:44 +01:00
Eelco Dolstra 334bcc7df9 Compress 2024-02-29 20:45:12 +01:00
Eelco Dolstra 625e95f484 Trigger GHA cache uploads from the post-build hook
Also, a worker task now does the uploads directly rather than having
magic-nix-cache invoke "nix copy" via HTTP to itself.
2024-02-29 16:31:29 +01:00
Eelco Dolstra a560959d65 README 2024-02-29 16:27:19 +01:00
Eelco Dolstra e5513406df Update to latest attic 2024-02-29 16:26:48 +01:00
Cole Helbling 14b3ed8242
Merge pull request #18 from DeterminateSystems/configure-flakehub-flake-name
Allow configuring the FlakeHub flake name
2024-02-28 03:44:18 -08:00
Cole Helbling 8ce3c6cafb fixup: Cargo.toml 2024-02-27 09:57:20 -08:00
Cole Helbling 531387f66f Allow configuring the FlakeHub flake name 2024-02-27 09:47:46 -08:00
Cole Helbling bf8c52586b Merge remote-tracking branch 'upstream/main' into merge-against-upstream 2024-02-27 08:51:49 -08:00
Cole Helbling 3b8363028d just hack in an unsafe way to turn a string into a cache name without validation 2024-02-27 08:49:21 -08:00
Cole Helbling 34956e86bb checkpoint 2024-02-27 08:30:35 -08:00
Eelco Dolstra 308fa515eb
Merge pull request #17 from DeterminateSystems/eelcodolstra/fh-218-clean-up-the-magic-nix-cache-priv-backend-to-be-published
Get rid of unwraps/expects
2024-02-26 17:02:17 +01:00
Graham Christensen f7e335a369
Merge pull request #43 from DeterminateSystems/privacy-policy
Correct privacy policy link
2024-02-25 16:45:31 -05:00
Graham Christensen 448ba42429
Correct privacy policy link 2024-02-25 15:25:09 -05:00
Eelco Dolstra 1f46e11aa7 Cleanup 2024-02-24 10:28:18 +01:00
Eelco Dolstra b41211dc24
Apply suggestions from code review
Co-authored-by: Cole Helbling <cole.helbling@determinate.systems>
2024-02-24 10:12:54 +01:00
Eelco Dolstra 5f981d2f91 Get rid of unwraps/expects
The remaining ones should be genuine "impossible" conditions.

main() now renders the error value using anyhow.
2024-02-23 19:45:38 +01:00
Eelco Dolstra 75b1450fdf
Merge pull request #16 from DeterminateSystems/http-startup-notification
Send startup notification via HTTP
2024-02-23 18:25:04 +01:00
Eelco Dolstra 0607f5efa4 Use reqwest::header::CONTENT_TYPE 2024-02-23 18:18:34 +01:00
Eelco Dolstra f6c21a9184 Send startup notification via HTTP 2024-02-23 15:34:22 +01:00
Eelco Dolstra 0537b74a1e
Merge pull request #15 from DeterminateSystems/hoverbear/fh-169-magic-nix-cache-priv-try-logging-in-to-flakehub-if-it-hasnt
Try logging into FlakeHub if nix-installer didn't do that for us
2024-02-13 22:47:39 +01:00
Ana Hobden 0e4f6af07b FlakeHub not Flakehub 2024-02-13 09:37:11 -08:00
Ana Hobden f1d5b7fdc5 Try logging into FlakeHub if nix-installer didn't do that for us 2024-02-12 14:17:20 -08:00
Eelco Dolstra ee9b236259
Merge pull request #14 from DeterminateSystems/eelcodolstra/fh-177
Fix support for multiple output derivations
2024-02-12 17:05:15 +01:00
Eelco Dolstra 7965e647fe Fix support for multiple output derivations
OUT_PATHS is split by spaces, not newlines.
2024-02-12 15:05:59 +01:00
Eelco Dolstra de2b44169c Don't crash if the client sends an invalid store path name 2024-02-12 14:52:35 +01:00
Cole Helbling 9e7cf4e775
Merge pull request #42 from DeterminateSystems/dependabot/cargo/h2-0.3.24
Bump h2 from 0.3.19 to 0.3.24
2024-01-31 08:09:53 -08:00
dependabot[bot] b9f40af341
Bump h2 from 0.3.19 to 0.3.24
Bumps [h2](https://github.com/hyperium/h2) from 0.3.19 to 0.3.24.
- [Release notes](https://github.com/hyperium/h2/releases)
- [Changelog](https://github.com/hyperium/h2/blob/v0.3.24/CHANGELOG.md)
- [Commits](https://github.com/hyperium/h2/compare/v0.3.19...v0.3.24)

---
updated-dependencies:
- dependency-name: h2
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-31 15:44:33 +00:00
Cole Helbling 1835ad1c08
Merge pull request #13 from DeterminateSystems/update-deps
Cargo.lock: update h2
2024-01-23 14:51:48 -08:00
Cole Helbling 2617132c3a Cargo.lock: update h2 2024-01-23 14:19:01 -08:00
Eelco Dolstra 53c8320588
Merge pull request #12 from DeterminateSystems/error-handling
Error handling improvements
2024-01-19 17:02:07 +01:00
Cole Helbling f61523931c Don't exit with an error if we can help it
Otherwise, the Nix build will fail.
2024-01-19 07:06:21 -08:00
Cole Helbling 04197c7742 Improve error handling if enqueuing paths failed 2024-01-18 14:27:58 -08:00
Cole Helbling 3cb4c6dbe0 Show full backtrace if build hook panics 2024-01-18 14:20:57 -08:00
Graham Christensen d9f6addd3f
Merge pull request #11 from DeterminateSystems/no-nixos-cache
Don't create the cache
2024-01-18 15:25:31 -05:00
Cole Helbling 28eca6460d Don't create the cache
attic-priv has functionality to getsert caches as they are requested.
2024-01-18 11:06:19 -08:00
Cole Helbling e8efa56401 flake: don't include cross in default devshell 2024-01-18 11:06:00 -08:00
Cole Helbling b08e97efea Don't rely on cache.nixos.org
Users can substitute from it the first time they encounter a path it
has, but otherwise they should re-substitute from us.
2024-01-18 07:38:51 -08:00
Eelco Dolstra ac64bcd221
Merge pull request #10 from DeterminateSystems/eelcodolstra/fh-159-magic-nix-cache-handle-flakehub-errors-more-gracefully
Improve error handling in FlakeHub cache setup
2024-01-11 11:02:41 +01:00
Eelco Dolstra ffccb9bd98 BadURL -> BadUrl 2024-01-10 23:34:15 +01:00
Eelco Dolstra 0d5e889783 Remove use of /cache/token to get a fallback cache
We rely on the GitHub token creating a project on FlakeHub as a side
effect.
2024-01-10 21:31:14 +01:00
Eelco Dolstra 0d9e0c088c Don't use /cache/token anymore except as a fallback 2024-01-10 20:48:48 +01:00