Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Existing repositories are no longer updated if Git tag is changed #46

Open
mliebischer opened this issue Jun 11, 2024 · 0 comments
Open

Comments

@mliebischer
Copy link

I am coming from v2 and have recently started with v4. I have noticed that updating the Git tag within the branch option no longer update existing repositories correctly.

Steps to reproduce:

  1. Create a simple configuration file with the branch option set to an existing Git tag, e.g. 8.0.0 for plone.restapi.
[plone.restapi]
url = https://github.com/plone/plone.restapi.git
branch = 8.0.0
  1. Run mxdev -c mxdev.ini to fetch the package initially.
  2. Change the branch option to 9.0.0.
[plone.restapi]
url = https://github.com/plone/plone.restapi.git
branch = 9.0.0
  1. Run mxdev -c mxdev.ini again to update your existing repo.
  2. Check the Git tag of the currently checked out repository. You can use git describe --tags for this.

Actual result:
You will see that the repository remains on the old tag 8.0.0.

Expected result:
The repository should be updated to 9.0.0.

Affected versions:

pip install mxdev==4.0.3 # broken
pip install mxdev==2.1.0 # works

I suspect this is related to the recent VCS code change, but I have not checked this further, see https://github.com/mxstack/mxdev/blob/main/CHANGES.md#300b1-2022-11-21

Side note:
Changing branch = main to branch = portlets works fine. It seems that only tag does not work anymore.

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

No branches or pull requests

1 participant