mergify[bot]
84c4049e3c
Merge pull request #12778 from NixOS/mergify/bp/2.27-maintenance/pr-12767
...
use createDirs consistently everywhere (backport #12767 )
2025-03-28 18:09:59 +00:00
Robert Hensing
9c20bb18de
libutil: Fix error message
...
I encountered this with a misconfigured libutil. I doubt that a
non-lutimes config is viable, because tests were failing.
(cherry picked from commit 1cffcd91a9 )
2025-03-28 17:08:23 +00:00
John Ericson
fd98f30e4e
Merge pull request #12758 from roberth/lutimes-error
...
libutil: Fix error message
2025-03-28 13:06:43 -04:00
John Ericson
f1197f7601
Merge pull request #12768 from Mic92/improve-error-messages
...
substitution-goal: convert assert into an Error
2025-03-28 13:05:46 -04:00
John Ericson
c36a9b8e1b
Merge pull request #12773 from roberth/config-h-low-hanging-fruit
...
Unexpose config headers (low hanging fruit only)
2025-03-28 12:43:28 -04:00
Jörg Thalheim
e308524097
use createDirs consistently everywhere
...
(cherry picked from commit a8217f2642 )
2025-03-28 15:56:02 +00:00
Robert Hensing
a2e43cd8e6
Merge pull request #12771 from roberth/suppress-parser-warning
...
nix-expr/parser: Suppress warning
2025-03-28 15:55:05 +00:00
John Ericson
5056aae63a
Add a withAWS flag to libstore
...
Nixpkgs wants this, at least.
(cherry picked from commit e4c571c2f1 )
2025-03-28 15:54:57 +00:00
John Ericson
602840bfd2
Link the right issue about the bad AWS pkg-config
...
It is https://github.com/aws/aws-sdk-cpp/issues/2673
(cherry picked from commit fb9c9ee35a )
2025-03-28 15:54:56 +00:00
John Ericson
71b0edcfe3
Remove boost env vars
...
https://github.com/NixOS/nixpkgs/issues/86131 is now fixed!
(cherry picked from commit 459fb59493 )
2025-03-28 15:54:56 +00:00
John Ericson
1763cf115b
Fix a bunch of missing meson boilerplate
...
These other libraries need this too
(cherry picked from commit ffdce51cd5 )
2025-03-28 15:54:56 +00:00
John Ericson
a08b0c742a
Merge pull request #12772 from NixOS/light-packaging-cleanus
...
Light packaging cleanups
2025-03-28 11:53:48 -04:00
Robert Hensing
1e60ebeea0
Merge pull request #12767 from Mic92/fs-stuff-2
...
use createDirs consistently everywhere
2025-03-28 15:53:33 +00:00
Robert Hensing
b86a76044e
Unexpose config headers (low hanging fruit only)
...
- Some headers were completely redundant and have been removed.
- Other headers have been turned private.
- Unnecessary meson.build code has been removed.
- libutil-tests now has a private config header, where previously
it had none. This removes the need to expose a package version
macro publicly.
2025-03-28 15:17:54 +00:00
John Ericson
e4c571c2f1
Add a withAWS flag to libstore
...
Nixpkgs wants this, at least.
2025-03-28 11:08:15 -04:00
John Ericson
fb9c9ee35a
Link the right issue about the bad AWS pkg-config
...
It is https://github.com/aws/aws-sdk-cpp/issues/2673
2025-03-28 10:50:46 -04:00
John Ericson
459fb59493
Remove boost env vars
...
https://github.com/NixOS/nixpkgs/issues/86131 is now fixed!
2025-03-28 10:45:27 -04:00
John Ericson
ffdce51cd5
Fix a bunch of missing meson boilerplate
...
These other libraries need this too
2025-03-28 10:38:08 -04:00
Robert Hensing
1df69c3920
Merge pull request #12766 from Mic92/fs-stuff
...
git-utils: add trace context to writeFull
2025-03-28 13:53:29 +00:00
Robert Hensing
aa689b96e6
nix-expr/parser: Suppress warning
...
We rely on `yyerror()` instead.
> The variable yynerrs contains the number of syntax errors reported so
> far.
> Normally this variable is global; but if you request a pure parser
> (see A Pure (Reentrant) Parser) then it is a local variable which only
> the actions can access.
https://www.gnu.org/software/bison/manual/html_node/Error-Reporting-Function.html
2025-03-28 13:50:24 +00:00
Eelco Dolstra
f80f7e001b
Abort if we cannot create TeeLogger
2025-03-27 19:07:00 +01:00
John Ericson
a26a15d05c
Merge pull request #12759 from roberth/c-api-libflake-settings
...
C API / settings: remove nix-flake-c global init
2025-03-27 12:38:25 -04:00
Eelco Dolstra
37f3b255b2
makeTeeLogger(): Distinguish between main and extra loggers
2025-03-27 17:17:01 +01:00
Robert Hensing
0c75581d8b
Move call-flake.nix to nix-flake
...
As suggested by Ericson2314 in review
https://github.com/NixOS/nix/pull/12759#issuecomment-2755352343
2025-03-27 14:29:07 +00:00
Jörg Thalheim
7a6ce75aea
substitution-goal: convert assert into an Error
...
This is to get more context on https://github.com/NixOS/nix/issues/12761
2025-03-27 14:13:57 +01:00
Eelco Dolstra
eca002ddc4
Don't segfault if we can't create the JSON logger
2025-03-27 13:54:07 +01:00
Jörg Thalheim
ca165f09c0
Merge pull request #12583 from ulucs/ulucs/skip-ifds
...
`nix flake show`: Skip IFDs instead of throwing
2025-03-27 11:40:49 +01:00
Jörg Thalheim
a8217f2642
use createDirs consistently everywhere
2025-03-27 11:28:11 +01:00
Jörg Thalheim
86de15f4fc
git-utils: add trace context to writeFull
2025-03-27 11:26:30 +01:00
Jörg Thalheim
5c3682d7a1
libstore/daemon: make sure monitor is not considered "unused"
2025-03-27 11:24:30 +01:00
Jörg Thalheim
7e540059a3
git/getStringUntil: fix uninitialized stack variable
...
at least clang-tidy is not convinced that this initialized.
If this is not the case, the impact should be small and hopefully also
more robust if changed.
2025-03-27 11:24:27 +01:00
Jörg Thalheim
05082ea1c5
libstore/local-store: fix linting warning about unused variable
2025-03-27 11:24:25 +01:00
Uluc Sengil
fcf5966488
skip ifds in nix flake show instead of throwing
2025-03-27 11:16:35 +01:00
Eelco Dolstra
17d0810a7c
Cleanup
2025-03-26 23:49:35 +01:00
Eelco Dolstra
c8692b378b
Merge remote-tracking branch 'detsys/detsys-main' into logger-improvements
2025-03-26 23:21:32 +01:00
Eelco Dolstra
502f027390
nix daemon: Respect json-log-path and re-open for every connection
...
We don't want to inherit the parent's JSON logger since then messages
from different daemon processes may clobber each other.
2025-03-26 22:15:39 +01:00
Robert Hensing
6fc9651d57
nix-expr: remove EvalSettings::addPrimOp, add const
...
Not required for a struct and potentially confusing.
2025-03-26 19:22:40 +00:00
Robert Hensing
d48101109d
nix-flake: Move primops registration to configureEvalSettings
2025-03-26 11:15:02 +00:00
Robert Hensing
6a192ec0cd
C API: (breaking) remove nix-flake-c global init
2025-03-26 11:15:02 +00:00
Sizhe Zhao
39ce478283
docs: document unsafeGetAttrPos
2025-03-26 18:48:57 +08:00
Robert Hensing
3c4c0953e0
nix-expr: Add primops to EvalSettings
2025-03-26 09:32:43 +00:00
Robert Hensing
1cffcd91a9
libutil: Fix error message
...
I encountered this with a misconfigured libutil. I doubt that a
non-lutimes config is viable, because tests were failing.
2025-03-26 09:16:27 +00:00
Robert Hensing
db1950e768
checkRefs: use concatMapStringsSep
...
(cherry picked from commit 2b4d461c14 )
2025-03-25 15:49:30 +00:00
Robert Hensing
aa7433982b
nix-util: Use small_vector in concatMapStringsSep
...
(cherry picked from commit 32898dc46a )
2025-03-25 15:49:30 +00:00
Robert Hensing
f9d1f36169
nix-util: Add concatMapStrings
...
(cherry picked from commit f3dbaa3f54 )
2025-03-25 15:49:29 +00:00
Sergei Trofimovich
79122c66b1
local-derivation-goal: improve "illegal reference" error
...
Before the change "illegal reference" was hard to interpret as it did
not mention what derivation actually hits it.
Today's `nixpkgs` example:
Before the change:
$ nix build --no-link -f. postgresql_14
...
error: derivation contains an illegal reference specifier 'man'
After the change:
$ nix build --no-link -f. postgresql_14
...
error: derivation '/nix/store/bxp6g57limvwiga61vdlyvhy7i8rp6wd-postgresql-14.15.drv' output check for 'lib' contains an illegal reference specifier 'man', expected store path or output name (one of [debug, dev, doc, lib, out])
(cherry picked from commit bbdc3197a9 )
2025-03-25 15:49:29 +00:00
Robert Hensing
2b4d461c14
checkRefs: use concatMapStringsSep
2025-03-25 06:12:19 +00:00
Robert Hensing
32898dc46a
nix-util: Use small_vector in concatMapStringsSep
2025-03-25 06:12:19 +00:00
Robert Hensing
f3dbaa3f54
nix-util: Add concatMapStrings
2025-03-25 06:12:19 +00:00
Sergei Trofimovich
bbdc3197a9
local-derivation-goal: improve "illegal reference" error
...
Before the change "illegal reference" was hard to interpret as it did
not mention what derivation actually hits it.
Today's `nixpkgs` example:
Before the change:
$ nix build --no-link -f. postgresql_14
...
error: derivation contains an illegal reference specifier 'man'
After the change:
$ nix build --no-link -f. postgresql_14
...
error: derivation '/nix/store/bxp6g57limvwiga61vdlyvhy7i8rp6wd-postgresql-14.15.drv' output check for 'lib' contains an illegal reference specifier 'man', expected store path or output name (one of [debug, dev, doc, lib, out])
2025-03-25 06:12:19 +00:00