Skip to content

stdenv: warn about use of inherited lib#111284

Merged
Ericson2314 merged 6 commits intoNixOS:masterfrom
siraben:remove-new-stdenv-lib
Jan 31, 2021
Merged

stdenv: warn about use of inherited lib#111284
Ericson2314 merged 6 commits intoNixOS:masterfrom
siraben:remove-new-stdenv-lib

Conversation

@siraben
Copy link
Member

@siraben siraben commented Jan 30, 2021

Motivation for this change

Closes #108938

  • Remove re-introduced stdenv.lib instances
  • Removed lib from stdenv (doing this to check ofborg eval)
  • warn about use of inherited lib
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 pkgs 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/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.

@siraben siraben changed the title treewide: remove lib from stdenv treewide: stdenv.lib -> lib, stdenv: remove inherited lib Jan 30, 2021
@ofborg ofborg bot added the 6.topic: stdenv Standard environment label Jan 30, 2021
@siraben siraben changed the title treewide: stdenv.lib -> lib, stdenv: remove inherited lib stdenv: remove inherited lib Jan 30, 2021
@ofborg ofborg bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. labels Jan 30, 2021
@siraben siraben force-pushed the remove-new-stdenv-lib branch 2 times, most recently from 8f61ce9 to c96f3cd Compare January 30, 2021 11:26
@siraben siraben changed the title stdenv: remove inherited lib stdenv: warn about use of inherited lib Jan 30, 2021
Copy link
Contributor

@worldofpeace worldofpeace left a comment

Choose a reason for hiding this comment

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

All good but I think we need a release note to document that we're phasing out stdenv.lib.

@siraben
Copy link
Member Author

siraben commented Jan 30, 2021

All good but I think we need a release note to document that we're phasing out stdenv.lib.

Which files would I need to do this in?

@siraben siraben force-pushed the remove-new-stdenv-lib branch from c96f3cd to 32e8cec Compare January 30, 2021 11:43
@siraben siraben requested a review from worldofpeace January 30, 2021 12:58
@ofborg ofborg bot added 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: changelog This PR adds or changes release notes 8.has: documentation This PR adds or changes documentation 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. and removed 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. labels Jan 30, 2021
Copy link
Member

@Ericson2314 Ericson2314 left a comment

Choose a reason for hiding this comment

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

Keep in mind CI has failed deprecation warnings before, with things like == forcing the thunks for otherwise unaccessed attributes, but I hope this one will work out :).

@Ericson2314 Ericson2314 merged commit 6717246 into NixOS:master Jan 31, 2021
@Atemu
Copy link
Member

Atemu commented Feb 1, 2021

things like == forcing the thunks for otherwise unaccessed attributes

Could that be what's causing #109001?

@siraben siraben deleted the remove-new-stdenv-lib branch February 1, 2021 08:05
samueldr added a commit to samueldr-wip/mobile-nixos-wip that referenced this pull request Feb 2, 2021
samueldr added a commit to samueldr-wip/mobile-nixos-wip that referenced this pull request Feb 2, 2021
@Artturin Artturin mentioned this pull request May 8, 2022
13 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 6.topic: stdenv Standard environment 8.has: changelog This PR adds or changes release notes 8.has: documentation This PR adds or changes documentation 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Deprecate use of stdenv.lib across Nixpkgs

4 participants