Fetching Using --branch Gives Tag Error
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
Research direction
Reproduce the issue with fetch_linux_amd64 using the reported --repo and --branch commands, then compare the --branch and --tag paths. Trace the --branch option and the latest-tag/version error; done means fetching the requested branch succeeds without rejecting an unrelated malformed tag.
Written by the indexing model from the issue text.
Description
Using fetch_linux_amd64 to fetch a copy of my repo by branch name using OAuth token. So the command I am using is the below:
./fetch_linux_amd64 --repo="https://github.com/AAA/REPO_A" --branch="master" ./LOCAL_REPO_A
The error that it's returning is:
ERROR: Error occurred while computing latest tag that satisfies version contraint expression: -1 - Malformed version: testing_fix-multi-netif-ctrl-tab_07_06
"testing_fix-multi-netif-ctrl-tab_07_06" in the error is a pre-release tag that I had created on the repo. I am confused as to why it's even computing/checking tag names because I want to fetch the repo by branch name and had specified using --branch option. When I tried other branch names besides master I got the same error.
Then I tried the original command and substituted --branch with --tag, see below:
./fetch_linux_amd64 --repo="https://github.com/AAA/REPO_A" --tag="master" ./LOCAL_REPO_A
It seems that the new command was able to fetch the master branch of my repo. I am confused as to why the --tag would work but --branch didn't work. This seems like a bug.
- Dominant language
- Go
- Stars
- 625
- Forks
- 92
- Avg merge
- 12h 56m
- Merged PRs (30d)
- 2
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from gruntwork-io/fetch
-
enhancement
Difficulty 3/5 1-2 days Newbie friendliness 38/100
gruntwork-io/fetch#121 · 1 comment ·
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 35/100
gruntwork-io/fetch#120 · 2 reactions ·
-
bug p:needs triage
Difficulty 4/5 3-5 days Newbie friendliness 32/100
gruntwork-io/fetch#111 · 2 comments ·
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 25/100
gruntwork-io/fetch#107 ·
-
Prevent silent failOpenenhancement
Difficulty 3/5 1-2 days Newbie friendliness 35/100
gruntwork-io/fetch#104 · 4 comments ·
All issues in gruntwork-io/fetch
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
tech-debt
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
seriousm4x/UpSnap#1786 ·
-
enhancement security
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
bug feedback ui/ux
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
peasant-labs/peasant#1307 ·
Maintainers usually reply within 1 day