Skip to content
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

version file only contains last digit of semantic version, while tag is complete #125

Open
crouth-redge opened this issue Aug 16, 2023 · 0 comments
Labels

Comments

@crouth-redge
Copy link

Describe the bug

Pretty simply summed up in this output from a task:

+ echo 'Checking contents of version vs tag'
Checking contents of version vs tag
+ cat gh-concourse-concourse-release/version
9
+ cat gh-concourse-concourse-release/tag
v6.7.9

Reproduction steps

Pipeline for repoduction:

resources:
  - name: gh-concourse-concourse-release
    type: github-release
    check_every: never
    source:
      owner: concourse
      repository: concourse
      access_token: ((redge_cicd_team_user_pa_token))
      tag_filter: "^v([^-]|-[^r]|-r[^c].)*$"
      
jobs:
  - name: example-job
     plan:
      - get: gh-concourse-concourse-release
      - task: fetch_thirdparty
        image: any_image_with_bash
        inputs:
        - name: gh-concourse-concourse-release
        run:
          path: script.sh

Script:

set -euox pipefail

echo "Checking contents of version vs tag"

cat "${CONCOURSE_PATH_PREFIX}/version"

cat "${CONCOURSE_PATH_PREFIX}/tag"

Expected behavior

The version file should consistently have the complete version.

This bug seems to affect 100% of the projects we tested this against.

Additional context

For those hitting this, you can workaround it by getting the contents of tag instead of version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant