git-resource icon indicating copy to clipboard operation
git-resource copied to clipboard

dont find all tags

Open obeyler opened this issue 7 years ago • 7 comments

I've try to use it on eclipse che repo on https://github.com/eclipse/che/tags we can see that tags 6.x exist image

but resource doesn't manage to find greater that 5.9.0 image

- name: che-release
  type: git
  source:
    uri: https://github.com/eclipse/che.git
    tag_filter: "[0-9].*"

obeyler avatar Oct 22 '18 15:10 obeyler

The issue is that the git clone is done with single branch so it detect only tag on the specific branch. When we want to use branchs we should add a git fetch --tags.

This issue is fixed by the PR https://github.com/concourse/git-resource/pull/223

(commit https://github.com/concourse/git-resource/pull/223/commits/a10f862aeee0bb5f7da2b3b1a8f66ee676296c68)

talset avatar Oct 31 '18 10:10 talset

@degano I think this is the problem we saw with the 3rd-party pipeline

marco-m avatar Nov 14 '18 16:11 marco-m

I think this issues might be fixed by PR #225 that just got merged

goddenrich avatar Dec 04 '18 15:12 goddenrich

I'm seeing similar behavior. Tags are present only on master branch that I'm pulling in the task, therefore this is not because wrong branch.

Bluesboy avatar Mar 26 '20 04:03 Bluesboy

I'm seeing similar behavior. Tags are present only on master branch that I'm pulling in the task, therefore this is not because wrong branch.

This is not the same issue. Here we are using tag_filter. This issue should have been fixed with https://github.com/concourse/git-resource/blob/master/assets/check#L40-L42

talset avatar Apr 10 '20 10:04 talset

I'm having the same issue

MikeC-BC avatar Jun 18 '21 00:06 MikeC-BC

@MikeC-BC could you give us more context ? Concourse version ? Are you using the embedded git resource or the latest one ? Could you provide the pipeline code used of the git resource ?

talset avatar Jun 18 '21 07:06 talset