Robert Hensing
c5fcb1bd50
Fix a few warnings
2025-02-17 19:29:01 +01:00
Eelco Dolstra
db7577a660
Merge pull request #12483 from DeterminateSystems/json-logger
...
JSONLogger: Log to a file descriptor instead of another Logger
2025-02-17 18:48:46 +01:00
John Ericson
a13149e03e
Merge pull request #12486 from NixOS/mergify/bp/2.26-maintenance/pr-12481
...
resolveLookupPathPath(): Fix caching of negative lookups (backport #12481 )
2025-02-17 12:32:58 -05:00
John Ericson
bcbfdc1f28
Merge pull request #12485 from NixOS/mergify/bp/2.26-maintenance/pr-10765
...
Add `SSHMaster::Connection::trySetBufferSize` (backport #10765 )
2025-02-17 12:28:47 -05:00
Eelco Dolstra
c0c14698a3
Use getStandardError()
2025-02-17 18:09:59 +01:00
John Ericson
63a603d8c0
Merge pull request #12484 from NixOS/libgit2-1.9.0
...
Support libgit2 1.9.0
2025-02-17 12:08:05 -05:00
Eelco Dolstra
640ce50da1
resolveLookupPathPath(): Fix caching of negative lookups
...
This avoids spamming in case the missing search path entry does not
exist (#12480 ).
(cherry picked from commit df08e1e204
)
2025-02-17 17:03:40 +00:00
Eelco Dolstra
7d168db83c
getDefaultNixPath(): Don't add symlinks if the target doesn't exist
...
(cherry picked from commit 8ac49ea5de
)
2025-02-17 17:03:40 +00:00
John Ericson
2ea8d3580c
Merge pull request #12481 from DeterminateSystems/search-path-spam
...
resolveLookupPathPath(): Fix caching of negative lookups
2025-02-17 12:02:48 -05:00
John Ericson
fa7f0d6d07
Allow setting ssh://
pipe size
...
Exposed for Hydra. We could make it fancier but with (a) new store
settings (b) switch to `ssh-ng://` both in the works, it doesn't seem
worth it.
(cherry picked from commit 94a7c34b2f
)
2025-02-17 16:56:35 +00:00
John Ericson
7112f8294c
Add SSHMaster::Connection::trySetBufferSize
...
It is unused in Nix currently, but will be used in Hydra. This reflects
what Hydra does in https://github.com/NixOS/hydra/pull/1387 .
We may probably to use it more widely for better SSH store performance,
but this needs to be subject to more testing before we do that.
(cherry picked from commit 0d25cc6541
)
2025-02-17 16:56:35 +00:00
John Ericson
d1b9324f07
Merge pull request #10765 from obsidiansystems/ssh-pipe-size-method
...
Add `SSHMaster::Connection::trySetBufferSize`
2025-02-17 11:55:38 -05:00
Robert Hensing
b0bbb1252a
Support libgit2 1.9.0
...
For when the overlay is used with nixos-unstable.
1.9.0 has our patches.
2025-02-17 17:30:30 +01:00
Eelco Dolstra
bc66a9bbcf
JSONLogger: Log to a file descriptor instead of another Logger
...
Logging to another Logger was kind of nonsensical - it was really just
an easy way to get it to write its output to stderr, but that only
works if the underlying logger writes to stderr.
This change is needed to make it easy to log JSON output somewhere
else (like a file or socket).
2025-02-17 17:02:15 +01:00
Eelco Dolstra
ca2e52690d
Merge pull request #12482 from DeterminateSystems/fix-test
...
dep-built-drv-2.sh: Don't fail with "cannot create symlink"
2025-02-17 12:10:33 +01:00
Eelco Dolstra
54388893bc
dep-built-drv-2.sh: Don't fail with "cannot create symlink"
2025-02-17 11:57:21 +01:00
Eelco Dolstra
df08e1e204
resolveLookupPathPath(): Fix caching of negative lookups
...
This avoids spamming in case the missing search path entry does not
exist (#12480 ).
2025-02-17 11:50:54 +01:00
Eelco Dolstra
8ac49ea5de
getDefaultNixPath(): Don't add symlinks if the target doesn't exist
2025-02-17 11:36:47 +01:00
John Ericson
94a7c34b2f
Allow setting ssh://
pipe size
...
Exposed for Hydra. We could make it fancier but with (a) new store
settings (b) switch to `ssh-ng://` both in the works, it doesn't seem
worth it.
2025-02-16 20:02:56 -05:00
John Ericson
0d25cc6541
Add SSHMaster::Connection::trySetBufferSize
...
It is unused in Nix currently, but will be used in Hydra. This reflects
what Hydra does in https://github.com/NixOS/hydra/pull/1387 .
We may probably to use it more widely for better SSH store performance,
but this needs to be subject to more testing before we do that.
2025-02-16 19:45:02 -05:00
John Ericson
917b8b2f77
Introduce DerivationOptions
...
This is a first step towards PR #10760 , and the issues it addresses.
See the Doxygen for details.
Thanks to these changes, we are able to drastically restrict how the
rest of the code-base uses `ParseDerivation`.
Co-Authored-By: HaeNoe <git@haenoe.party>
2025-02-16 18:52:44 -05:00
Robert Hensing
f0dbfada38
Merge pull request #12425 from obsidiansystems/more-interesting-dyn-drv-test-case
...
More interesting dyn drv test case
2025-02-17 00:21:52 +01:00
John Ericson
222a57c9ca
More interesting dynamic derivations example
...
Co-authored-by: Samuel Ainsworth <skainsworth@gmail.com>
2025-02-16 18:00:34 -05:00
Robert Hensing
07f853b295
Merge pull request #9415 from NixOS/fix-dynamic-derivations
...
Revert "Revert "Adapt scheduler to work with dynamic derivations
2025-02-16 23:59:39 +01:00
John Ericson
674a87462c
Merge pull request #12478 from NixOS/mergify/bp/2.26-maintenance/pr-10748
...
Expose a bunch of things in the Legacy SSH Store for Hydra (backport #10748 )
2025-02-16 17:56:54 -05:00
John Ericson
86ccad698e
Expose a bunch of things in the Legacy SSH Store for Hydra
...
(cherry picked from commit 5eade48252
)
2025-02-16 22:38:53 +00:00
John Ericson
8b911271f1
Merge pull request #10748 from NixOS/legacy-ssh-extensions-for-hydra
...
Expose a bunch of things in the Legacy SSH Store for Hydra
2025-02-16 17:37:50 -05:00
Robert Hensing
1068b9657f
Merge pull request #12400 from aidenfoxivey/add-rosetta-2-info-msg
...
Add Rosetta 2 Info Message
2025-02-15 17:47:04 +01:00
Robert Hensing
2d36679663
Merge pull request #12468 from kip93/self-input-attrs-lfs
...
Add `inputs.self.lfs` flake attribute
2025-02-15 17:30:57 +01:00
John Ericson
75db01c6f5
Merge pull request #12473 from SomeoneSerge/patch-1
...
doc: recursive-nix: advertise requiredSystemFeatures
2025-02-14 17:22:06 -05:00
John Ericson
5eade48252
Expose a bunch of things in the Legacy SSH Store for Hydra
2025-02-14 17:04:57 -05:00
Leandro Reina
8b89c453b9
Merge release notes
2025-02-14 13:54:19 +01:00
Someone
6985598153
doc: recursive-nix: advertise requiredSystemFeatures
...
It's best we teach users that the "foo" derivation is less than pure in the sense that it cannot be built just on any system, in particular that builders cannot be selected arbitrarily but based on their system-features. The `"recursive-nix"` system-feature is automatically defined by `--extra-experimental-features recursive-nix`
2025-02-14 09:50:18 +00:00
Thomas Bereknyei
3b5514e0c6
fix: linting
2025-02-13 13:04:38 -05:00
Thomas Bereknyei
753f00c351
fix: add comment about longest-possible match
2025-02-13 12:47:09 -05:00
Thomas Bereknyei
269efa01b3
fix: ensure access-token matches are complete
2025-02-13 12:45:37 -05:00
Leandro Reina
4a1d1c7f9f
Add release note
2025-02-13 18:04:32 +01:00
Leandro Reina
b2d352e6a3
Add inputs.self.lfs
2025-02-13 17:59:27 +01:00
Robert Hensing
693a38ae2e
Merge pull request #10153 from b-camacho/lfs
...
git-lfs support
2025-02-13 14:25:30 +01:00
Thomas Bereknyei
a9f4d73d3e
feat: test and document access-token prefix support
2025-02-13 07:10:51 -05:00
Thomas Bereknyei
69c7b42d28
feat: access tokens per repo
2025-02-13 06:07:43 -05:00
Robert Hensing
eb91014928
Merge pull request #12443 from DeterminateSystems/prefetch-out-link
...
nix flake prefetch: Add --out-link option
2025-02-12 22:22:04 +01:00
Eelco Dolstra
17d46041b8
Add test
2025-02-12 22:05:38 +01:00
Eelco Dolstra
a902b84374
Formatting
2025-02-12 21:51:41 +01:00
Eelco Dolstra
970942f458
Bump version
2025-02-12 21:50:20 +01:00
John Ericson
0abc264f7d
Merge pull request #6346 from Ericson2314/impure-derivations-ng
...
Get rid of `impureOutputHash`; fix possible bug
2025-02-12 15:22:31 -05:00
mergify[bot]
b3e9204833
Merge pull request #12459 from NixOS/mergify/bp/2.26-maintenance/pr-12458
...
lockFlake(): When refetching a locked flake, use the locked ref (backport #12458 )
2025-02-12 16:09:58 +00:00
Eelco Dolstra
0ff190107f
Resolve merge conflict
2025-02-12 16:54:48 +01:00
Eelco Dolstra
dffcc184d7
lockFlake(): When refetching a locked flake, use the locked ref
...
Otherwise we may accidentally update a lock when we shouldn't.
Fixes #12445 .
(cherry picked from commit 5c552b62fc
)
# Conflicts:
# src/libflake/flake/flake.cc
2025-02-12 15:46:52 +00:00
Eelco Dolstra
ed38c9de00
Merge pull request #12458 from DeterminateSystems/refetch-locked
...
lockFlake(): When refetching a locked flake, use the locked ref
2025-02-12 16:45:28 +01:00