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

fix: ignore template repo tags that aren't valid PEP 440 versions #989

Merged
merged 1 commit into from
Feb 20, 2023

Conversation

yajo
Copy link
Member

@yajo yajo commented Feb 20, 2023

In pypa/packaging#530 the packaging project stopped suplying legacy versions when a tag wasn't valid. Then, some repos started failing because they were relying on this.

For example, see Tecnativa/doodba-copier-template#361.

This change makes sure that invalid versions are skipped, so people can still update and those repos just keep working.

The workaround until now is to specify a --vcs-ref option, to avoid Copier have to checkout the latest tag automatically (which is the code that triggers the bug).

@moduon MT-2379

In pypa/packaging#530 the packaging project stopped suplying legacy versions when a tag wasn't valid. Then, some repos started failing because they were relying on this.

For example, see Tecnativa/doodba-copier-template#361.

This change makes sure that invalid versions are skipped, so people can still update and those repos just keep working.

The workaround until now is to specify a `--vcs-ref` option, to avoid Copier have to checkout the latest tag automatically (which is the code that triggers the bug).

@moduon MT-2379
@yajo yajo enabled auto-merge (rebase) February 20, 2023 13:05
@codecov
Copy link

codecov bot commented Feb 20, 2023

Codecov Report

Merging #989 (b64c16b) into master (468b9ff) will decrease coverage by 0.17%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #989      +/-   ##
==========================================
- Coverage   96.69%   96.52%   -0.17%     
==========================================
  Files          42       42              
  Lines        3142     3164      +22     
==========================================
+ Hits         3038     3054      +16     
- Misses        104      110       +6     
Flag Coverage Δ
unittests 96.52% <100.00%> (-0.17%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
copier/vcs.py 97.11% <100.00%> (+0.17%) ⬆️
tests/test_vcs.py 97.16% <100.00%> (+0.50%) ⬆️
tests/test_tools.py 63.15% <0.00%> (-31.58%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

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.

None yet

1 participant