Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Punt on improper global flags for now #7610

Merged
merged 1 commit into from
Apr 3, 2023

Conversation

Ericson2314
Copy link
Member

@Ericson2314 Ericson2314 commented Jan 17, 2023

See the note in the test.

We don't want these flags showing up for commands where they are irrelevant.

Eventually, this needs a proper fix, but it need not be a blocker for
stabilize: for a quick-n-dirty punt, just put these flags behind the nix-command unstable feature.

This is fine because they are only relevant for commands which we don't need to stabilize for a while.

Depends on #7609
This PR proper is just the final commit in the chain

Resolves #7820 vis-à-vis stabilization in the short term.

@edolstra
Copy link
Member

Let's please not do this kind of massive code churn when we could just stabilize the nix command instead.

@edolstra edolstra closed this Jan 17, 2023
@Ericson2314 Ericson2314 reopened this Jan 17, 2023
@Ericson2314
Copy link
Member Author

Ericson2314 commented Jan 17, 2023

Let's keep this open until we've discussed your one big flip alternative. It's hardly massive, anyways, and the infrastructure is useful for further experimental features, like CA derivations, which could need its own command or flags.

There are a number issues with the new CLI that need fixing that we have not discussed yet. When you open your PR I will start commenting on them.

@Ericson2314
Copy link
Member Author

Also if we were to stabilize everything then we we would need a proper fix for these flags being accepted by all commands, which is terrible UX. That is far more work.

@Ericson2314
Copy link
Member Author

Because this depends on other PRs the diff is confusing so I will mark as draft now. CI has run (which I don't think it does for draft PRs) so that's good.

@dpulls
Copy link

dpulls bot commented Mar 27, 2023

🎉 All dependencies have been resolved !

@Ericson2314 Ericson2314 marked this pull request as ready for review March 27, 2023 13:20
See the note in the test.

We don't want these flags showing up for commands where they are
irrelevant.

Eventually, this needs a proper fix, but it need not be a blocker for
stabilize: for a quick-n-dirty punt, just put these flags behind the
`nix-command` unstable feature.

This is fine because they are only relevant for commands which we don't
need to stabilize for a while.
@github-actions github-actions bot added the with-tests Issues related to testing. PRs with tests have some priority label Mar 27, 2023
@Ericson2314 Ericson2314 added the new-cli Relating to the "nix" command label Apr 2, 2023
@thufschmitt thufschmitt merged commit 70bb7b7 into NixOS:master Apr 3, 2023
@Ericson2314 Ericson2314 deleted the gate-default-settings branch April 3, 2023 12:02
@nixos-discourse
Copy link

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/2023-04-03-nix-team-meeting-minutes-46/27008/1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new-cli Relating to the "nix" command with-tests Issues related to testing. PRs with tests have some priority
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Remove --print-build-logs from various commands
4 participants