1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-30 03:23:16 +02:00
nix/src/libutil
Eelco Dolstra b28bc7ae64 Make rootFS's showPath() render the paths from the original accessors
This makes paths in error messages behave similar to lazy-trees,
e.g. instead of store paths like

       error: attribute 'foobar' missing
       at /nix/store/ddzfiipzqlrh3gnprmqbadnsnrxsmc9i-source/machine/configuration.nix:209:7:
          208|
          209|       pkgs.foobar
             |       ^
          210|     ];

you now get

       error: attribute 'foobar' missing
       at /home/eelco/Misc/eelco-configurations/machine/configuration.nix:209:7:
          208|
          209|       pkgs.foobar
             |       ^
          210|     ];
2025-04-01 13:17:14 +02:00
..
args Fix and extend nix-shell baseDir test 2024-07-07 00:23:22 +02:00
linux Simplify getRootCgroup() 2024-09-04 18:11:16 +00:00
signature Ensure error messages don't leak private key 2024-09-24 06:39:03 +02:00
unix MonitorFdHup::~MonitorFdHup: use proper close method instead of libc close() 2025-03-24 12:17:04 +00:00
widecharwidth try to calculate character width 2024-12-28 12:01:32 +01:00
windows refactor: RAII logger suspension 2025-03-04 19:10:01 +00:00
.version Build nix-util with Meson 2024-06-12 18:31:02 -04:00
abstract-setting-to-json.hh Make toJSONObject const 2023-11-06 16:00:25 +01:00
ansicolor.hh Finish converting existing comments for internal API docs (#8146) 2023-04-07 13:55:28 +00:00
archive.cc Make the NAR parser much stricter wrt field order 2024-09-12 15:57:46 +02:00
archive.hh Merge remote-tracking branch 'origin/master' into fsync-store-paths 2024-08-21 16:37:21 +02:00
args.cc Tagging release 2.26.2 2025-02-18 19:57:51 +01:00
args.hh Fix most DoxyGen warnings 2024-11-12 15:34:24 +01:00
callback.hh fix missing includes in various headers 2024-12-17 22:00:34 +01:00
canon-path.cc concatStrings: Give compiler access to definition for inlining 2024-07-14 12:20:45 +02:00
canon-path.hh Remove comparator.hh and switch to <=> in a bunch of places 2024-07-12 14:54:18 -04:00
checked-arithmetic.hh Fix most DoxyGen warnings 2024-11-12 15:34:24 +01:00
chunked-vector.hh Make abort() call sites log first 2024-07-24 16:52:04 +02:00
closure.hh Ensure all headers have #pragma once and are in API docs 2023-03-31 23:19:44 -04:00
comparator.hh Remove comparator.hh and switch to <=> in a bunch of places 2024-07-12 14:54:18 -04:00
compression.cc Slightly change formatting style 2024-05-22 09:20:15 -04:00
compression.hh nfc(libutil): reformat files 2024-03-30 01:29:22 +03:00
compute-levels.cc Add x86_64 compute levels as additional system types 2021-02-22 09:11:15 +01:00
compute-levels.hh Ensure all headers have #pragma once and are in API docs 2023-03-31 23:19:44 -04:00
config-global.cc experimental-features.hh: Don't include json-utils.hh 2024-10-04 15:59:35 +02:00
config-global.hh Format config-global.{cc,hh} 2024-06-24 12:07:56 -04:00
config-impl.hh fix missing includes in various headers 2024-12-17 22:00:34 +01:00
config.cc Merge commit 'b24757f08a' into sync-2.24.2 2024-08-08 15:34:12 +02:00
config.hh Tagging release 2.26.2 2025-02-18 19:57:51 +01:00
current-process.cc Totally exclude nix::setStackSize on Windows 2025-01-31 21:11:45 +11:00
current-process.hh Totally exclude nix::setStackSize on Windows 2025-01-31 21:11:45 +11:00
english.cc Unify and refactor value printing 2024-01-11 16:34:36 -08:00
english.hh Unify and refactor value printing 2024-01-11 16:34:36 -08:00
environment-variables.cc Factor out lookupExecutable and other PATH improvments 2024-08-07 18:12:58 -04:00
environment-variables.hh feat: add flag set-env-var to MixEnvironment 2024-11-04 14:02:29 +01:00
error.cc Make panic() and unreachable() robust 2024-07-25 15:50:01 +02:00
error.hh libutil: Document hacks and problems around Pos class 2025-03-14 13:22:52 +00:00
exec.hh More support for std::filepath in libnixutil 2024-08-26 17:23:56 -04:00
executable-path.cc Fix nix upgrade-nix profile search 2024-12-14 15:28:34 +00:00
executable-path.hh More support for std::filepath in libnixutil 2024-08-26 17:23:56 -04:00
exit.cc :quit in the debugger should quit the whole program 2024-02-20 10:01:13 -08:00
exit.hh :quit in the debugger should quit the whole program 2024-02-20 10:01:13 -08:00
experimental-features.cc Tagging release 2.27.1 2025-03-24 21:28:03 +01:00
experimental-features.hh Tagging release 2.27.1 2025-03-24 21:28:03 +01:00
file-content-address.cc Merge remote-tracking branch 'origin/master' into fsync-store-paths 2024-08-21 16:37:21 +02:00
file-content-address.hh Fix most DoxyGen warnings 2024-11-12 15:34:24 +01:00
file-descriptor.cc Fix a few warnings 2025-02-17 19:29:01 +01:00
file-descriptor.hh refactor(treewide): make some move ctors noexcept where appropriate 2024-11-09 12:09:33 +03:00
file-path-impl.hh Factor out lookupExecutable and other PATH improvments 2024-08-07 18:12:58 -04:00
file-path.hh Factor out lookupExecutable and other PATH improvments 2024-08-07 18:12:58 -04:00
file-system.cc Remove some unnecessary quotes around std::filesystem::path 2025-01-16 17:06:59 +01:00
file-system.hh Use isAbsolute() 2025-01-14 17:42:26 +01:00
finally.hh refactor(treewide): make some move ctors noexcept where appropriate 2024-11-09 12:09:33 +03:00
fmt.hh Improve error messages for invalid derivation names 2024-06-25 19:41:29 +02:00
forwarding-source-accessor.hh Make rootFS's showPath() render the paths from the original accessors 2025-04-01 13:17:14 +02:00
fs-sink.cc windows: create files if they don't exist, and with write permission 2025-01-14 16:46:31 +11:00
fs-sink.hh Merge remote-tracking branch 'origin/master' into fsync-store-paths 2024-08-21 16:37:21 +02:00
git.cc nix flake: clarify error message when file is an unknown type 2025-01-10 08:07:51 -08:00
git.hh Fix most DoxyGen warnings 2024-11-12 15:34:24 +01:00
hash.cc Merge remote-tracking branch 'detsys/detsys-main' into logger-improvements 2025-03-26 23:21:32 +01:00
hash.hh Merge remote-tracking branch 'detsys/detsys-main' into logger-improvements 2025-03-26 23:21:32 +01:00
hilite.cc Fix incorrect comment in hiliteMatches 2022-06-05 20:30:18 +02:00
hilite.hh Ensure all headers have #pragma once and are in API docs 2023-03-31 23:19:44 -04:00
json-impls.hh Ensure all headers have #pragma once and are in API docs 2023-03-31 23:19:44 -04:00
json-utils.cc Introduce DerivationOptions 2025-02-16 18:52:44 -05:00
json-utils.hh Introduce DerivationOptions 2025-02-16 18:52:44 -05:00
logging.cc Abort if we cannot create TeeLogger 2025-03-27 19:07:00 +01:00
logging.hh makeTeeLogger(): Distinguish between main and extra loggers 2025-03-27 17:17:01 +01:00
lru-cache.hh LRUCache: Mark size() as const 2024-07-26 16:13:00 +02:00
memory-source-accessor.cc use CanonPath in fs-sink and its derivatives 2024-06-30 19:03:15 +05:30
memory-source-accessor.hh Remove comparator.hh and switch to <=> in a bunch of places 2024-07-12 14:54:18 -04:00
meson.build Make rootFS's showPath() render the paths from the original accessors 2025-04-01 13:17:14 +02:00
meson.options Build nix-util with Meson 2024-06-12 18:31:02 -04:00
mounted-source-accessor.cc In pure eval mode, restrict rootFS to just the Nix store 2025-02-19 23:13:11 +01:00
muxable-pipe.hh More work on the scheduler for windows 2024-05-28 11:39:49 -04:00
nix-meson-build-support rename: build-utils-meson -> nix-meson-build-support 2024-12-09 16:54:42 +01:00
os-string.hh More support for std::filepath in libnixutil 2024-08-26 17:23:56 -04:00
package.nix Tagging release 2.27.1 2025-03-24 21:28:03 +01:00
pool.hh refactor(treewide): make some move ctors noexcept where appropriate 2024-11-09 12:09:33 +03:00
pos-idx.hh {libutil,libexpr}: Move pos-idx,pos-table code to libutil 2025-03-14 13:22:52 +00:00
pos-table.cc {libutil,libexpr}: Move pos-idx,pos-table code to libutil 2025-03-14 13:22:52 +00:00
pos-table.hh libutil: Document hacks and problems around Pos class 2025-03-14 13:22:52 +00:00
position.cc libutil: Fix Pos::getSourcePath 2025-03-14 13:22:52 +00:00
position.hh libutil: Fix Pos::getSourcePath 2025-03-14 13:22:52 +00:00
posix-source-accessor.cc mingw: Check for S_ISSOCK 2025-01-20 14:52:23 +01:00
posix-source-accessor.hh fix: Handle symlinks and FIFOs in nix hash where possible 2025-01-07 05:42:03 +00:00
processes.hh Initial runProgram implementation for Windows 2024-06-17 11:13:22 -07:00
ref.hh fix(libutils): make ref move assignable/constructible 2024-11-08 20:10:38 +03:00
references.cc Renamed HashFormat::Base32 to HashFormat::Nix32 2023-12-06 23:43:42 +01:00
references.hh HashType: Rename to HashAlgorithm 2023-12-06 23:43:42 +01:00
regex-combinators.hh regex-combinators: fix linter error when adding string_view and string 2024-12-17 22:00:34 +01:00
repair-flag.hh Combine AbstractPos, PosAdapter, and Pos 2024-01-08 10:59:41 -08:00
serialise.cc sinkToSource: avoid heap allocation 2025-01-23 00:57:32 +01:00
serialise.hh fix(libstore-tests): remove use-after-free bug for StringSource 2024-11-06 02:28:21 +03:00
signals.hh setInterruptCheck(): Remove declared but undefined function 2024-04-05 16:03:25 +02:00
source-accessor.cc Use isAbsolute() 2025-01-14 17:42:26 +01:00
source-accessor.hh Add a UnionSourceAccessor 2025-02-19 12:54:09 +01:00
source-path.cc Remove comparator.hh and switch to <=> in a bunch of places 2024-07-12 14:54:18 -04:00
source-path.hh Remove unused boost include and split out std-hash.hh 2024-07-16 22:31:25 +02:00
split.hh Ensure all headers have #pragma once and are in API docs 2023-03-31 23:19:44 -04:00
std-hash.hh Fix most DoxyGen warnings 2024-11-12 15:34:24 +01:00
strings-inline.hh Factor out lookupExecutable and other PATH improvments 2024-08-07 18:12:58 -04:00
strings.cc Implement shellSplitString for proper handling of NIX_SSHOPTS with spaces and quotes 2024-12-14 15:54:16 +00:00
strings.hh Implement shellSplitString for proper handling of NIX_SSHOPTS with spaces and quotes 2024-12-14 15:54:16 +00:00
suggestions.cc SymbolStr: Remove std::string conversion 2024-07-11 17:43:10 +02:00
suggestions.hh Remove comparator.hh and switch to <=> in a bunch of places 2024-07-12 14:54:18 -04:00
sync.hh Rename SyncBase::read() -> readLock() 2024-07-27 01:39:13 +02:00
tarfile.cc Don't change nix::fs for now 2024-11-12 21:10:01 +01:00
tarfile.hh tweak unpack channel built-in, std::filesystem::path for tarball 2024-09-13 14:11:36 +02:00
tee-logger.cc makeTeeLogger(): Distinguish between main and extra loggers 2025-03-27 17:17:01 +01:00
terminal.cc try to calculate character width 2024-12-28 12:01:32 +01:00
terminal.hh Solve unused header warnings reported by clangd 2024-07-12 15:37:54 +02:00
thread-pool.cc Typo 2024-10-16 19:40:45 +02:00
thread-pool.hh processGraph(): Don't throw ThreadPoolShutDown if there is an exception 2025-01-20 13:25:31 +01:00
topo-sort.hh Ensure all headers have #pragma once and are in API docs 2023-03-31 23:19:44 -04:00
types.hh Work around clang/libc++ issue 2024-12-16 14:58:39 +01:00
union-source-accessor.cc UnionSourceAccessor: Don't filter out underlying files of the wrong type 2025-02-19 13:34:42 +01:00
unix-domain-socket.cc makeJSONLogger(): Support logging to a Unix domain socket 2025-03-13 15:48:52 +01:00
unix-domain-socket.hh makeJSONLogger(): Support logging to a Unix domain socket 2025-03-13 15:48:52 +01:00
url-parts.hh Merge pull request #9621 from blaggacao/fix/too-restrictive-branch-regex-master 2023-12-22 16:02:25 +01:00
url.cc Remove unused variable 2025-01-09 16:38:33 +01:00
url.hh ParsedURL: Remove base field 2025-01-07 14:52:00 +01:00
users.cc Use envvars NIX_CACHE_HOME, NIX_CONFIG_HOME, NIX_DATA_HOME, NIX_STATE_HOME if defined (#11351) 2024-09-11 10:36:46 +00:00
users.hh Use envvars NIX_CACHE_HOME, NIX_CONFIG_HOME, NIX_DATA_HOME, NIX_STATE_HOME if defined (#11351) 2024-09-11 10:36:46 +00:00
util.cc Split ignoreException for destructors or interrupt-safe 2024-09-30 11:50:25 +02:00
util.hh GitRepo::fetch(): Cleanup 2025-01-22 20:30:28 +00:00
variant-wrapper.hh Fixing #7479 2023-08-18 11:44:00 -04:00
xml-writer.cc xml-writer: Remove std aliases 2022-02-25 16:13:02 +01:00
xml-writer.hh Ensure all headers have #pragma once and are in API docs 2023-03-31 23:19:44 -04:00