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 Error, empty output for info: 'VERSION' #11631

Merged

Conversation

cevich
Copy link
Member

@cevich cevich commented Sep 17, 2021

When building releases, the definitive canonical version of podman (or
podman-remote) is needed. Previously this was accomplished by scraping
version/version.go. However, due to tooling differences across
platforms, this has proven problematic, unreliable, and hard to
maintain.

Fix this by building and caching a small golang binary who's only purpose
is to print the version number to stdout. This not only provides a quick
and reliable way to determine the current version, it also acts as a check
on the version API vs tooling that relies on it.

Lastly, remove several RELEASE_* Makefile definitions which aren't
actually used anywhere. These were originally added a very long time
ago to serve as part of a long since retired release process. The
remaining items, were updated to make use of the new test/version/version
binary on an as-required basis (i.e. not every time make is run).

@cevich
Copy link
Member Author

cevich commented Sep 17, 2021

hehehe, adding: podman-RELEASE_VERSION/docs/podman-tag.html (deflated 50%), well that's no good at all!

@cevich cevich force-pushed the replace_hack-get_release_info branch from 7e60223 to b44c181 Compare September 17, 2021 15:42
@TomSweeneyRedHat
Copy link
Member

LGTM
assuming happy tests.

@cevich
Copy link
Member Author

cevich commented Sep 17, 2021

assuming happy tests.

It's Friday...I've lost all hope 🤣

@rhatdan
Copy link
Member

rhatdan commented Sep 17, 2021

/lgtm
/hold

@openshift-ci openshift-ci bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Sep 17, 2021
@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Sep 17, 2021
@rhatdan
Copy link
Member

rhatdan commented Sep 17, 2021

/approve

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Sep 17, 2021

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: cevich, rhatdan

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 17, 2021
Makefile Outdated Show resolved Hide resolved
@cevich cevich force-pushed the replace_hack-get_release_info branch from b44c181 to af34151 Compare September 20, 2021 18:50
@openshift-ci openshift-ci bot removed the lgtm Indicates that a PR is ready to be merged. label Sep 20, 2021
@cevich cevich force-pushed the replace_hack-get_release_info branch 3 times, most recently from 789015d to a11c5c1 Compare September 20, 2021 19:14
When building releases, the definitive canonical version of podman (or
podman-remote) is needed.  Previously this was accomplished by scraping
`version/version.go`.  However, due to tooling differences across
platforms, this has proven problematic, unreliable, and hard to
maintain.

Fix this by building and caching a small golang binary who's only purpose
is to print the version number to stdout.  This not only provides a quick
and reliable way to determine the current version, it also acts as a check
on the version API vs tooling that relies on it.

Lastly, remove several `RELEASE_*` Makefile definitions which aren't
actually used anywhere.  These were originally added a very long time
ago to serve as part of a long since retired release process.  The
remaining items, were updated to make use of the new `.podmanversion`
binary on an as-required basis (i.e. not every time `make` is run).

Signed-off-by: Chris Evich <[email protected]>
@cevich cevich force-pushed the replace_hack-get_release_info branch from a11c5c1 to 34043bd Compare September 21, 2021 16:29
@cevich
Copy link
Member Author

cevich commented Sep 21, 2021

Update: Avoid make printing make: test/version/version: File not found

@cevich
Copy link
Member Author

cevich commented Sep 21, 2021

Okay, I think this one is ready.

@rhatdan
Copy link
Member

rhatdan commented Sep 21, 2021

/lgtm
/hold cancel

@openshift-ci openshift-ci bot added lgtm Indicates that a PR is ready to be merged. and removed do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. labels Sep 21, 2021
@openshift-merge-robot openshift-merge-robot merged commit cd7b481 into containers:main Sep 21, 2021
@cevich cevich deleted the replace_hack-get_release_info branch April 18, 2023 14:47
@github-actions github-actions bot added the locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. label Aug 30, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 30, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants