1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-25 02:21:16 +02:00
nix/src/libstore
Wolfgang Walther d64c922164
libstore: fix race condition when creating state directories
Running parallel nix in nix can lead to multiple instances trying to
create the state directories and failing on the `createSymlink` step,
because the link already exists.

`replaceSymlink` is already idempotent, so let's use that.

Resolves #2706
2025-06-17 08:45:29 +02:00
..
build Fix #13293 2025-06-11 16:15:26 -04:00
builtins Put the builder context in a struct 2025-05-04 22:14:11 +02:00
include/nix/store Fix broken link in configuration description 2025-06-11 08:52:04 -07:00
linux flake: Add meson formatter 2025-06-11 22:08:03 +00:00
unix Fix #13293 2025-06-11 16:15:26 -04:00
windows Fix various typos in source code 2025-05-25 20:14:11 +00:00
.version Build nix-store with Meson 2024-06-14 10:25:14 -04:00
binary-cache-store.cc Stores no longer inherit from their configs 2025-05-13 15:56:35 -04:00
build-result.cc Expose the nix component in header include paths 2025-04-01 11:40:42 -04:00
ca-specific-schema.sql Rename to "content-address*ing* derivation" 2025-02-10 01:12:56 -05:00
common-protocol.cc Expose the nix component in header include paths 2025-04-01 11:40:42 -04:00
common-ssh-store-config.cc Stores no longer inherit from their configs 2025-05-13 15:56:35 -04:00
content-address.cc Expose the nix component in header include paths 2025-04-01 11:40:42 -04:00
daemon.cc Add json-log-path setting 2025-05-23 10:45:12 +02:00
derivation-options.cc fromStructuredAttrs(): Don't crash if exportReferencesGraph is a string 2025-05-24 00:17:03 +02:00
derivations.cc Fix various typos in source code 2025-05-25 20:14:11 +00:00
derived-path-map.cc Restore dynamic derivations! 2025-05-21 17:31:41 -04:00
derived-path.cc Expose the nix component in header include paths 2025-04-01 11:40:42 -04:00
downstream-placeholder.cc Expose the nix component in header include paths 2025-04-01 11:40:42 -04:00
dummy-store.cc Split out store-open.hh and store-registration.hh 2025-05-14 16:07:57 -04:00
dummy-store.md Support per-store Markdown documentation 2023-03-21 14:03:40 +01:00
export-import.cc Expose the nix component in header include paths 2025-04-01 11:40:42 -04:00
filetransfer.cc Prepare for FreeBSD sandboxing support 2025-05-27 14:54:50 -04:00
gc.cc Fix various typos in source code 2025-05-25 20:14:11 +00:00
globals.cc Prepare for FreeBSD sandboxing support 2025-05-27 14:54:50 -04:00
http-binary-cache-store.cc Don't use 'callback' object that we may have moved out of 2025-05-24 00:14:03 +02:00
http-binary-cache-store.md Support per-store Markdown documentation 2023-03-21 14:03:40 +01:00
indirect-root-store.cc Expose the nix component in header include paths 2025-04-01 11:40:42 -04:00
keys.cc Expose the nix component in header include paths 2025-04-01 11:40:42 -04:00
legacy-ssh-store.cc Split out store-open.hh and store-registration.hh 2025-05-14 16:07:57 -04:00
legacy-ssh-store.md Support per-store Markdown documentation 2023-03-21 14:03:40 +01:00
local-binary-cache-store.cc Split out store-open.hh and store-registration.hh 2025-05-14 16:07:57 -04:00
local-binary-cache-store.md Support per-store Markdown documentation 2023-03-21 14:03:40 +01:00
local-fs-store.cc Stores no longer inherit from their configs 2025-05-13 15:56:35 -04:00
local-overlay-store.cc Split out store-open.hh and store-registration.hh 2025-05-14 16:07:57 -04:00
local-overlay-store.md docs: Fix miscellaneous typos and formatting issues 2025-05-13 22:20:11 +00:00
local-store.cc libstore: fix race condition when creating state directories 2025-06-17 08:45:29 +02:00
local-store.md Build the local store on Windows 2024-05-10 13:05:23 -04:00
log-store.cc Expose the nix component in header include paths 2025-04-01 11:40:42 -04:00
machines.cc Split out store-open.hh and store-registration.hh 2025-05-14 16:07:57 -04:00
make-content-addressed.cc Expose the nix component in header include paths 2025-04-01 11:40:42 -04:00
meson.build Split DerivationGoal in two 2025-05-20 11:54:53 -04:00
meson.options Meson misc things 2024-08-27 10:19:55 -04:00
misc.cc fromStructuredAttrs(): Don't crash if exportReferencesGraph is a string 2025-05-24 00:17:03 +02:00
mounted-ssh-store.md MountedSSHStore: stores on shared filesystems 2023-11-21 13:34:01 -05:00
names.cc Expose the nix component in header include paths 2025-04-01 11:40:42 -04:00
nar-accessor.cc Expose the nix component in header include paths 2025-04-01 11:40:42 -04:00
nar-info-disk-cache.cc Expose the nix component in header include paths 2025-04-01 11:40:42 -04:00
nar-info.cc bugfix in getInteger(const nlohmann::json &) and add bounds checks 2025-04-30 01:38:48 +02:00
nix-meson-build-support rename: build-utils-meson -> nix-meson-build-support 2024-12-09 16:54:42 +01:00
optimise-store.cc Stores no longer inherit from their configs 2025-05-13 15:56:35 -04:00
outputs-spec.cc Expose the nix component in header include paths 2025-04-01 11:40:42 -04:00
package.nix Expose the nix component in header include paths 2025-04-01 11:40:42 -04:00
parsed-derivations.cc Rename shellEscape -> escapeShellArgAlways 2025-04-23 22:56:07 +02:00
path-info.cc bugfix in getInteger(const nlohmann::json &) and add bounds checks 2025-04-30 01:38:48 +02:00
path-references.cc Expose the nix component in header include paths 2025-04-01 11:40:42 -04:00
path-with-outputs.cc treewide: Use StringSet alias consistently instead of std::set<std::string> 2025-05-02 17:40:29 +00:00
path.cc Stores no longer inherit from their configs 2025-05-13 15:56:35 -04:00
pathlocks.cc Expose the nix component in header include paths 2025-04-01 11:40:42 -04:00
posix-fs-canonicalise.cc replace all instances of std::filesystem::directory_iterator with DirectoryIterator 2025-05-01 11:54:26 +02:00
profiles.cc Fix various typos in source code 2025-05-25 20:14:11 +00:00
realisation.cc Use StringMap instead of std::map<std::string, std::string> throughout the codebase 2025-05-19 20:33:28 +00:00
remote-fs-accessor.cc Store::getFSAccessor: Do not include the store dir 2025-04-09 17:34:18 -04:00
remote-store.cc Stores no longer inherit from their configs 2025-05-13 15:56:35 -04:00
restricted-store.cc Stores no longer inherit from their configs 2025-05-13 15:56:35 -04:00
s3-binary-cache-store.cc Split out store-open.hh and store-registration.hh 2025-05-14 16:07:57 -04:00
s3-binary-cache-store.md fix location 2024-09-27 11:07:04 +02:00
schema.sql Build the local store on Windows 2024-05-10 13:05:23 -04:00
serve-protocol-connection.cc Expose the nix component in header include paths 2025-04-01 11:40:42 -04:00
serve-protocol.cc Expose the nix component in header include paths 2025-04-01 11:40:42 -04:00
sqlite.cc Expose the nix component in header include paths 2025-04-01 11:40:42 -04:00
ssh-store.cc Fix various typos in source code 2025-05-25 20:14:11 +00:00
ssh-store.md Support per-store Markdown documentation 2023-03-21 14:03:40 +01:00
ssh.cc Consolidate tempName and makeTempPath 2025-05-21 09:01:49 -07:00
store-api.cc Fix various typos in source code 2025-05-25 20:14:11 +00:00
store-dir-config.cc rename StoreDirConfigItself to StoreDirConfigBase 2025-05-15 11:24:42 +02:00
store-reference.cc Expose the nix component in header include paths 2025-04-01 11:40:42 -04:00
store-registration.cc Factor out resolveStoreConfig 2025-05-14 18:30:25 -04:00
uds-remote-store.cc Add convenience function for connecting to a Unix domain socket 2025-05-23 10:45:12 +02:00
uds-remote-store.md Enable the unix:// store on Windows 2024-04-18 16:58:32 -04:00
worker-protocol-connection.cc libstore: Introduce WorkerProto::FeatureSet alias 2025-05-02 17:40:34 +00:00
worker-protocol.cc Expose the nix component in header include paths 2025-04-01 11:40:42 -04:00