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

3.1.1: tag and branch names are the same #2138

Closed
kloczek opened this issue Jan 13, 2023 · 1 comment
Closed

3.1.1: tag and branch names are the same #2138

kloczek opened this issue Jan 13, 2023 · 1 comment

Comments

@kloczek
Copy link

kloczek commented Jan 13, 2023

Looks like becaue branch has the same name as taf it is not possible to download tagged tar ball

$ wget https://github.com/falconry/falcon//archive/3.1.1/python-falcon-3.1.1.tar.gz
--2023-01-13 04:31:18--  https://github.com/falconry/falcon//archive/3.1.1/python-falcon-3.1.1.tar.gz
Resolving github.com (github.com)... 140.82.121.4, 64:ff9b::8c52:7904
Connecting to github.com (github.com)|140.82.121.4|:443... connected.
HTTP request sent, awaiting response... 300 Multiple Choices
Length: 105 [text/plain]
Saving to: ‘python-falcon-3.1.1.tar.gz’

python-falcon-3.1.1.tar.gz                      100%[====================================================================================================>]     105  --.-KB/s    in 0s

2023-01-13 04:31:18 (9.07 MB/s) - ‘python-falcon-3.1.1.tar.gz’ saved [105/105]

$ cat python-falcon-3.1.1.tar.gz echo
the given path has multiple possibilities: #<Git::Ref:0x00007f68ba9bd668>, #<Git::Ref:0x00007f68ba989d90>cat: echo: No such file or directory

Possible fix: use v<version> convention for tags.

@kloczek kloczek changed the title 3.1.1: tag and branch name are the same 3.1.1: tag and branch names are the same Jan 13, 2023
@vytas7
Copy link
Member

vytas7 commented Jan 13, 2023

Thanks for reporting, yes, it did get slightly suboptimal. I've went for a mirror variant of your suggestion, simply renamed the branch to v3.1.1. https://github.com/falconry/falcon/archive/3.1.1.tar.gz should now unambiguously resolve to https://codeload.github.com/falconry/falcon/tar.gz/refs/tags/3.1.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants