-
Notifications
You must be signed in to change notification settings - Fork 302
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
Build using existing working copy doesn't fetch tags correctly #338
Comments
Ah, this is a tricky one. Tags! We can't use the Here's the code path which seems to be running in your screenshot: https://github.com/buildkite/agent/blob/v3.0-beta.3/agent/bootstrap.go#L942-L953 It looked like fetching a tag will work using the first attempted checkout, but because it's not mapped to the same ref locally (because it's a tag) it can't be checked out using its' symbolic name. It would work fine if we checked out the Can you change your https://github.com/buildkite/agent/blob/v3.0-beta.3/agent/bootstrap.go#L934-L937 In the mean time I'll see if I can patch this to detect when a single commit fetch succeeds and use the |
Unfortunately this isn't possible. We trigger the build from Phabricator. Once a diff (it's kind of like a versioned PR) is created, the code is uploaded to a certain tag belonging to the diff id. Each update will be tagged with a new diff id. The actual commit hash is not saved anywhere as far as I know. |
@ivovh you may be interested to know Phabricator is adding an extension for Buildkite support: https://secure.phabricator.com/T12173 I ran into this same issue trying to integrate them, though you don't need to know the commit hash to use the suggestion from @sj26. You can use the tag name as the "branch" and
|
Can this be closed @sj26? |
I am seeing the same problem trying to use semantic-release with Buildkite. It determines the last release from the git tags, but doesn't detect any git tags, so always tries to publish v1.0.0. I'm afraid I don't understand the workaround proposed here. How could I solve this? |
@felixfbecker you should add a |
@sj26 would you consider accepting a patch to make |
I'm trying to build code that lives at a certain tag in the git repository. When creating a new working copy this works fine:

Unfortunately, when the working copy is already there it doesn't work:

It seems like the tags aren't fetched properly. If I use
git fetch -tv
instead ofgit fetch -v
it does work. We're using agent v3.0-beta3.The text was updated successfully, but these errors were encountered: