concourse / concourse/git-resource
Resource versions created with both SHA1 and tag, preventing tag_filter and tag_regex from working
Nobody has claimed this yet.
- Dominant language
- Shell
- Stars
- 203
- Forks
- 305
- Avg merge
- 11d 14h
- Merged PRs (30d)
- 2
Description
What happened?
- With this resource:
- name: mirrors_github_pinniped
type: git
icon: github
tags: [ pinniped-ci-calatrava ]
source:
uri: git@gitlab.whatever.com:akeesler/fake-mirrors_github_pinniped.git
tag_regex: v[0-9]+\.[0-9]+\.[0-9]+ # e.g., v0.4.1
private_key: REDACTED
-
I see these resource versions:

-
Because of this, the next
vx.y.ztags that I pushed to the repo did not show up as a resource version because the latest resource version has arefof a SHA1 which filtered out all tags at this line: https://github.com/concourse/git-resource/blob/30c1e237dd9f919c71230501c771b4188383b51d/assets/check#L161.
What did I expect to happen?
- I hoped to see only resource versions with a
refmatching mytag_regex.
Notes
- Not sure if this functionality has more to do with this git resource type, or the concourse resource checker.
- I am working with Concourse 7.0.0 at https://hush-house.pivotal.io.
Contributor 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.
Research direction
Start at assets/check around line 161 and reproduce the configuration with tag_regex and a repository containing matching tags. Trace how the latest resource version ref is selected and verify that completed behavior exposes only versions whose refs match the requested tag filter or regex, including tags added afterward.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- git
- Domain
- devops
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100