-
Notifications
You must be signed in to change notification settings - Fork 90
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
improves use of gnu variants on macosx #2522
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@@ -842,7 +842,8 @@ release: $(RELEASE_TARGETS) | |||
# Iterate over release branch versions, avoiding branches explicitly marked as skipped | |||
.PHONY: %/release-branches/all | |||
%/release-branches/all: | |||
@for version in $(SUPPORTED_K8S_VERSIONS) ; do \ | |||
@set -e; \ |
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.
We actually have this configured at the top, however the version of make on mac does not support the global flag. For this specific target, its annoying not to fail on error so adding it specifically.
@@ -129,7 +149,7 @@ function build::gather_licenses() { | |||
# data about each dependency to generate the amazon approved attribution.txt files | |||
# go-deps is needed for module versions | |||
# go-licenses are all the dependencies found from the module(s) that were passed in via patterns | |||
build::common::echo_and_run go list -deps=true -json ./... | jq -s '' > "${outputdir}/attribution/go-deps.json" | |||
build::common::echo_and_run go list -deps=true -json ./... | jq -s '.' > "${outputdir}/attribution/go-deps.json" |
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.
i updated jq on my mac and the newer version expects .
, i validated this works the same on the old jq as well.
1a15155
to
bfacb4b
Compare
bfacb4b
to
fc4d274
Compare
/retest |
@jaxesn: The following tests failed, say
Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
Issue #, if available:
Description of changes:
We had a common "pattern" for certain tools, such as sed + tar +date, where on mac we would try and find the gnu build, which is installable via brew. This introduces a helper and refactors our usage of this pattern so its consistent throughout our scripts.
This will also make it a bit more easier to track which brew formulas someone should install if building locally. I plan to update the building-locally doc in a future PR.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.