Skip to content

Commit

Permalink
Fix package name in rebuild script (#636)
Browse files Browse the repository at this point in the history
* Fix package name in rebuild script.

* Update changelog.

Co-authored-by: Maxwell G <maxwell@gtmx.me>

---------

Co-authored-by: Maxwell G <maxwell@gtmx.me>
  • Loading branch information
felixfontein and gotmax23 authored Oct 18, 2024
1 parent 5f6ebd2 commit 98e2cd0
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions changelogs/fragments/636-rename.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
bugfixes:
- "Adjust the rebuild script included in Ansible releases to install antsibull-build instead of antsibull (https://github.com/ansible-community/antsibull-build/pull/636)."
2 changes: 1 addition & 1 deletion src/antsibull_build/data/build-ansible.sh.j2
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ MAJOR="{{ version.major }}"
# For idempotency, remove build data or built output first
rm -rf ansible-build-data built

pip3 install --user --upgrade "antsibull=={{ antsibull_version }}"
pip3 install --user --upgrade "antsibull-build=={{ antsibull_version }}"
git clone https://github.com/ansible-community/ansible-build-data.git
mkdir -p built collection-cache

Expand Down
2 changes: 1 addition & 1 deletion tests/test_data/package-files/7.5.0/build-ansible.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ MAJOR="7"
# For idempotency, remove build data or built output first
rm -rf ansible-build-data built

pip3 install --user --upgrade "antsibull==(ANTSIBULL_VERSION)"
pip3 install --user --upgrade "antsibull-build==(ANTSIBULL_VERSION)"
git clone https://github.com/ansible-community/ansible-build-data.git
mkdir -p built collection-cache
BUILD_DATA_DIR="ansible-build-data/${MAJOR}"
Expand Down
2 changes: 1 addition & 1 deletion tests/test_data/package-files/8.1.0/build-ansible.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ MAJOR="8"
# For idempotency, remove build data or built output first
rm -rf ansible-build-data built

pip3 install --user --upgrade "antsibull==(ANTSIBULL_VERSION)"
pip3 install --user --upgrade "antsibull-build==(ANTSIBULL_VERSION)"
git clone https://github.com/ansible-community/ansible-build-data.git
mkdir -p built collection-cache
BUILD_DATA_DIR="ansible-build-data/${MAJOR}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ MAJOR="8"
# For idempotency, remove build data or built output first
rm -rf ansible-build-data built

pip3 install --user --upgrade "antsibull==(ANTSIBULL_VERSION)"
pip3 install --user --upgrade "antsibull-build==(ANTSIBULL_VERSION)"
git clone https://github.com/ansible-community/ansible-build-data.git
mkdir -p built collection-cache
BUILD_DATA_DIR="ansible-build-data/${MAJOR}"
Expand Down

0 comments on commit 98e2cd0

Please sign in to comment.