Skip to content

git_worker.bzl: also fetch all tags - #8933

Closed
jamiesnape wants to merge 1 commit into
bazelbuild:masterfrom
jamiesnape:git-worker-fetch-all-tags
Closed

jamiesnape wants to merge 1 commit into
bazelbuild:masterfrom
jamiesnape:git-worker-fetch-all-tags

Conversation

@jamiesnape

@jamiesnape jamiesnape commented Jul 18, 2019 •

Copy link
Copy Markdown

Previously, if a tag was not on a branch, it the commit would not be fetched.

Previously, if a tag was not a branch, it would not be fetched.
@iirina iirina added the team-ExternalDeps External dependency handling, remote repositiories, WORKSPACE file. label Jul 19, 2019
@iirina
iirina requested a review from irengrig July 19, 2019 13:52
irengrig added a commit to irengrig/bazel that referenced this pull request Jul 22, 2019
to demonstrate the fix when we specify the commit which is not on any branch, but on a tag (bazelbuild#8933)
irengrig added a commit to irengrig/bazel that referenced this pull request Aug 2, 2019
- specified commit may only be present on a tag, not on any branch
- use the verbose references specification in git fetch command
- add black box test
- initially implemented by https://github.com/jamiesnape in bazelbuild#8933, but the suggested solution with --tags flag does not work for CentOS Bazel CI configuration
bazel-io pushed a commit that referenced this pull request Aug 2, 2019
- specified commit may only be present on a tag, not on any branch
- use the verbose references specification in git fetch command
- add black box test
- initially implemented by https://github.com/jamiesnape in #8933, but the suggested solution with --tags flag does not work for CentOS Bazel CI configuration

Closes #9059.

PiperOrigin-RevId: 261316448
@jamiesnape

Copy link
Copy Markdown
Author

Superseded by #9059.

@jamiesnape jamiesnape closed this Aug 5, 2019
@jamiesnape
jamiesnape deleted the git-worker-fetch-all-tags branch August 5, 2019 15:49
@irengrig

irengrig commented Aug 5, 2019

Copy link
Copy Markdown
Contributor

Hi @jamiesnape , thank you so much for your pull request and the call to action!

I was going to merge this PR, and during the investigation I discovered that actually the more verbose reference specification needs to be put.
I also created a test to verify the situation when the target commit is on the tag and not on any branch.
That is why I did not merge this PR. However, I put the reference to this PR in the commit message.
Thank you again for your help!

katre pushed a commit that referenced this pull request Sep 3, 2019
- specified commit may only be present on a tag, not on any branch
- use the verbose references specification in git fetch command
- add black box test
- initially implemented by https://github.com/jamiesnape in #8933, but the suggested solution with --tags flag does not work for CentOS Bazel CI configuration

Closes #9059.

PiperOrigin-RevId: 261316448
@philwo philwo added the team-OSS Issues for the Bazel OSS team: installation, release processBazel packaging, website label Jun 15, 2020
@philwo philwo removed the team-OSS Issues for the Bazel OSS team: installation, release processBazel packaging, website label Nov 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes team-ExternalDeps External dependency handling, remote repositiories, WORKSPACE file.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants