-
Notifications
You must be signed in to change notification settings - Fork 43
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
make/targets: version binaries in _output #48
make/targets: version binaries in _output #48
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Can we add this for imagebuilder as well?
- This means
clean-foo
will only clean the configured version offoo
. Do we want to address that? Perhapsclean-foo
should remove_output/bin/foo*
?
Oh, right, imagebuilder is installed into go, not in the repo :( Never mind. |
I'll propose a fup to discuss this. /lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: 2uasimojo, sttts 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 |
We provide a `clean-$foo` target for helper tools -- `$foo` in: - `controller-gen` - `kustomize` - `yaml-patch` - `yq` Since openshift#48 / aa83de7 we're installing those helpers to files with versioned names -- e.g. `yq-2.4.0` rather than just `yq` -- so `make clean-yq` would leave behind other versions of `yq`. With this commit, `make clean-$foo` will remove `${foo}*`, which should lasso all previous versions of a given helper, including one with the unversioned name, which better meets the consumer's expectation of what "clean $foo" should mean.
We provide a `clean-$foo` target for helper tools -- `$foo` in: - `controller-gen` - `kustomize` - `yaml-patch` - `yq` Since openshift#48 / aa83de7 we're installing those helpers to files with versioned names -- e.g. `yq-2.4.0` rather than just `yq` -- so `make clean-yq` would leave behind other versions of `yq`. With this commit, `make clean-$foo` will remove `${foo}*`, which should lasso all previous versions of a given helper, including one with the unversioned name, which better meets the consumer's expectation of what "clean $foo" should mean.
We provide a `clean-$foo` target for helper tools -- `$foo` in: - `controller-gen` - `kustomize` - `yaml-patch` - `yq` Since openshift#48 / aa83de7 we're installing those helpers to files with versioned names -- e.g. `yq-2.4.0` rather than just `yq` -- so `make clean-yq` would leave behind other versions of `yq`. With this commit, `make clean-$foo` will remove `${foo}*`, which should lasso all previous versions of a given helper, including one with the unversioned name, which better meets the consumer's expectation of what "clean $foo" should mean.
We provide a `clean-$foo` target for helper tools -- `$foo` in: - `controller-gen` - `kustomize` - `yaml-patch` - `yq` Since openshift#48 / aa83de7 we're installing those helpers to files with versioned names -- e.g. `yq-2.4.0` rather than just `yq` -- so `make clean-yq` would leave behind other versions of `yq`. With this commit, `make clean-$foo` will remove `${foo}*`, which should lasso all previous versions of a given helper, including one with the unversioned name, which better meets the consumer's expectation of what "clean $foo" should mean.
aa83de7 / openshift#48 added versioning for helper binaries. However, for kustomize, it assumed the install script would create the binary with the versioned name, which it doesn't. So consumers trying to use `$(KUSTOMIZE)`, which will be `_output/tools/bin/kustomize-v4.1.3`, will fail because it's actually at `_output/tools/bin/kustomize`. Furthermore, running `make ensure-kustomize` twice will cause the install script to fail because its target file already exists. Fix.
No description provided.