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

Scope down --derivation to just the commands that use it #7754

Merged

Conversation

Ericson2314
Copy link
Member

@Ericson2314 Ericson2314 commented Feb 5, 2023

Motivation

Per the old FIXME, this flag was on too many commands, and mostly ignored. Now it is just on the commands where it actually has an effect.


Previous commit:

Remove --derivation from test

It doesn't do anything here, and in the next commit show-derivation
will no longer accept this flag.

Context

Per #7261, I would still like to get rid of it entirely, but that is a separate project. This change should be good with or without doing that.

Also working towards NixOS/rfcs#134

Checklist for maintainers

Maintainers: tick if completed or explain if not relevant

  • agreed on idea
  • agreed on implementation strategy
  • tests, as appropriate
    • functional tests - tests/**.sh
    • unit tests - src/*/tests
    • integration tests - tests/nixos/*
  • documentation in the manual
  • code and comments are self-explanatory
  • commit message explains why the change was made
  • new feature or bug fix: updated release notes

It doesn't do anything here, and in the next commit `show-derivation
will no longer accept this flag.
Per the old FIXME, this flag was on too many commands, and mostly
ignored. Now it is just on the commands where it actually has an effect.

Per NixOS#7261, I would still like to get
rid of it entirely, but that is a separate project. This change should
be good with or without doing that.
Copy link
Member

@thufschmitt thufschmitt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sweet :)

(I'm quite pleased by the fact that this gets naturally statically checked by the fact that operateOn now won't exists at all on the commands that don't use it)

@thufschmitt thufschmitt merged commit 5597d68 into NixOS:master Feb 9, 2023
@Ericson2314 Ericson2314 deleted the narrower-scope-derivation-flag branch February 9, 2023 19:26
@Ericson2314 Ericson2314 mentioned this pull request Feb 20, 2023
10 tasks
@nixos-discourse
Copy link

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

https://discourse.nixos.org/t/nix-team-report-2022-10-2023-03/27486/1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants