Skip to content

Commit 967d7b9

Browse files
authored
Merge pull request #12441 from obsidiansystems/content-addressing-derivation
Rename to "content-address*ing* derivation"
2 parents e80d333 + cafefed commit 967d7b9

File tree

20 files changed

+26
-25
lines changed

20 files changed

+26
-25
lines changed

doc/manual/redirects.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,7 @@ const redirects = {
375375
"glossary.html": {
376376
"gloss-local-store": "store/types/local-store.html",
377377
"gloss-chroot-store": "store/types/local-store.html",
378+
"gloss-content-addressed-derivation": "#gloss-content-addressing-derivation",
378379
},
379380
};
380381

doc/manual/source/command-ref/nix-store/realise.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Each of *paths* is processed as follows:
1515
1. If it is not [valid], substitute the store derivation file itself.
1616
2. Realise its [output paths]:
1717
- Try to fetch from [substituters] the [store objects] associated with the output paths in the store derivation's [closure].
18-
- With [content-addressed derivations] (experimental):
18+
- With [content-addressing derivations] (experimental):
1919
Determine the output paths to realise by querying content-addressed realisation entries in the [Nix database].
2020
- For any store paths that cannot be substituted, produce the required store objects:
2121
1. Realise all outputs of the derivation's dependencies
@@ -32,7 +32,7 @@ If no substitutes are available and no store derivation is given, realisation fa
3232
[store objects]: @docroot@/store/store-object.md
3333
[closure]: @docroot@/glossary.md#gloss-closure
3434
[substituters]: @docroot@/command-ref/conf-file.md#conf-substituters
35-
[content-addressed derivations]: @docroot@/development/experimental-features.md#xp-feature-ca-derivations
35+
[content-addressing derivations]: @docroot@/development/experimental-features.md#xp-feature-ca-derivations
3636
[Nix database]: @docroot@/glossary.md#gloss-nix-database
3737

3838
The resulting paths are printed on standard output.

doc/manual/source/development/testing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ $ checkPhase
164164

165165
Sometimes it is useful to group related tests so they can be easily run together without running the entire test suite.
166166
Each test group is in a subdirectory of `tests`.
167-
For example, `tests/functional/ca/meson.build` defines a `ca` test group for content-addressed derivation outputs.
167+
For example, `tests/functional/ca/meson.build` defines a `ca` test group for content-addressing derivation outputs.
168168

169169
That test group can be run like this:
170170

doc/manual/source/glossary.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
- [Content-Addressing File System Objects](@docroot@/store/file-system-object/content-address.md)
1515
- [Content-Addressing Store Objects](@docroot@/store/store-object/content-address.md)
16-
- [content-addressed derivation](#gloss-content-addressed-derivation)
16+
- [content-addressing derivation](#gloss-content-addressing-derivation)
1717

1818
Software Heritage's writing on [*Intrinsic and Extrinsic identifiers*](https://www.softwareheritage.org/2020/07/09/intrinsic-vs-extrinsic-identifiers) is also a good introduction to the value of content-addressing over other referencing schemes.
1919

@@ -69,7 +69,7 @@
6969

7070
[realise]: #gloss-realise
7171

72-
- [content-addressed derivation]{#gloss-content-addressed-derivation}
72+
- [content-addressing derivation]{#gloss-content-addressing-derivation}
7373

7474
A derivation which has the
7575
[`__contentAddressed`](./language/advanced-attributes.md#adv-attr-__contentAddressed)
@@ -134,15 +134,15 @@
134134
- [input-addressed store object]{#gloss-input-addressed-store-object}
135135

136136
A store object produced by building a
137-
non-[content-addressed](#gloss-content-addressed-derivation),
137+
non-[content-addressed](#gloss-content-addressing-derivation),
138138
non-[fixed-output](#gloss-fixed-output-derivation)
139139
derivation.
140140

141141
- [content-addressed store object]{#gloss-content-addressed-store-object}
142142

143143
A [store object] which is [content-addressed](#gloss-content-address),
144144
i.e. whose [store path] is determined by its contents.
145-
This includes derivations, the outputs of [content-addressed derivations](#gloss-content-addressed-derivation), and the outputs of [fixed-output derivations](#gloss-fixed-output-derivation).
145+
This includes derivations, the outputs of [content-addressing derivations](#gloss-content-addressing-derivation), and the outputs of [fixed-output derivations](#gloss-fixed-output-derivation).
146146

147147
See [Content-Addressing Store Objects](@docroot@/store/store-object/content-address.md) for details.
148148

doc/manual/source/store/drv.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ type OutputPath = {
6868
type DerivingPath = ConstantPath | OutputPath;
6969
```
7070

71-
Deriving paths are necessary because, in general and particularly for [content-addressed derivations][content-addressed derivation], the [store path] of an [output] is not known in advance.
71+
Deriving paths are necessary because, in general and particularly for [content-addressing derivations][content-addressing derivation], the [store path] of an [output] is not known in advance.
7272
We can use an output deriving path to refer to such an out, instead of the store path which we do not yet know.
7373

7474
[deriving path]: #deriving-path
@@ -122,7 +122,7 @@ Nix can schedule builds such that it automatically builds on other platforms by
122122

123123
[`system` configuration option]: @docroot@/command-ref/conf-file.md#conf-system
124124

125-
[content-addressed derivation]: @docroot@/glossary.md#gloss-content-addressed-derivation
125+
[content-addressing derivation]: @docroot@/glossary.md#gloss-content-addressing-derivation
126126
[realise]: @docroot@/glossary.md#gloss-realise
127127
[store object]: @docroot@/store/store-object.md
128128
[store path]: @docroot@/store/store-path.md

src/libexpr-tests/nix_api_expr.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ TEST_F(nix_api_expr_test, nix_expr_realise_context_bad_build)
172172

173173
TEST_F(nix_api_expr_test, nix_expr_realise_context)
174174
{
175-
// TODO (ca-derivations): add a content-addressed derivation output, which produces a placeholder
175+
// TODO (ca-derivations): add a content-addressing derivation output, which produces a placeholder
176176
auto expr = R"(
177177
''
178178
a derivation output: ${

src/libstore/build/derivation-goal.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1222,7 +1222,7 @@ SingleDrvOutputs DerivationGoal::registerOutputs()
12221222
to do anything here.
12231223
12241224
We can only early return when the outputs are known a priori. For
1225-
floating content-addressed derivations this isn't the case.
1225+
floating content-addressing derivations this isn't the case.
12261226
*/
12271227
return assertPathValidity();
12281228
}

src/libstore/ca-specific-schema.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
-- Extension of the sql schema for content-addressed derivations.
1+
-- Extension of the sql schema for content-addressing derivations.
22
-- Won't be loaded unless the experimental feature `ca-derivations`
33
-- is enabled
44

src/libstore/daemon.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -593,7 +593,7 @@ static void performOp(TunnelLogger * logger, ref<Store> store,
593593

594594
auto drvType = drv.type();
595595

596-
/* Content-addressed derivations are trustless because their output paths
596+
/* Content-addressing derivations are trustless because their output paths
597597
are verified by their content alone, so any derivation is free to
598598
try to produce such a path.
599599

src/libstore/derivations.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ static DerivationOutput parseDerivationOutput(
300300
} else {
301301
xpSettings.require(Xp::CaDerivations);
302302
if (pathS != "")
303-
throw FormatError("content-addressed derivation output should not specify output path");
303+
throw FormatError("content-addressing derivation output should not specify output path");
304304
return DerivationOutput::CAFloating {
305305
.method = std::move(method),
306306
.hashAlgo = std::move(hashAlgo),

0 commit comments

Comments
 (0)