Commit graph

34 commits

Author SHA1 Message Date
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 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 e5513406df Update to latest attic 2024-02-29 16:26:48 +01:00
Cole Helbling 8ce3c6cafb fixup: Cargo.toml 2024-02-27 09:57:20 -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
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 2617132c3a Cargo.lock: update h2 2024-01-23 14:19:01 -08: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 9781bb8b6e Improve error handling in FlakeHub cache setup
Also update the token endpoint.
2024-01-10 20:19:04 +01:00
Eelco Dolstra c2542a8016 Ignore errors from the post-build hook
Also, pass the daemon port via the wrapper script rather than an
environment variable.
2024-01-10 16:55:22 +01:00
Eelco Dolstra 16dd05e8f0 Update rustls-webpki dependency
https://github.com/DeterminateSystems/magic-nix-cache-priv/security/dependabot/1
2024-01-09 12:01:46 +01:00
Eelco Dolstra 3a1064ece3 Update rustix dependency
https://github.com/DeterminateSystems/magic-nix-cache-priv/security/dependabot/2
2024-01-08 17:18:13 +01:00
Ana Hobden 6fda83104b Update some dependencies 2023-12-19 10:58:10 -08:00
Eelco Dolstra f757190c3b Error handling 2023-12-14 21:35:50 +01:00
Eelco Dolstra 5c068ecf75 Update attic dependency 2023-12-14 17:42:46 +01:00
Eelco Dolstra fd1420febf
Add support for pushing to Attic (#1)
* Add support for pushing to Attic

* fmt/clippy

* Fix attic dependency

* Pass ssh private key

* Try to inherit secrets

* Fix static build

* Fix default package

* Fix daemonizing

* Fix clippy

* Update nix.conf

* Add --use-attic flag

* --use-attic -> --use-flakehub

* Handle project not existing

* Handle Attic init failure

* Skip .chroot paths

* Update netrc

* Downgrade to Nixpkgs 23.05 to fix static builds

* Use rust 1.70

We need 1.70, but 1.69 is the default in Nixpkgs 23.05.

* Rename stuff

* Use magic-nix-cache-priv

* Hack
2023-12-14 08:09:09 -08:00
Graham Christensen dde3e15050 release 0.1.2 2023-12-04 14:58:46 -05:00
Luc Perkins 3e4969b5be
Enable CLI help output 2023-06-28 13:37:35 -07:00
Graham Christensen 0d28f6ca05
v0.1.1 2023-06-27 13:32:46 -04:00
Graham Christensen a71b77404a
Add diagnostics data, and a readme about it 2023-06-25 23:06:40 -04:00
Luc Perkins fa869ccfd8
Rename the tool in all sources (#13) 2023-06-24 16:24:52 -06:00
Graham Christensen 407824895b
trustdns? 2023-06-22 22:29:57 -04:00
Graham Christensen 0573bfab4e
use a pretty fmt 2023-06-22 21:28:35 -04:00
Zhaofeng Li d1e56e0796 Disable unused Cargo features 2023-05-22 16:00:34 -06:00
Zhaofeng Li 0cd6c9c059 Misc cleanup 2023-05-22 16:00:34 -06:00
Zhaofeng Li d683065dc1 Automatically push new store paths at the end of workflow 2023-05-19 02:48:52 -06:00
Zhaofeng Li 0e0bef15fb Support forking into background
This makes the JS action simpler.
2023-05-19 02:48:52 -06:00
Zhaofeng Li 233c024a10 gha-cache: Strip UTF-8 BOM in error responses 2023-05-19 02:48:52 -06:00
Zhaofeng Li 03726dd5ba Parallelize chunk uploads 2023-05-08 12:59:57 -06:00
Zhaofeng Li a6692a364e Add better default logging configurations for development 2023-05-08 12:59:57 -06:00
Zhaofeng Li a6873c91f5 Add simple request statistics to debug builds 2023-05-08 12:59:57 -06:00
Zhaofeng Li f4e6a71999 Track Cargo.lock
`cargo init --lib` ignores it by default :(
2023-05-08 04:13:01 -06:00