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

dronegen/mac.go: Use make print-version for $VERSION #13232

Merged
merged 3 commits into from
Jun 7, 2022

Conversation

ravicious
Copy link
Member

@ravicious ravicious commented Jun 7, 2022

Fix for changes introduced in #13099.

$WORKSPACE_DIR/go/.version.txt is available only in tag pipelines, so
we can't read it in pipelines that run on pushes to master.

Instead, let's always use make print-version. It'll return the correct
value no matter what pipeline is used.

Running a test tag build to test if it works: https://drone.platform.teleport.sh/gravitational/teleport/12559/12/1 (edit: it works)

`$WORKSPACE_DIR/go/.version.txt` is available only in tag pipelines, so
we can't read it in pipelines that run on pushes to master.

Instead, let's always use `make print-version`. It'll return the correct
value no matter what pipeline is used.
@ravicious ravicious enabled auto-merge (squash) June 7, 2022 11:28
@ravicious ravicious merged commit b54fbcd into master Jun 7, 2022
@ravicious ravicious deleted the ravicious/push-pipeline-version-fix branch June 7, 2022 13:57
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.

3 participants