mirror of
https://github.com/NixOS/nix.git
synced 2024-11-26 00:32:28 +00:00
flakes: remove experimental repl-flake
This commit is contained in:
parent
a223280664
commit
717391731c
@ -203,16 +203,6 @@ constexpr std::array<ExperimentalFeatureDetails, numXpFeatures> xpFeatureDetails
|
||||
)",
|
||||
.trackingUrl = "https://github.com/NixOS/nix/milestone/40",
|
||||
},
|
||||
{
|
||||
.tag = Xp::ReplFlake,
|
||||
.name = "repl-flake",
|
||||
.description = R"(
|
||||
*Enabled with [`flakes`](#xp-feature-flakes) since 2.19*
|
||||
|
||||
Allow passing [installables](@docroot@/command-ref/new-cli/nix.md#installables) to `nix repl`, making its interface consistent with the other experimental commands.
|
||||
)",
|
||||
.trackingUrl = "https://github.com/NixOS/nix/milestone/32",
|
||||
},
|
||||
{
|
||||
.tag = Xp::AutoAllocateUids,
|
||||
.name = "auto-allocate-uids",
|
||||
|
@ -26,7 +26,6 @@ enum struct ExperimentalFeature
|
||||
RecursiveNix,
|
||||
NoUrlLiterals,
|
||||
FetchClosure,
|
||||
ReplFlake,
|
||||
AutoAllocateUids,
|
||||
Cgroups,
|
||||
DaemonTrustOverride,
|
||||
|
@ -47,15 +47,6 @@ struct CmdRepl : RawInstallablesCommand
|
||||
|
||||
void applyDefaultInstallables(std::vector<std::string> & rawInstallables) override
|
||||
{
|
||||
if (!experimentalFeatureSettings.isEnabled(Xp::Flakes) && !(file) && rawInstallables.size() >= 1) {
|
||||
warn("future versions of Nix will require using `--file` to load a file");
|
||||
if (rawInstallables.size() > 1)
|
||||
warn("more than one input file is not currently supported");
|
||||
auto filePath = rawInstallables[0].data();
|
||||
file = std::optional(filePath);
|
||||
rawInstallables.front() = rawInstallables.back();
|
||||
rawInstallables.pop_back();
|
||||
}
|
||||
if (rawInstallables.empty() && (file.has_value() || expr.has_value())) {
|
||||
rawInstallables.push_back(".");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user