Commit graph

43 commits

Author SHA1 Message Date
Cole Helbling 6f3c6309e4 Record and print tracing logs in debug mode 2024-05-21 12:43:01 -07:00
dependabot[bot] d61face7fe
Bump rustls from 0.21.10 to 0.21.11
Bumps [rustls](https://github.com/rustls/rustls) from 0.21.10 to 0.21.11.
- [Release notes](https://github.com/rustls/rustls/releases)
- [Changelog](https://github.com/rustls/rustls/blob/main/CHANGELOG.md)
- [Commits](https://github.com/rustls/rustls/compare/v/0.21.10...v/0.21.11)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-19 19:57:36 +00:00
Cole Helbling 0434d467d3 Refresh GitHub Actions JWT in the background
GitHub Actions JWTs are only valid for 5 minutes after being issued.

FlakeHub uses these JWTs for authentication, which means that after
those 5 minutes have passed and the token is expired, FlakeHub (and
by extension FlakeHub Cache) will no longer allow requests using this
token.

However, GitHub gives us a way to repeatedly request new tokens, so we
utilize that and refresh the token every 2 minutes (less than half of
the lifetime of the token).
2024-04-19 08:32:45 -07:00
Graham Christensen 1cff8aeb19
Merge pull request #49 from DeterminateSystems/dependabot/cargo/h2-0.3.26
Bump h2 from 0.3.24 to 0.3.26
2024-04-10 14:00:46 -04:00
Graham Christensen b176ae218a
Merge pull request #51 from DeterminateSystems/dependabot/cargo/whoami-1.5.1
Bump whoami from 1.4.1 to 1.5.1
2024-04-10 14:00:30 -04:00
dependabot[bot] a27ea631cf
Bump whoami from 1.4.1 to 1.5.1
Bumps [whoami](https://github.com/ardaku/whoami) from 1.4.1 to 1.5.1.
- [Changelog](https://github.com/ardaku/whoami/blob/v1/CHANGELOG.md)
- [Commits](https://github.com/ardaku/whoami/compare/v1.4.1...v1.5.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-10 15:59:51 +00:00
dependabot[bot] 252d4d424b
Bump mio from 0.8.8 to 0.8.11
Bumps [mio](https://github.com/tokio-rs/mio) from 0.8.8 to 0.8.11.
- [Release notes](https://github.com/tokio-rs/mio/releases)
- [Changelog](https://github.com/tokio-rs/mio/blob/master/CHANGELOG.md)
- [Commits](https://github.com/tokio-rs/mio/compare/v0.8.8...v0.8.11)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-10 15:59:41 +00:00
dependabot[bot] 030213d93c
Bump h2 from 0.3.24 to 0.3.26
Bumps [h2](https://github.com/hyperium/h2) from 0.3.24 to 0.3.26.
- [Release notes](https://github.com/hyperium/h2/releases)
- [Changelog](https://github.com/hyperium/h2/blob/v0.3.26/CHANGELOG.md)
- [Commits](https://github.com/hyperium/h2/compare/v0.3.24...v0.3.26)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-10 15:59:33 +00:00
Graham Christensen 64de95e342 0.2.0 2024-03-09 10:51:56 -05: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 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