Graham Christensen
d1983bbdff
Don't try to use the netrc if itdoesn't exist
2024-11-06 09:47:44 -05:00
Graham Christensen
bf844027bc
Turn off the GitHub actions cache if the user expresses no preference, and flakehub cache is in use
2024-11-05 21:22:38 -05:00
Graham Christensen
65060bc705
Switch the GHA Caceh preference to a trinary, but treat it as a straight bool for the moment
2024-11-05 21:19:18 -05:00
Graham Christensen
3fd6eeb208
Make the FlakeHubArg a generic Trinary so we can use it for GHA Cache too
2024-11-05 21:11:26 -05:00
Cole Mickens
7841b8bbe2
flakehub cache init failure is an error
2024-11-05 15:00:56 -08:00
Graham Christensen
24af143b67
Don't fail if flakehub cache wasn't requested and its requirements weren't present ( #107 )
...
* Treat the use_flakehub flag as an enum to avoid boolean blindness
* Make the match statement around flakehub cache considerate of users who did not opt in to it
* Update magic-nix-cache/src/main.rs
2024-09-25 19:16:43 +00:00
Graham Christensen
04af54090e
Notify the user with an info if we're ignoring their netrc
2024-09-17 17:23:44 -04:00
Graham Christensen
bc76dfa4df
Clean up the netrc handling when dnixd is around
2024-09-17 17:17:11 -04:00
Cole Mickens
2bcd86656f
nix.conf: move write for 'fallback', always set it
2024-09-16 10:08:16 -07:00
Graham Christensen
3ca2a4bf5b
Reimplement using defaults
2024-08-30 13:32:11 -04:00
Cole Mickens
979ad69132
cli: add defaults for flakehub endpoints, nix.conf path
2024-08-30 09:16:53 -07:00
Graham Christensen
b5a094c7a2
Merge pull request #89 from DeterminateSystems/colemickens/mnc-netrc-uds
...
netrc: fixup handling when using dnixd/uds
2024-08-29 23:32:22 -04:00
Cole Mickens
fa02e9ad6f
convert unwraps to expects
2024-08-29 14:52:02 -07:00
Cole Mickens
21a9552b0b
startup notification: create_dir_all parent dir, add context for io ops
2024-08-29 14:35:21 -07:00
Cole Mickens
11544ed9eb
netrc: cli arg is truly optional, defaults to UDS path
2024-08-29 09:34:52 -07:00
Cole Mickens
08c8cf0275
netrc: w/ dnixd, don't update netrc, require it to be right path
2024-08-29 09:26:09 -07:00
Cole Mickens
9f46b60a8c
avoid touching netrc-file when dnixd is available
2024-08-28 11:29:37 -07:00
Graham Christensen
7c6300cfdc
Update magic-nix-cache/src/main.rs
2024-08-13 23:39:13 -04:00
Cole Mickens
685fe75327
built-store-paths: mnc can reconnect in dnixd restarts
2024-08-12 12:35:48 -07:00
Cole Mickens
3a001d12e5
built-store-paths: finish pbh code rearrangement
2024-08-12 12:02:42 -07:00
Cole Mickens
0f476bd775
factor 'legacy' pbh out into separate file
2024-08-09 14:07:48 -07:00
Cole Mickens
594748fe30
built-paths subscription: better heuristic for sipping event frames
2024-08-09 11:57:27 -07:00
Cole Mickens
c0b8f7b57b
hack: stip data frame prefix
2024-08-09 11:55:52 -07:00
Cole Mickens
f82811cc9c
hack: skip default keep-alive
2024-08-09 11:55:52 -07:00
Cole Mickens
57eb3e75c0
uds subscription: enqueue_paths
2024-08-09 11:55:52 -07:00
Cole Mickens
e5d5118022
uds subscription wip
2024-08-09 11:55:52 -07:00
Cole Mickens
4c0a2510c1
tree: upgrade axum, hyper, etc
2024-08-08 15:18:18 -07:00
Luc Perkins
da04019f81
Provide more useful disabled message
2024-07-15 17:42:44 -07:00
Cole Helbling
6a58908c6b
Make store diffing optional
2024-05-22 09:27:04 -07:00
Cole Helbling
5cc7e808dc
Bring back store diffing
2024-05-22 09:14:47 -07:00
Cole Helbling
6f3c6309e4
Record and print tracing logs in debug mode
2024-05-21 12:43:01 -07:00
Luc Perkins
1bb6c86f5d
Remove unused import
2024-05-17 15:49:20 -03:00
Luc Perkins
d1c5d5203b
Don't run server in tokio::spawn
2024-05-17 15:41:45 -03:00
Luc Perkins
5da333f97b
Add missing pkg-config dependency to dev shell
2024-05-17 14:32:40 -03:00
Luc Perkins
736bd0c019
Delete notification file if server fails to start up
2024-05-17 14:22:01 -03:00
Luc Perkins
d67f330397
Spawn daemon in separate process
2024-05-17 14:07:12 -03:00
Luc Perkins
c0b7181ddc
Allow for both startup options to be None
2024-05-17 13:32:43 -03:00
Luc Perkins
cfe5cb78c5
Add file-based notification mechanism
2024-05-17 13:22:58 -03:00
Luc Perkins
ab6bb9c47a
Restore info statement in GHA
2024-05-16 15:05:45 -03:00
Luc Perkins
1eb6003444
Derive Copy for Environment
2024-05-16 15:05:11 -03:00
Luc Perkins
a6e08a2a14
Remove info statement when not in GHA
2024-05-16 14:54:44 -03:00
Luc Perkins
8ad3089e93
Remove unnecessary determine func
2024-05-16 14:50:28 -03:00
Luc Perkins
41327e96b5
Address Clippy issues
2024-05-16 14:46:17 -03:00
Luc Perkins
136a3d43d6
Periodically fetch JWT only in GHA
2024-05-16 14:29:20 -03:00
Luc Perkins
90180e31ef
Add logic for determining environment
2024-05-16 13:53:46 -03:00
Cole Helbling
3d9bcd16a4
Make flakehub-flake-name truly optional
2024-05-09 14:29:14 -07:00
Graham Christensen
389a63ce68
Ignore post-build-hook errors
2024-05-06 12:00:24 -04:00
Eelco Dolstra
4d66c1f308
Move the post-build hook script to the Nix store
...
In self-hosted GHA runners on NixOS, the runner has a different /tmp
than the Nix daemon, so the daemon would get "file not found" trying
to execute the post-build hook. As a workaround, move the script to
the Nix store so we can be sure that the daemon can access it.
2024-04-11 18:10:56 +02:00
Eelco Dolstra
150468c70d
Fix post-build hook
...
"exec" needs to come after the environment variables.
2024-03-27 16:32:14 +01:00
Graham Christensen
fa32a1bad7
?
2024-03-11 12:07:15 -04:00