Skip to content
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

Accept ansible-core filename starting with ansible_core-<version>.tar as well; fix error message formatting #158

Merged
merged 4 commits into from
Apr 16, 2024

Conversation

felixfontein
Copy link
Collaborator

@felixfontein felixfontein commented Apr 16, 2024

Since ansible-core 2.16.6 the release filename is no longer ansible-core-<version>.tar.gz, but ansible_core-<version>.tar.gz.

Also there was an f missing for the second line, causing the formatted error message to be something like antsibull_core.ansible_core.UnknownVersion: ansible-core 2.16.6 does not exist on {self.pypi_server_url}.

@felixfontein felixfontein changed the title Fix error message formatting Accept ansible-core filename starting with ansible_core-<version>.tar as well; fix error message formatting Apr 16, 2024
@felixfontein felixfontein marked this pull request as draft April 16, 2024 05:55
gotmax23 and others added 2 commits April 16, 2024 18:08
Code in antsibull relies on the top-level directory and the archive
having the same basename.
@felixfontein felixfontein marked this pull request as ready for review April 16, 2024 18:55
@felixfontein felixfontein merged commit d787b80 into ansible-community:main Apr 16, 2024
4 checks passed
@felixfontein felixfontein deleted the fix branch April 16, 2024 19:03
@felixfontein felixfontein added the backport-2 Automatically create backport to stable-2 branch label Apr 16, 2024
Copy link

patchback bot commented Apr 16, 2024

Backport to stable-2: 💚 backport PR created

✅ Backport PR branch: patchback/backports/stable-2/d787b8016f8fa8a66b655de36df6177cf2537bd2/pr-158

Backported as #159

🤖 @patchback
I'm built with octomachinery and
my source is open — https://github.com/sanitizers/patchback-github-app.

patchback bot pushed a commit that referenced this pull request Apr 16, 2024
…r` as well; fix error message formatting (#158)

* Fix error message formatting.

* Accept filename starting with ansible_core as well.

* AnsibleCorePyPiClient.retrieve: ensure the correct filename is returned

Code in antsibull relies on the top-level directory and the archive
having the same basename.

* Update changelog.

---------

Co-authored-by: Maxwell G <maxwell@gtmx.me>
(cherry picked from commit d787b80)
gotmax23 added a commit that referenced this pull request Apr 17, 2024
…r` as well; fix error message formatting (#158) (#159)

* Fix error message formatting.

* Accept filename starting with ansible_core as well.

* AnsibleCorePyPiClient.retrieve: ensure the correct filename is returned

Code in antsibull relies on the top-level directory and the archive
having the same basename.

* Update changelog.

---------

(cherry picked from commit d787b80)

Co-authored-by: Felix Fontein <felix@fontein.de>
Co-authored-by: Maxwell G <maxwell@gtmx.me>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-2 Automatically create backport to stable-2 branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants