-
Notifications
You must be signed in to change notification settings - Fork 39.4k
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
build/release.sh (hack/lib/golang.sh) requires minimum bash v4.4 #77521
Comments
Some of the details I mentioned above, modified the
And on Ubuntu 18 (bash 4.4) the variable is scoped |
I don't think the Lines 204 to 220 in eaafa59
|
@cjschaef we are also getting the same error on bash version 4.3 |
@cjschaef any update on this, are you fixing it?? |
Same question with @adisky , this issue impact OpenLab cloud-provider-openstack E2E testing job. |
As per the issue kubernetes/kubernetes#77521 (comment), issue seems to be happen only when KUBE_FASTBUILD=true. Changing the same to check if it fixes the e2e job.
As per the issue kubernetes/kubernetes#77521 (comment), issue seems to be happen only when KUBE_FASTBUILD=true. Changing the same to check if it fixes the e2e job.
@dims it works with your fix https://circleci.com/gh/aojea/kubernetes/53 ,
|
Sorry I missed this yesterday. I will try #77867 as well. Otherwise, my assumption was to revert the use of a function, as that creates the scoping problem we've been seeing with |
@aojea i think that would be |
Also both |
Looks like #77867 worked for me. Was able to run a
|
ref: #76974 as the pr that appears to have caused this |
What happened: building Kubernetes release and it failed due to a variable not being set (with
set -u
enabled). It appears a recent commit does not function as expected onbash v4.3
(used Ubuntu 16). Additional details will be provided in comment belowWhat you expected to happen: successful build of Kuberentes release or documented minimum supported OS releases (i.e., bash versions)
How to reproduce it (as minimally and precisely as possible): using Ubuntu 16 (
bash v4.3
), run [build/release.sh] usingrelease-1.14
,v1.15.0-alpha.2
ormaster
(containing dcee810 or subsequent cherry pick)Anything else we need to know?: It appears the issue is with how
bash v4.3
andbash v4.4
createreadonly
variables, where I believev4.3
does not create the variables with the expected scope (created usinglocal
scope versusglobal
scope). This creates a minimum supported OS version when runningbuild/release.sh
from the best I can tell.Environment:
kubectl version
):v1.15.0-alpha.2
release-1.14
cat /etc/os-release
):uname -a
):Linux armada-lb-build 4.4.0-116-generic #140-Ubuntu SMP Mon Feb 12 21:23:04 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
build/release.sh
/sig release
The text was updated successfully, but these errors were encountered: