Merge pull request #90994 from thockin/fix_license_again

Fix umask better
This commit is contained in:
Kubernetes Prow Robot 2020-05-12 08:25:18 -07:00 committed by GitHub
commit 2260d97d74
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 4 deletions

View File

@ -164,6 +164,9 @@ function kube::build::verify_prereqs() {
kube::version::get_version_vars
kube::version::save_version_vars "${KUBE_ROOT}/.dockerized-kube-version-defs"
# Without this, the user's umask can leak through.
umask 0022
}
# ---------------------------------------------------------------------------

View File

@ -523,10 +523,6 @@ kube::golang::setup_env() {
# This seems to matter to some tools
export GO15VENDOREXPERIMENT=1
# This is for sanity. Without it, user umasks leak through into release
# artifacts.
umask 0022
}
# This will take binaries from $GOPATH/bin and copy them to the appropriate
@ -678,6 +674,9 @@ kube::golang::build_some_binaries() {
}
kube::golang::build_binaries_for_platform() {
# This is for sanity. Without it, user umasks can leak through.
umask 0022
local platform=$1
local -a statics=()