Pypi Repository Package Doesn't Override Packages With The Same Version

I have configured a PyPy package manager for my repository
and tried to upload the same package version with the save version more than once

When I have executed the following command:
python3 -m twine upload --repository gitlab dist/

I have received the following error:
Content received from server:
{“message”:“Validation failed: File name has already been taken”}
HTTPError: 400 Bad Request from https://gitlab.com/api/v4/projects/19660947/packages/pypi
Bad Request

In the GitLab documentation it states that the packages with the same versions are being replaced:
https://docs.gitlab.com/ee/user/packages/pypi_repository/index.html#uploading-packages

May i ask what version u are using? I can’t get the package manger enabled on gitlab CE.
Edit: https://gitlab.com/help/user/packages/index states that we have it after release of 13.3.

Hi,

this sounds like a bug to me, especially since it responds with 400/bad request. Can you re-test this again (might be fixed since GitLab.com is a rolling release to production every day). If the issue persists, please go ahead and create a bug report. Thanks! :slight_smile:

Cheers,
Michael

1 Like