You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[nix] create common ExperimentalFlags function (#678)
## Summary
I noticed that print-dev-env and nix profile commands were using a
different set
of nix experimental features.
I think we should unify these so that they're writing to the store in a
common fashion.
**Implementation Note**
It appears that: `"--extra-experimental-features", "nix-command
flakes"`, is different from `"--option", "experimental-features",
"nix-command flakes"` for our `nix print-dev-env` testscripts.
We must have the latter. The former is insufficient and not needed.
This confuses me because the docs suggest that
`--extra-experimental-features` should append these experimental
features, whereas `--option` replaces the experimental features:
> --option name value
Set the Nix configuration setting name to value (overriding nix.conf).
and
> --extra-experimental-features value
Append to the experimental-features setting.
Concretely, this works:
```
"--extra-experimental-features", "ca-derivations",
"--option", "experimental-features", "nix-command flakes",
```
but this does not work:
```
"--option", "experimental-features", "ca-derivations nix-command flakes",
```
and nor does this:
```
"--extra-experimental-features", "nix-command flakes",
"--extra-experimental-features", "ca-derivations",
```
## How was it tested?
`go test ./...`
in `examples/testdata/go/go-1.19` with flakes feature flag on for all
commands:
```
> devbox shell
(devbox)> devbox add vim emacs
(devbox)> source activate shell...
(devbox)> devbox rm emacs
```
0 commit comments