Conversation
pkgs/top-level/all-packages.nix
Outdated
| ansible = ansible_2_20; | ||
| ansible_2_20 = python3Packages.toPythonApplication python3Packages.ansible-core; | ||
| ansible_2_19 = python3Packages.toPythonApplication ( | ||
| python3Packages.ansible-core.overridePythonAttrs (oldAttrs: rec { |
There was a problem hiding this comment.
Thanks for letting me know, haven't stumbled across this PR and the involved discussions yet. What would your proposal be? Removal of all Ansible versions that are using the overrides?
There was a problem hiding this comment.
I would add a package ansible_2_19 under pkgs/by-name that copies the expression for ansible-core instead of using overridePythonAttrs.
And yeah, consider removing old versions that we don't need anymore. Why do we keep them around rather than having downstream users do the overriding themselves if they absolutely have to?
There was a problem hiding this comment.
Ansible and ansible-core are currently part of pkgs/development/python-modules, also I myself am not sure how to do this as I want to reuse code but create a new package, right? Do you know of some good blueprint for the changes necessary?
There was a problem hiding this comment.
Just thought about a bit and grepped at least through nixpkgs for the usage of the "older" versions and there was none.
We had reports about a build failure of ansible_2_17 in September but we can easily teach how to use "an older version" with overrides, an older commit of nixpkgs, etc.
Let's remove them and see what breaks and if somebody complains. Tried to achieve it with 89837eb but I'm not sure if the commit message fits the scheme. Otherwise I can remove them one by one to increase my commit count 📈 🤡
There was a problem hiding this comment.
I would do one commit per package that you remove. Also make sure to add an entry to pkgs/top-level/aliases.nix.
eefaba1 to
a3117b6
Compare
a3117b6 to
89837eb
Compare
e2caa77 to
b710e7f
Compare
b710e7f to
47b2c8d
Compare
|
I would like to vouch for keeping older versions, at least some Upgrading ansible is sometimes associated with breakage and keeping one or two relativly new versions should be ok |
Then we should have a policy around which (or how many) versions to keep and we should move them to separate expressions. |
I know this pain. But actually with Nix there is no problem with running ansible from an older nixpkgs commit. |
|
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/prs-ready-for-review/3032/6135 |
|
Changelog: https://github.com/ansible/ansible/blob/v2.20.0/changelogs/CHANGELOG-v2.20.rst
Things done
passthru.tests.nixpkgs-reviewon this PR. See nixpkgs-review usage../result/bin/.Add a 👍 reaction to pull requests you find important.