Qyriad
66a25796cd
warnOnce for MixDefaultProfile
2024-05-11 15:59:53 -06:00
Qyriad
6edbe414a4
WIP: restore /nix/var/nix as source of truth for profiles
...
See-also: https://github.com/NixOS/nix/pull/5226
Change-Id: I35082c9a59148f7fb132232659c3a254d514d190
2024-05-11 15:59:40 -06:00
Qyriad
c95dfadbf1
rebase onto main
2024-05-11 15:40:06 -06:00
Qyriad
88d9b70f67
add clarifying doc-comments on {get,create}NixStateDir()
...
NixStateDir() != NIX_STATE_DIR. These functions should honestly probably
be renamed.
Change-Id: I00f54b742bba6188bbc7f2410956d956780b99d3
2024-05-11 15:40:00 -06:00
Qyriad
00de4ab5ab
WIP: restore /nix/var/nix as source of truth for profiles
...
See-also: https://github.com/NixOS/nix/pull/5226
Change-Id: I35082c9a59148f7fb132232659c3a254d514d190
2024-05-11 15:40:00 -06:00
Qyriad
726ee27ef4
fixup commit msg for the state dir thing
2024-05-11 15:39:00 -06:00
Qyriad
fdb2103358
WIP: restore /nix/var/nix as source of truth for profiles
...
See-also: https://github.com/NixOS/nix/pull/5226
Change-Id: I35082c9a59148f7fb132232659c3a254d514d190
2024-05-11 15:37:43 -06:00
Qyriad
92e171a38a
add clarifying doc-comments on {get,create}NixStateDir()
...
NixStateDir() != NIX_STATE_DIR. These functions should honestly probably
be renamed.
Change-Id: I00f54b742bba6188bbc7f2410956d956780b99d3
2024-05-11 15:37:43 -06:00
Qyriad
4fb82ea7b5
split out the comment bullshit
2024-05-11 15:37:09 -06:00
Qyriad
e63572f540
WIP: restore /nix/var/nix as source of truth for profiles
...
See-also: https://github.com/NixOS/nix/pull/5226
Change-Id: I35082c9a59148f7fb132232659c3a254d514d190
2024-05-11 15:34:40 -06:00
Qyriad
41b903c5fe
add clarifying comments on {get,create}NixStateDir()
...
Change-Id: I00f54b742bba6188bbc7f2410956d956780b99d3
2024-05-11 15:34:40 -06:00
Qyriad
39fe3c829e
squash
2024-05-11 15:30:16 -06:00
Qyriad
b46275bdab
WIP: restore /nix/var/nix as source of truth for profiles
...
See-also: https://github.com/NixOS/nix/pull/5226
Change-Id: I35082c9a59148f7fb132232659c3a254d514d190
2024-05-11 15:30:00 -06:00
Qyriad
669410c360
okay cleanup exists
2024-05-11 15:26:53 -06:00
Qyriad
cb258d3d8c
okay cleanup exists
...
Change-Id: I972a7f0b4a9bbfa41a794a63f2a28ac776f04b92
2024-05-11 15:26:49 -06:00
Pierre Bourdon
a30c567336
filetransfer: unit test content-encoding handling
...
Very basic behavior test to ensure that gzip data gets internally
decompressed by the file transfer pipeline.
Change a std::string_view return value in the test harness to
std::string. I wouldn't call myself a C++ beginner and I still managed
to shoot myself in the foot like three times with the lifetime
managements there (e.g. [&] { return an_std_string; } ends up with a
dangling string_view!).
Change-Id: I1360750d4181ce1ca2a3aa4dc0e97e131351c469
2024-05-11 15:58:32 +02:00
Pierre Bourdon
38d825b21e
filetransfer: fix decompression regression from 121edecf
...
121edecf65
added a new state field to
carry over content encoding settings from transfer to sink creation, but
never actually set that field.
Change-Id: I714b2efe745561e851b78a4791479b3501db8c72
2024-05-11 14:49:23 +02:00
Qyriad
389c244572
okay, tests pass
2024-05-10 18:41:16 -06:00
Qyriad
7d1ce1420b
okay, tests pass
...
Change-Id: I2610ed6b3405969d07775e7d72fee9ebfb50cc29
2024-05-10 18:41:07 -06:00
Qyriad
d0b654cf76
add sanity test
2024-05-10 17:07:44 -06:00
Qyriad
2955732baa
add sanity test
...
Change-Id: Ie5d378168d5ff1c12abc48c40860da9021ebeb1d
2024-05-10 17:07:39 -06:00
Qyriad
f6dc40cd1c
Merge "bump the extra --version info from info to notice, -vv -> -v" into main
2024-05-10 21:56:09 +00:00
raito
4ebbd4362f
Merge "feat(libstore): print the first line of stdout of SSH in case of failure" into main
2024-05-10 19:33:36 +00:00
raito
8404a1f66d
feat(libstore): print the first line of stdout of SSH in case of failure
...
In case of failure to connect as can be seen in
https://buildbot.lix.systems/#/builders/39/builds/1386/steps/1/logs/stdio
It is difficult to understand what happened, if we enabled the talkative
verbose level, we could learn about the first line SSH sent us.
In practice, this is not workable, we can just make it warn all the
time.
Change-Id: Iaaf56894060a58f2dfc78254bb60b1c43482f9bb
Signed-off-by: Raito Bezarius <raito@lix.systems>
2024-05-10 20:22:47 +02:00
Qyriad
07a230ec73
add --verbose --version commit
2024-05-10 11:59:19 -06:00
Qyriad
c5b931c437
put default profile in --verbose --version
...
Change-Id: Ia9001168d6275284dc54d851c91be51a9dbc3c13
2024-05-10 11:58:53 -06:00
Qyriad
d003dcd7f4
bump the extra --version info from info to notice, -vv -> -v
...
requiring *two* --verbose to print extra information on --version is a
weird flex
Change-Id: I05d043da1bf583f34e9d1fc206144ea4ca9a859d
2024-05-10 11:55:17 -06:00
Qyriad
1085f04018
hopefully more robust
2024-05-10 11:52:20 -06:00
Qyriad
2a79a9e086
split getDefaultProfile() and ensureDefaultProfile()
...
Change-Id: I5b2820b92423afc3d7036cb2d45ffcafc08af34d
2024-05-10 11:51:46 -06:00
Qyriad
e6399a3776
working fucking state
2024-05-09 21:14:36 -06:00
Qyriad
130b2266ba
working fucking state
...
Change-Id: I5b2820b92423afc3d7036cb2d45ffcafc08af34d
2024-05-09 21:14:25 -06:00
eldritch horrors
ceccac835c
libutil: remove callback.hh
...
it's no longer used. it really shouldn't have existed this long since it
was just a mashup of both std::promise and std::packaged_task in a shape
that makes composition unnecessarily difficult. all but a single case of
Callback pattern calls were fully synchronous anyway, and even this sole
outlier was by far not important enough to justify the extra complexity.
Change-Id: I208aec4572bf2501cdbd0f331f27d505fca3a62f
2024-05-10 02:21:11 +02:00
eldritch horrors
b66451ae7f
libstore: de-callback-ify FileTransfer
...
also add a few more tests for exception propagation behavior. using
packaged_tasks and futures (which only allow a single call to a few
of their methods) introduces error paths that weren't there before.
Change-Id: I42ca5236f156fefec17df972f6e9be45989cf805
2024-05-10 02:21:11 +02:00
Qyriad
5c111af4ba
Revert "WIP: restore /nix/var/nix as source of truth for profiles"
...
This reverts commit fbeef68d63
.
this codebase fucking confuses me.
2024-05-09 17:27:09 -06:00
eldritch horrors
28a98d152c
libstore: de-callback-ify Store::queryRealisation
...
Change-Id: I8d74745c519518f163f51dfaa39063836f17599e
2024-05-09 23:18:05 +02:00
eldritch horrors
17965bf11c
libstore: un-callback-ify Store::queryRealisationUncached
...
Change-Id: I4a328f46eaac3bb8b19ddc091306de83348be9cf
2024-05-09 23:18:05 +02:00
eldritch horrors
2f4a1dd6e0
libstore: de-callback-ify Store::queryPathInfoUncached
...
Change-Id: I23a156aaff5328f67ca16ccd85c0ea1711b21e35
2024-05-09 23:18:05 +02:00
eldritch horrors
c77bd88259
libstore: de-callback-ify BinaryCacheStore::getFile
...
Change-Id: I36b3eb9f645aa04058151e7b2353e15e6f29057b
2024-05-09 23:18:05 +02:00
eldritch horrors
1a002d1a11
libstore: de-callback-ify CA realisation substitution
...
this is the *only* real user of file transfer download completion
callbacks, and a pretty spurious user at that (seeing how nothing
here is even turned on by default and indeed a dependency of path
substitution which *isn't* async, and concurrency-limited). it'll
be a real pain to keep this around, and realistically it would be
a lot better to overhaul substitution in general to be *actually*
async. that requires a proper async framework footing though, and
we don't have anything of the sort, but it's also blocking *that*
Change-Id: I1bf671f217c654a67377087607bf608728cbfc83
2024-05-09 23:18:05 +02:00
Qyriad
24f7855ae2
init from cherry-pick
2024-05-09 13:35:20 -06:00
Qyriad
fbeef68d63
WIP: restore /nix/var/nix as source of truth for profiles
...
See-also: https://github.com/NixOS/nix/pull/5226
Change-Id: I35082c9a59148f7fb132232659c3a254d514d190
2024-05-09 13:35:10 -06:00
Qyriad
9ae90612a7
Merge changes I4bffa766,If2561cd5 into main
...
* changes:
add and fix -Wignored-qualifiers
add and fix -Wdeprecated-copy
2024-05-09 17:52:11 +00:00
jade
d5804d0c6d
Merge "fix: eval error of .#devShells.x86_64-linux.x86_64-freebsd13" into main
2024-05-09 15:22:03 +00:00
Maximilian Bosch
b962a266c4
Merge "flake: update nixpkgs input to latest nixos-23.11" into main
2024-05-09 13:17:21 +00:00
Qyriad
1f9b0fba23
add and fix -Wignored-qualifiers
...
Change-Id: I4bffa766ae04dd80355f9b8c10e59700e4b406da
2024-05-09 07:08:44 -06:00
jade
d1dacad708
fix: eval error of .#devShells.x86_64-linux.x86_64-freebsd13
...
This is broken and our resident nixbsd maintainers say it should
probably just be temporarily removed till we switch to 24.05 instead of
diagnosing it.
Originally introduced in: https://github.com/nixos/nix/pull/8887
Fixes: lix-project/lix#277
Change-Id: I1e7db8859620024a7b37dbd0cc1c5ec139b9e5cb
2024-05-09 13:07:30 +00:00
Qyriad
2bbe3efd16
add and fix -Wdeprecated-copy
...
*so* many warnings, from only two definitions
Change-Id: If2561cd500c05a1e33cce984faf9f3e42a8a95ac
2024-05-09 13:02:45 +00:00
Qyriad
010bbd1b0e
Merge "nix3-eval: don't elide top-level errors" into main
2024-05-09 11:46:13 +00:00
alois31
da0e1f5716
Merge "repl: show a progress bar while performing builds" into main
2024-05-09 04:32:55 +00:00
Maximilian Bosch
a4c943403f
flake: update nixpkgs input to latest nixos-23.11
...
This includes the update to libseccomp 2.5.5[1], so we don't need to
override it on our own.
[1] https://nixpk.gs/pr-tracker.html?pr=306070
Change-Id: I1fa9c7fcc23e501d75f774745107c6bb086ced70
2024-05-08 23:03:28 +02:00