mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-20 10:20:51 +00:00
Merge pull request #90994 from thockin/fix_license_again
Fix umask better
This commit is contained in:
commit
2260d97d74
@ -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
|
||||
}
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
|
@ -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=()
|
||||
|
Loading…
Reference in New Issue
Block a user