1
0
Fork 0
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:
John Ericson 2023-09-28 20:51:25 -04:00
parent b7e712f9fd
commit cede94dbf7

View file

@ -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,