Skip to content

Fix version mismatch causing Build and Deploy #181 failure - #46

Draft
yves-chevallier with Copilot wants to merge 3 commits into
masterfrom
copilot/fix-build-and-deploy-issue
Draft

Fix version mismatch causing Build and Deploy #181 failure#46
yves-chevallier with Copilot wants to merge 3 commits into
masterfrom
copilot/fix-build-and-deploy-issue

Conversation

Copilot AI commented Oct 20, 2025

Copy link
Copy Markdown

Problem

The Build and Deploy workflow run #181 failed during PyPI publication with an HTTP 400 error: "File already exists".

The issue occurred because:

  • The git tag was set to 0.6.1 (commit 219d7b5)
  • However, pyproject.toml still contained version = "0.6.0"
  • The workflow built packages using the version from pyproject.toml (0.6.0)
  • PyPI rejected the upload since version 0.6.0 already existed from a previous release

Solution

Updated the version in pyproject.toml from 0.6.0 to 0.6.1 to match the git tag.

 [tool.poetry]
 name = "baygon"
-version = "0.6.0"
+version = "0.6.1"
 description = "Functional tests for teaching activities"

Verification

Tested the fix locally with Poetry:

$ poetry build
Building baygon (0.6.1)
  - Built baygon-0.6.1.tar.gz
  - Built baygon-0.6.1-py3-none-any.whl

The build now correctly produces version 0.6.1 packages that will successfully upload to PyPI.

Prevention

To avoid this issue in the future, always update pyproject.toml version before creating git tags:

poetry version 0.6.2
git add pyproject.toml
git commit -m "Bump version to 0.6.2"
git tag 0.6.2
git push origin main --tags

Closes issue about Build and Deploy #181 failure.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • install.python-poetry.org
    • Triggering command: curl -sSL REDACTED (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

Expliques moi ce qui ne marche pas dans l'action : Build and Deploy #181 et comment corriger ?


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI self-assigned this Oct 20, 2025
Copilot AI and others added 2 commits October 20, 2025 15:24
Co-authored-by: yves-chevallier <52489316+yves-chevallier@users.noreply.github.com>
Co-authored-by: yves-chevallier <52489316+yves-chevallier@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix issues in Build and Deploy action #181 Fix version mismatch causing Build and Deploy #181 failure Oct 20, 2025
Copilot AI requested a review from yves-chevallier October 20, 2025 15:25
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