You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/changelogs
Sviatoslav Sydorenko e470954985
Always allow "no-other-choice" pre-release dependencies when resolving collection dependency tree (#81746)
PR #81606.

Prior to this patch, when `--pre` CLI flag was not passed, the
dependency resolver would treat concrete collection dependency
candidates (Git repositories, subdirs, tarball URLs, or local dirs or
files etc) as not meeting the requirements.

This patch makes it so pre-releases in any concrete artifact
references, and the ones being specifically pinned dependencies or
user requests, met anywhere in the dependency tree, are allowed
unconditionally.

This is achieved by moving the pre-release check from
`is_satisfied_by()` to the `find_matches()` hook, following the
Pip's example.

As a bonus, this change also fixes the situation when a collection
pre-releases weren't considered if it didn't have any stable releases.
This now works even if `--pre` wasn't requested explicitly.

Finally, this patch partially reverts commit
6f4b4c345b, except for the tests. And it
also improves the `--pre` hint warning to explain that it mostly
affects Galaxy/Automation Hub-hosted collection releases.

Ref #73416
Ref #79112
Fixes #79168
Fixes #80048
Resolves #81605

Co-authored-by: Sloane Hertel <19572925+s-hertel@users.noreply.github.com>
(cherry picked from commit 7662a05085)
2 years ago
..
fragments Always allow "no-other-choice" pre-release dependencies when resolving collection dependency tree (#81746) 2 years ago
README.md Convert non-docs *.rst files to *.md (#81217) 3 years ago
changelog.yaml bump devel to 2.16.0.dev0 (#80390) 3 years ago
config.yaml [changelog config] Ansible Base -> ansible-core (#73739) 5 years ago

README.md

Changelogs

As part of the release process a version-specific CHANGELOG-vX.Y.rst will be generated from fragments in the fragments directory.

On release branches once a release has been created, consult the branch's version-specific file for changes that have occurred in that branch. The devel branch does not have a generated changelog, only changelog fragments.