Commit graph

22 commits

Author SHA1 Message Date
Maximilian Marx
19a75d99f8
feat: increase NOFILES runtime limit
Before actually getting rate limited, we simply run out of free
sockets with the default limit of just 1024. Bumping this to 16384
helps considerably with derivations that have many
prerequisites (e.g., nixpkgs#texliveFull).

Signed-off-by: Maximilian Marx <mmarx@wh2.tu-dresden.de>
2024-10-27 17:21:42 +01:00
Maximilian Marx
d553e81512
feat(http): respect Retry-After headers on HTTP 429 responses
Fixes: #6

Signed-off-by: Maximilian Marx <mmarx@wh2.tu-dresden.de>
2024-10-27 17:21:31 +01:00
Christina Sørensen
43e0d69757
build(deps): reqwest 0.11 -> 0.12
Updating crates.io index
 Locking 27 packages to latest compatible versions
  Adding atomic-waker v1.1.2
  Adding base64 v0.22.1
  Adding h2 v0.4.6
  Adding http v1.1.0
  Adding http-body v1.0.1
  Adding http-body-util v0.1.2
  Adding hyper v1.5.0
  Adding hyper-rustls v0.27.3
Updating hyper-tls v0.5.0 -> v0.6.0
  Adding hyper-util v0.1.9
Updating reqwest v0.11.27 -> v0.12.8
  Adding ring v0.17.8
  Adding rustls v0.23.15
Updating rustls-pemfile v1.0.4 -> v2.2.0
  Adding rustls-pki-types v1.10.0
  Adding rustls-webpki v0.102.8
  Adding spin v0.9.8
  Adding subtle v2.6.1
  Adding sync_wrapper v1.0.1
Updating system-configuration v0.5.1 -> v0.6.1
Updating system-configuration-sys v0.5.0 -> v0.6.0
  Adding tokio-rustls v0.26.0
  Adding untrusted v0.9.0
  Adding windows-registry v0.2.0 (latest: v0.3.0)
  Adding windows-result v0.2.0
  Adding windows-strings v0.1.0 (latest: v0.2.0)
  Adding zeroize v1.8.1

Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2024-10-27 15:31:55 +01:00
Maximilian Marx
d7d4935d2e
feat(args): ipv4 and ipv6 flags
Allow forcing use of either IPv6 or IPv4 via -4/-6 CLI flags.

Fixes: #14.
Signed-off-by: Maximilian Marx <mmarx@wh2.tu-dresden.de>
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2024-10-27 15:19:52 +01:00
Maximilian Marx
36b8842986
build(cargo): get editon from workspace
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2024-10-27 15:17:33 +01:00
Christina Sørensen
85a6d6cc9a
refactor: handle clippy lints
All checks were successful
conventional commits / conventional commits (push) Successful in 13s
build / run (push) Successful in 1m1s
check / run (push) Successful in 1m50s
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2024-09-13 07:16:34 +02:00
Christina Sørensen
cb34302e17
refactor(nix): tidy things into separate functions (this should be typestate but I'm eepy)
Some checks failed
conventional commits / conventional commits (push) Successful in 9s
build / run (push) Successful in 41s
check / run (push) Failing after 1m26s
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2024-09-12 19:15:11 +02:00
Christina Sørensen
8c271f669a
fix: relative dir installables
Some checks failed
conventional commits / conventional commits (push) Successful in 6s
build / run (push) Successful in 36s
check / run (push) Failing after 56s
A leftover `current_dir` in the command builder for installables
resulted in `nix-weather ./#` invocations, and others relying on
relative filesystem paths failing.

Resolves: #20
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2024-09-12 13:09:18 +02:00
Christina Sørensen
e949478754
feat: parse installables
Some checks failed
conventional commits / conventional commits (push) Successful in 10s
build / run (push) Successful in 54s
check / run (push) Failing after 1m4s
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2024-09-12 11:56:04 +02:00
Christina Sørensen
419976d275
feat(args): add -L/--print-build-logs flag, to feel more like nix3
All checks were successful
conventional commits / conventional commits (push) Successful in 12s
build / run (push) Successful in 1m3s
check / run (push) Successful in 1m38s
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2024-09-12 11:21:10 +02:00
Christina Sørensen
beef106b41
fix: actually cache evals
All checks were successful
conventional commits / conventional commits (pull_request) Successful in 10s
build / run (pull_request) Successful in 52s
check / run (pull_request) Successful in 1m33s
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2024-09-08 14:36:18 +02:00
Christina Sørensen
b05095ff35
refactor: various clippy lints
Some checks failed
Security audit / security_audit (pull_request) Has been cancelled
Conventional Commits / Conventional Commits (pull_request) Successful in 6s
Check Flake / security_audit (pull_request) Successful in 7m2s
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2024-09-07 11:44:24 +02:00
Christina Sørensen
7db9d3a2e1
style(rust): format to tabwidth-2
Fix: #22
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2024-09-06 11:26:56 +02:00
Christina Sørensen
c125b77683
refactor: deduplicate nix-weather cargo manifest
Some checks failed
Security audit / security_audit (push) Has been cancelled
Conventional Commits / Conventional Commits (pull_request) Has been cancelled
Security audit / security_audit (pull_request) Has been cancelled
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2024-09-06 05:11:57 +02:00
Christina Sørensen
473986588d
fix: use native async recursion
Some checks failed
Security audit / security_audit (push) Waiting to run
Conventional Commits / Conventional Commits (push) Waiting to run
/ Flake Checker (push) Waiting to run
/ Check Nix Flake (push) Waiting to run
/ Build Nix package (push) Waiting to run
Unit tests / unit-tests (ubuntu-latest, beta) (push) Waiting to run
Unit tests / unit-tests (ubuntu-latest, nightly) (push) Waiting to run
Unit tests / unit-tests (ubuntu-latest, stable) (push) Waiting to run
Unit tests / unit-tests (windows-latest, 1.70.0) (push) Waiting to run
Unit tests / unit-tests (windows-latest, beta) (push) Waiting to run
Unit tests / unit-tests (windows-latest, nightly) (push) Waiting to run
Unit tests / unit-tests (windows-latest, stable) (push) Waiting to run
Unit tests (BSD) / unit-tests-freebsd (push) Has been cancelled
Unit tests (BSD) / unit-tests-netbsd (push) Has been cancelled
Unit tests (BSD) / unit-tests-openbsd (push) Has been cancelled
Unit tests / unit-tests (macos-latest, 1.70.0) (push) Has been cancelled
Unit tests / unit-tests (macos-latest, beta) (push) Has been cancelled
Unit tests / unit-tests (macos-latest, nightly) (push) Has been cancelled
Unit tests / unit-tests (macos-latest, stable) (push) Has been cancelled
Unit tests / unit-tests (ubuntu-latest, 1.70.0) (push) Has been cancelled
Rust 1.77.0 added async recursion, we use that instead of the crate.
This requires a slight rewrite to heap pin the return value of the
closure so the function state doesn't grow.

Fix: #9
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2024-09-05 08:31:33 +02:00
Christina Sørensen
3f632969a9
fix: warn of unused loglevel
Some checks are pending
Conventional Commits / Conventional Commits (push) Waiting to run
Fix: #15
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2024-09-05 08:23:40 +02:00
Christina Sørensen
6e479e7ad2
fix: remove unnecessary println!
Some checks are pending
Conventional Commits / Conventional Commits (push) Waiting to run
Fix: #11
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2024-09-05 08:21:35 +02:00
Christina Sørensen
eade90b797
fix: don't use NIX_ALLOW_INSECURE=1
Some checks are pending
Conventional Commits / Conventional Commits (push) Waiting to run
Fix: #12
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2024-09-05 07:56:31 +02:00
Christina Sørensen
11e92f0e6b
fix: refactor log usage
Some checks are pending
Conventional Commits / Conventional Commits (push) Waiting to run
Fixes: #10
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2024-09-05 07:53:05 +02:00
Christina Sørensen
c6fd77bc01
fix: don't output empty lines without loglevel'
Some checks are pending
Conventional Commits / Conventional Commits (push) Waiting to run
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2024-09-05 07:48:21 +02:00
Christina Sørensen
e56333a708
feat: reuse compliance EUPL-1.2
Some checks are pending
Security audit / security_audit (push) Waiting to run
Conventional Commits / Conventional Commits (push) Waiting to run
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2024-09-05 07:43:17 +02:00
Christina Sørensen
2256d38a68
feat: flake + lix
Some checks are pending
Security audit / security_audit (push) Waiting to run
Conventional Commits / Conventional Commits (push) Waiting to run
/ Flake Checker (push) Waiting to run
/ Check Nix Flake (push) Waiting to run
/ Build Nix package (push) Waiting to run
Unit tests (BSD) / unit-tests-freebsd (push) Waiting to run
Unit tests (BSD) / unit-tests-netbsd (push) Waiting to run
Unit tests / unit-tests (macos-latest, 1.70.0) (push) Waiting to run
Unit tests / unit-tests (macos-latest, beta) (push) Waiting to run
Unit tests / unit-tests (macos-latest, nightly) (push) Waiting to run
Unit tests / unit-tests (macos-latest, stable) (push) Waiting to run
Unit tests / unit-tests (ubuntu-latest, 1.70.0) (push) Waiting to run
Unit tests / unit-tests (ubuntu-latest, beta) (push) Waiting to run
Unit tests / unit-tests (ubuntu-latest, nightly) (push) Waiting to run
Unit tests / unit-tests (ubuntu-latest, stable) (push) Waiting to run
Unit tests / unit-tests (windows-latest, 1.70.0) (push) Waiting to run
Unit tests / unit-tests (windows-latest, beta) (push) Waiting to run
Unit tests / unit-tests (windows-latest, nightly) (push) Waiting to run
Unit tests / unit-tests (windows-latest, stable) (push) Waiting to run
Unit tests (BSD) / unit-tests-openbsd (push) Waiting to run
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2024-09-05 07:32:31 +02:00