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

Fix VERSION_DETAILS does not contain the latest tag #2691

Merged
merged 1 commit into from
Sep 26, 2022

Conversation

olegbespalov
Copy link
Contributor

What?

Add a --tags flag to fetch all tags for the git describe.

Why?

Without that flag k6's version details gets a previous flag.

Closes: #2676

@olegbespalov olegbespalov self-assigned this Sep 22, 2022
codebien
codebien previously approved these changes Sep 22, 2022
Copy link
Member

@na-- na-- left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems like the same problem is also present in the Dockerfile:

RUN CGO_ENABLED=0 go install -a -trimpath -ldflags "-s -w -X go.k6.io/k6/lib/consts.VersionDetails=$(date -u +"%FT%T%z")/$(git describe --always --long --dirty)"

tag

Add the flag to fetch all tags for the git describe.
Copy link
Member

@na-- na-- left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤞

@na-- na-- added this to the v0.41.0 milestone Sep 26, 2022
@olegbespalov olegbespalov merged commit f8e0831 into master Sep 26, 2022
@olegbespalov olegbespalov deleted the fix/2676-version-details-tag branch September 26, 2022 16:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ci: VERSION_DETAILS does not contain the latest tag
4 participants