-
-
Notifications
You must be signed in to change notification settings - Fork 14.1k
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
ansible: update point releases and unify build #40277
Conversation
Success on x86_64-linux (full log) Attempted: ansible Partial log (click to expand)
|
Success on aarch64-linux (full log) Attempted: ansible Partial log (click to expand)
|
pkgs/tools/admin/ansible/default.nix
Outdated
}; | ||
|
||
in rec { | ||
# I really don't know why we carry so many versions... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should only have the official supported releases here, which is 2.4 and 2.5 https://docs.ansible.com/ansible/latest/reference_appendices/release_and_maintenance.html?highlight=release#release-status
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
sha256 = "1r9sq30xz3jrvx6yqssj5wmkml1f75rx1amd7g89f3ryngrq6m59"; | ||
}; | ||
|
||
ansible2 = ansible_2_5; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be 2.4. 2.5 is still in development.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you 100% sure? 2.5 looks to be the stable release version on https://docs.ansible.com where 2.4 is listed as a "previous version".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok. You are right.
Could a second commit be added that removes the old versions? |
Done |
Success on x86_64-linux (full log) Attempted: ansible Partial log (click to expand)
|
Success on aarch64-linux (full log) Attempted: ansible Partial log (click to expand)
|
# We will carry all the supported versions | ||
|
||
ansible_2_4 = generic { | ||
version = "2.4.4.0"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will build 2.4 with python3. Ansible doc says:
Ansible 2.5 and above have support for Python 3. Previous to 2.5, the Python 3 support was considered a tech preview.
Do we want to use python3 here anyway although it's not officially supported?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Version 2.1 built properly with python3 when I tried.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not saying it doesn't work - it's just not officially supported. It was more of a question whether we want to package a "tech previer".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Turns out that previously all of them were built with python2, so in order not to change too much at one time, I'll change it to that here as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for all of them
1) We had lots of copy paste - instead use a generic builder for the various reasons. 2) Default version changed to latest (2.5 instead of 2.4) 3) Point release updates to all
Success on aarch64-linux (full log) Attempted: ansible Partial log (click to expand)
|
Success on x86_64-linux (full log) Attempted: ansible Partial log (click to expand)
|
@GrahamcOfBorg build ansible ansible_2_4 |
Success on x86_64-linux (full log) Attempted: ansible, ansible_2_4 Partial log (click to expand)
|
Success on x86_64-darwin (full log) Attempted: ansible, ansible_2_4 Partial log (click to expand)
|
Success on aarch64-linux (full log) Attempted: ansible, ansible_2_4 Partial log (click to expand)
|
Motivation for this change
We had lots of copy paste - instead use a generic builder for the various versions.
Default version changed to latest (2.5 instead of 2.4) - ref Update default attributes to latest version available #40015
Point release updates for all versions
Cc: @jgeerds @joamaki
Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)