Skip to content

Fix Error, empty output for info: 'VERSION' - #11631

Merged
openshift-merge-robot merged 1 commit into
podman-container-tools:mainfrom
cevich:replace_hack-get_release_info
Sep 21, 2021
Merged

Fix Error, empty output for info: 'VERSION'#11631
openshift-merge-robot merged 1 commit into
podman-container-tools:mainfrom
cevich:replace_hack-get_release_info

Conversation

@cevich

@cevich cevich commented Sep 17, 2021

Copy link
Copy Markdown
Contributor

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

cevich commented Sep 17, 2021

Copy link
Copy Markdown
Contributor Author

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
Copy Markdown
Contributor

LGTM
assuming happy tests.

@cevich

cevich commented Sep 17, 2021

Copy link
Copy Markdown
Contributor Author

assuming happy tests.

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

@rhatdan

rhatdan commented Sep 17, 2021

Copy link
Copy Markdown
Contributor

/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

rhatdan commented Sep 17, 2021

Copy link
Copy Markdown
Contributor

/approve

@openshift-ci

openshift-ci Bot commented Sep 17, 2021

Copy link
Copy Markdown
Contributor

[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

Details 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
Comment thread Makefile Outdated
@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 <cevich@redhat.com>
@cevich
cevich force-pushed the replace_hack-get_release_info branch from a11c5c1 to 34043bd Compare September 21, 2021 16:29
@cevich

cevich commented Sep 21, 2021

Copy link
Copy Markdown
Contributor Author

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

@cevich

cevich commented Sep 21, 2021

Copy link
Copy Markdown
Contributor Author

Okay, I think this one is ready.

@rhatdan

rhatdan commented Sep 21, 2021

Copy link
Copy Markdown
Contributor

/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 podman-container-tools: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