Skip to content

fix(release): correct PYPI_TOKEN error message in check-release-environment#31

Merged
hanzo-dev merged 1 commit into
hanzoai:mainfrom
abhicris:kcolb/fix-2026-06-01-release-env-error-message
Jun 2, 2026
Merged

fix(release): correct PYPI_TOKEN error message in check-release-environment#31
hanzo-dev merged 1 commit into
hanzoai:mainfrom
abhicris:kcolb/fix-2026-06-01-release-env-error-message

Conversation

@abhicris
Copy link
Copy Markdown
Contributor

@abhicris abhicris commented Jun 1, 2026

Why

bin/check-release-environment guards the release flow by checking that PYPI_TOKEN is set, but the error message it prints only mentions HANZO_PYPI_TOKEN. The CI workflows (.github/workflows/publish-pypi.yml, release-doctor.yml, hanzo-packages-ci.yml, etc.) map either HANZO_PYPI_TOKEN or PYPI_TOKEN into the PYPI_TOKEN env var, so the existing message is misleading when the variable is missing — a maintainer setting only PYPI_TOKEN would still see a complaint about HANZO_PYPI_TOKEN.

This 1-line change updates the message to describe what is actually checked and what secrets can satisfy it. No logic change.

…onment

The script checks for the PYPI_TOKEN env var, but the error message only
mentioned HANZO_PYPI_TOKEN. CI workflows actually map either the
HANZO_PYPI_TOKEN or PYPI_TOKEN secret into PYPI_TOKEN
(see .github/workflows/publish-pypi.yml and release-doctor.yml), so the
message was misleading when the variable was missing. Update the text to
match the real behaviour.
@hanzo-dev hanzo-dev merged commit 318785c into hanzoai:main Jun 2, 2026
11 of 14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants