-
Notifications
You must be signed in to change notification settings - Fork 19
Fix bug where on-demand k8s integration registration fails on Mac #1242
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
Conversation
_, stdErr, err := lib_utils.RunCmd( | ||
"cp", | ||
[]string{ | ||
"-R", |
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.
should we be using cp -rT
here? What was the reason behind the change?
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.
@hsubbaraj-spiral because Mac's cp
doesn't support the -T
flag...I can make a comment on this.
@hsubbaraj-spiral addressed comment. |
Describe your changes and why you are making these changes
This is due to
env --version
does not work on Mac, but sinceenv
should be pre-installed on all common OSes, we can simply skip the check.In addition,
cp -T
is not supported on Mac, so we implement a workaround instead.Tested that the new changes work both on Linux and on Mac.
Related issue number (if any)
Loom demo (if any)
Checklist before requesting a review
python3 scripts/run_linters.py -h
for usage).run_integration_test
: Runs integration testsskip_integration_test
: Skips integration tests (Should be used when changes are ONLY documentation/UI)