mirror of
https://github.com/NixOS/nix
synced 2025-06-25 19:01:16 +02:00
builtins.fetchTree
: Mark experimental the new way
This helps ensure uniform docs/error message.
This commit is contained in:
parent
b7e712f9fd
commit
cede94dbf7
1 changed files with 2 additions and 6 deletions
|
@ -195,7 +195,6 @@ static void fetchTree(
|
||||||
|
|
||||||
static void prim_fetchTree(EvalState & state, const PosIdx pos, Value * * args, Value & v)
|
static void prim_fetchTree(EvalState & state, const PosIdx pos, Value * * args, Value & v)
|
||||||
{
|
{
|
||||||
experimentalFeatureSettings.require(Xp::Flakes);
|
|
||||||
fetchTree(state, pos, args, v, std::nullopt, FetchTreeParams { .allowNameArgument = false });
|
fetchTree(state, pos, args, v, std::nullopt, FetchTreeParams { .allowNameArgument = false });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -237,12 +236,9 @@ static RegisterPrimOp primop_fetchTree({
|
||||||
```nix
|
```nix
|
||||||
builtins.fetchTree "https://example.com/"
|
builtins.fetchTree "https://example.com/"
|
||||||
```
|
```
|
||||||
|
|
||||||
> **Note**
|
|
||||||
>
|
|
||||||
> This function requires the [`flakes` experimental feature](@docroot@/contributing/experimental-features.md#xp-feature-flakes) to be enabled.
|
|
||||||
)",
|
)",
|
||||||
.fun = prim_fetchTree
|
.fun = prim_fetchTree,
|
||||||
|
.experimentalFeature = Xp::Flakes,
|
||||||
});
|
});
|
||||||
|
|
||||||
static void fetch(EvalState & state, const PosIdx pos, Value * * args, Value & v,
|
static void fetch(EvalState & state, const PosIdx pos, Value * * args, Value & v,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue