Skip to content

runCommandNoCC -> runCommand deprecation#134225

Merged
siraben merged 8 commits intoNixOS:masterfrom
hercules-ci:runCommand-no-nocc
Aug 15, 2021
Merged

runCommandNoCC -> runCommand deprecation#134225
siraben merged 8 commits intoNixOS:masterfrom
hercules-ci:runCommand-no-nocc

Conversation

@roberth
Copy link
Member

@roberth roberth commented Aug 15, 2021

Motivation for this change

Simplify to remove doubt when writing and reviewing expressions.

This produces no rebuilds except in the yarn2nix-moretea package, which is updated to use runCommand.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • 21.11 Release Notes (or backporting 21.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

@github-actions github-actions bot added 6.topic: agda A dependently typed programming language / interactive theorem prover 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 6.topic: python Python is a high-level, general-purpose programming language. 6.topic: rust General-purpose programming language emphasizing performance, type safety, and concurrency. 8.has: module (update) This PR changes an existing module in `nixos/` labels Aug 15, 2021
@roberth roberth force-pushed the runCommand-no-nocc branch from a21485b to f5c1f79 Compare August 15, 2021 15:29
Copy link
Member

Choose a reason for hiding this comment

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

Do we plan removal at some point in the future? Now would be the time to announce that we will drop in in ~2022.11?

Copy link
Member Author

Choose a reason for hiding this comment

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

I'd say it announces itself. No need to use up more brain bandwidth than necessary.

Copy link
Member

Choose a reason for hiding this comment

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

Though, maybe link to the PR like we did for deprecating stdenv.lib. Not necessary though.

@roberth roberth force-pushed the runCommand-no-nocc branch from f5c1f79 to c9ec4b2 Compare August 15, 2021 15:35
This has been synonymous for ~5y.
This has been synonymous for ~5y.

Note that many of these runCommand bindings are unused, but that's
ok for generated code.
It has been synonymous with runCommand ~5y.
@roberth roberth force-pushed the runCommand-no-nocc branch from c9ec4b2 to 9feb144 Compare August 15, 2021 15:36
This allows the aliases file to produce deprecation warnings
without triggering the check against warnings. This allows
for a better user experience when deprecations occur.

Moreover, Nixpkgs itself shouldn't rely on its backcompat aliases.
@siraben
Copy link
Member

siraben commented Aug 15, 2021

Result of nixpkgs-review pr 134225 run on x86_64-linux 1

1 package built:
  • yarn2nix

@siraben siraben merged commit e623f82 into NixOS:master Aug 15, 2021
@roberth
Copy link
Member Author

roberth commented Aug 15, 2021

Oh no, I was still looking into making ofborg accept this.

@roberth
Copy link
Member Author

roberth commented Aug 15, 2021

I'll make a PR to fix ofborg eval.

@roberth roberth mentioned this pull request Aug 15, 2021
11 tasks
@roberth
Copy link
Member Author

roberth commented Aug 15, 2021

The deprecation warning has been reverted in #134230, making this PR ineffective.

We can't have deprecate it until NixOS/ofborg#575, unless someone knows a workaround to please / trick ofborg.

andersk added a commit to andersk/nixpkgs-mozilla that referenced this pull request Sep 26, 2022
It has been synonymous with runCommand since
NixOS/nixpkgs@97bfc2f
(2016-09-26), was deprecated in
NixOS/nixpkgs#134225 (2021-08-15), and was
removed in NixOS/nixpkgs#192681 (2022-09-24).

Signed-off-by: Anders Kaseorg <[email protected]>
nbp pushed a commit to mozilla/nixpkgs-mozilla that referenced this pull request Oct 3, 2022
It has been synonymous with runCommand since
NixOS/nixpkgs@97bfc2f
(2016-09-26), was deprecated in
NixOS/nixpkgs#134225 (2021-08-15), and was
removed in NixOS/nixpkgs#192681 (2022-09-24).

Signed-off-by: Anders Kaseorg <[email protected]>
mightyiam added a commit to mightyiam/nix-unit that referenced this pull request Nov 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: agda A dependently typed programming language / interactive theorem prover 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 6.topic: python Python is a high-level, general-purpose programming language. 6.topic: rust General-purpose programming language emphasizing performance, type safety, and concurrency. 8.has: module (update) This PR changes an existing module in `nixos/`

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants