Eelco Dolstra
062b4a489e
Merge pull request #11585 from NixOS/verify-tls
...
builtin:fetchurl: Enable TLS verification
2024-09-25 23:52:25 +02:00
Eelco Dolstra
7b39cd631e
Add release note
2024-09-25 23:07:11 +02:00
Valentin Gagarin
6c37d81514
Merge pull request #11584 from Mic92/devdocs
2024-09-25 13:44:49 +02:00
Jörg Thalheim
eb3a368a33
docs/testing: add --verbose flag for running single tests
...
Most of the time people run single tests for debugging reason,
so it's a sane default to have them see all the console output.
This commit still retains the section about running tests directly with
meson, because in some debugging cases it's just nice to have less
abstractions i.e. when using strace.
2024-09-25 09:46:29 +02:00
Eelco Dolstra
f2f47fa725
Add a test for builtin:fetchurl cert verification
2024-09-24 16:13:28 +02:00
John Ericson
322d2c767f
Merge pull request #11523 from obsidiansystems/base64Decode-no-leak-private-key-on-error
...
Ensure error messages don't leak private key
2024-09-23 17:13:32 -04:00
John Ericson
2b6b03d8df
Ensure error messages don't leak private key
...
Since #8766 , invalid base64 is rendered in errors, but we don't actually
want to show this in the case of an invalid private keys.
Co-Authored-By: Eelco Dolstra <edolstra@gmail.com>
2024-09-23 16:36:48 -04:00
Eelco Dolstra
c04bc17a5a
builtin:fetchurl: Enable TLS verification
...
This is better for privacy and to avoid leaking netrc credentials in a
MITM attack, but also the assumption that we check the hash no longer
holds in some cases (in particular for impure derivations).
Partially reverts 5db358d4d7
.
2024-09-23 15:15:43 +02:00
John Ericson
d0c351bf43
Revert "base64Decode: clearer error message when an invalid character is detected"
...
We have a safer way of doing this.
This reverts commit dc3ccf02bf
.
2024-09-20 10:41:45 -04:00
Eelco Dolstra
68ba6ff470
Merge pull request #11558 from DeterminateSystems/fix-no-gc-build
...
Fix build without GC
2024-09-20 16:02:08 +02:00
Eelco Dolstra
ec47133be3
Fix warning
2024-09-20 15:08:45 +02:00
Eelco Dolstra
088569463b
Fix build without GC
2024-09-20 15:01:32 +02:00
Eelco Dolstra
c5c68558b5
Merge pull request #11550 from DeterminateSystems/traceable-allocator-alias
...
Alias traceable_allocator to std::allocator when building without GC
2024-09-20 10:43:31 +02:00
Eelco Dolstra
b2bb92ef09
Formatting
...
Co-authored-by: Jörg Thalheim <Mic92@users.noreply.github.com>
2024-09-19 22:59:42 +02:00
Eelco Dolstra
2f4a7a8301
Add a few more aliases
2024-09-19 21:04:01 +02:00
Eelco Dolstra
589d8f1f2b
Move GC-related definitions to eval-gc.hh
2024-09-19 21:04:01 +02:00
Eelco Dolstra
31d408c351
Alias gc_allocator
2024-09-19 21:04:01 +02:00
Eelco Dolstra
b9f78abb7f
Alias traceable_allocator to std::allocator when building without GC
...
This allows us to get rid of a bunch of #ifdefs.
2024-09-19 21:04:01 +02:00
Eelco Dolstra
ca3fc1693b
Merge pull request #11548 from DeterminateSystems/fix-zipAttrsWith-gc
...
Fix missing GC root in zipAttrsWith
2024-09-19 21:02:36 +02:00
Eelco Dolstra
4449b0da74
Use HAVE_BOEHMGC
...
Co-authored-by: Robert Hensing <roberth@users.noreply.github.com>
2024-09-19 19:52:47 +02:00
Eelco Dolstra
0c2fdd2f3c
Fix missing GC root in zipAttrsWith
...
My SNAFU was that I assumed that all the `Value *`s we put in
`attrsSeen` are already reachable (which they are), but I forgot about
the `elems` pointer in `ListBuilder`.
Fixes #11547 .
2024-09-19 19:16:31 +02:00
Eelco Dolstra
9ea29ea517
Merge pull request #11540 from NixOS/meson-arm-atomic
...
nix-util / meson: Add -latomic on arm
2024-09-19 16:09:14 +02:00
Eelco Dolstra
cd5fc45524
Merge pull request #11541 from noamraph/fix-nix-profile-sh
...
nix-profile.sh.in: fix envvar condition
2024-09-19 14:32:23 +02:00
Eelco Dolstra
e60b90192a
Merge pull request #11538 from NixOS/detect-close_range
...
Use close_range when available
2024-09-19 13:48:27 +02:00
Valentin Gagarin
a45a7e8011
Merge pull request #11528 from Mic92/mergify-2
...
mergify: enable merge-queue for backports
2024-09-19 11:29:52 +02:00
Noam Yorav-Raphael
97fffd8765
nix-profile.sh.in: fix envvar condition
2024-09-19 07:20:04 +03:00
Robert Hensing
3df1658ba1
Merge pull request #11539 from NixOS/fix-installer-tests
...
Revert "tests.installer: Load profile with -o unset"
2024-09-19 00:04:09 +02:00
Robert Hensing
56b8911766
nix-util / meson: Add -latomic on arm
...
I couldn't get the test program to work correctly after many attempts,
so let's just unblock this without making it perfect.
2024-09-19 00:01:24 +02:00
Robert Hensing
c75907e47b
Revert "tests.installer: Load profile with -o unset"
...
I must have made a mistake while testing this, because nounset does
not work on any of the distributions.
This reverts commit 2f0db04da0
.
2024-09-18 23:06:01 +02:00
Robert Hensing
5c87c40a5e
Use close_range when available
...
This fixes the FreeBSD build of nix-util
2024-09-18 22:42:44 +02:00
Eelco Dolstra
59acf3b75c
Merge pull request #11532 from Mic92/macos-test-fix
...
tests/functional/shell: fix test in macOS devshell
2024-09-18 21:43:49 +02:00
Eelco Dolstra
96ee5450d9
Merge pull request #11529 from DeterminateSystems/test-ifd-in-chroot
...
Test IFD/filterSource in chroot stores
2024-09-18 21:20:04 +02:00
Valentin Gagarin
0f5c37c242
Merge pull request #11530 from Mic92/flake-archive
2024-09-18 20:58:06 +02:00
Jörg Thalheim
04a47e93f6
tests/functional/shell: fix test in macOS devshell
2024-09-18 20:51:15 +02:00
Eelco Dolstra
a673084733
Fix tests
2024-09-18 19:06:48 +02:00
Eelco Dolstra
d772a8b3dc
shellcheck
2024-09-18 18:05:08 +02:00
Jörg Thalheim
f0a4f19087
add description + example for nix flake archive
...
Update src/nix/flake-archive.md
Update src/nix/flake-archive.md
2024-09-18 17:31:40 +02:00
Eelco Dolstra
0ed2ab0533
Merge pull request #11527 from Mic92/macos-test-fix
...
Fix macOS tests with meson
2024-09-18 15:07:22 +02:00
Jörg Thalheim
2b7642632e
devShell: increase priority of clang-tools
...
Before we would get the unwrapped version of clang-tools from clang
itself, which doesn't quite work.
2024-09-18 14:29:26 +02:00
Nikodem Rabuliński
8105307f0f
Always initialize curl in parent process on darwin
...
Because of an objc quirk[1], calling curl_global_init for the first time
after fork() will always result in a crash.
Up until now the solution has been to set
OBJC_DISABLE_INITIALIZE_FORK_SAFETY for every nix process to ignore
that error.
This is less than ideal because we were setting it in package.nix,
which meant that running nix tests locally would fail because
that variable was not set.
Instead of working around that error we address it at the core -
by calling curl_global_init inside initLibStore, which should mean
curl will already have been initialized by the time we try to do so in
a forked process.
[1] 01edf1705f/runtime/objc-initialize.mm (L614-L636)
(cherry-picked and adapted from c7d97802e4
)
2024-09-18 14:29:26 +02:00
Valentin Gagarin
ec2b01585f
Merge pull request #11526 from quatquatt/update-multiple-inputs
...
docs: Provide an example of updating multiple inputs
2024-09-18 13:34:50 +02:00
Eelco Dolstra
8690b6f138
Test IFD/filterSource in a chroot
...
Relevant to #11503 .
2024-09-18 12:42:20 +02:00
Jörg Thalheim
0624cf0f59
mergify: enable merge-queue for backports
2024-09-18 08:46:07 +02:00
quatquatt
9e335ee3b9
docs: Provide an example of updating multiple inputs with nix flake update
...
docs: Provide an example of updating multiple inputs with `nix flake update`
2024-09-17 22:50:21 -04:00
Jörg Thalheim
a20659f4fa
unitests: fix tmpdir when running with meson on macOS
2024-09-17 19:15:01 +02:00
Jörg Thalheim
98db531df2
libstore-support: check that we can create the store
2024-09-17 18:46:50 +02:00
John Ericson
00013c7348
Merge pull request #11522 from tweag/fix-meson-build-in-sandbox
...
Fix meson build on macOS in sandbox
2024-09-17 12:04:16 -04:00
Eelco Dolstra
ee3f0b7a8b
Rename import-derivation -> import-from-derivation
2024-09-17 16:56:40 +02:00
Yuriy Taraday
c7c3a7f667
Fix meson build on macOS in sandbox
...
Workaround at src/libstore/meson.build#L429-L434 by @Ericson2314 from
https://github.com/NixOS/nix/pull/11302 erroneously used `macos` instead
of `darwin` to distinguish macOS, while meson docs list only `darwin`:
https://mesonbuild.com/Reference-tables.html#operating-system-names .
Original thread: https://github.com/NixOS/nix/issues/2503#issuecomment-2353184049
2024-09-17 16:15:39 +02:00
John Ericson
95f2b2beab
Merge pull request #8766 from brianmcgee/fix/base64-decode-error-message
...
base64Decode: clearer error message when an invalid character is detected
2024-09-17 09:59:15 -04:00