Skip to content

Commit 75bcda3

Browse files
author
Michał Kudela
committed
Disable after_script to prevent overwriting build_wheel.env
The base template's after_script overwrites build_wheel.env created by hiveio_api_package.sh. It cannot produce correct version because poetry-dynamic-versioning plugin may not be active in after_script context.
1 parent a739598 commit 75bcda3

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

scripts/ci-helpers/hiveio_api_package.gitlab-ci.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,10 @@
6363
[[ "${SKIP_WHEEL_DEPLOY}" == "true" ]] && SCRIPT_ARGS+=("--skip-deploy")
6464
[[ "${SKIP_REGISTRY_CHECK}" == "true" ]] && SCRIPT_ARGS+=("--skip-registry-check")
6565
"${HIVE_PROJECT_ROOT}/scripts/ci-helpers/hiveio_api_package.sh" "${SCRIPT_ARGS[@]}"
66-
# Override after_script from .build_wheel_template — the base template uses PYPROJECT_DIR
67-
# (api_generation/) which has static version 0.0.0. Use python_api_package/ instead.
68-
after_script:
69-
- WHEEL_BUILD_VERSION=$(poetry -C "${API_GENERATION_DIR}/python_api_package" version -s)
70-
- echo "WHEEL_BUILD_VERSION is ${WHEEL_BUILD_VERSION}"
71-
- echo "WHEEL_BUILD_VERSION=${WHEEL_BUILD_VERSION}" > build_wheel.env
66+
# Disable after_script from .build_wheel_template — it would overwrite build_wheel.env
67+
# created by hiveio_api_package.sh (the base template uses PYPROJECT_DIR=api_generation/
68+
# which has static version 0.0.0, not the dynamic version from python_api_package/).
69+
after_script: []
7270
artifacts:
7371
expire_in: 1 week
7472
paths:

0 commit comments

Comments
 (0)