Update make-bm-worker call for Go 1.16 82/4182/3
authorTodd Malsbary <todd.malsbary@intel.com>
Fri, 26 Feb 2021 21:28:02 +0000 (13:28 -0800)
committerKuralamudhan Ramakrishnan <kuralamudhan.ramakrishnan@intel.com>
Fri, 9 Apr 2021 20:17:39 +0000 (20:17 +0000)
From https://blog.golang.org/go116-module-changes, GO111MODULE=auto
must be to set to enable the previous version's behavior.

Signed-off-by: Todd Malsbary <todd.malsbary@intel.com>
Change-Id: I4f430959969717adf83f75217f1642b5d79f3775

deploy/metal3-vm/03_launch_mgmt_cluster.sh
deploy/metal3/scripts/01_metal3.sh

index fee9a29..b349856 100755 (executable)
@@ -123,7 +123,7 @@ function make_bm_hosts {
     while IFS=',' read -r name address user password mac; do
         create_userdata $name
         apply_userdata_credential $name
-        go run "${BMOPATH}"/cmd/make-bm-worker/main.go \
+        GO111MODULE=auto go run "${BMOPATH}"/cmd/make-bm-worker/main.go \
            -address "$address" \
            -password "$password" \
            -user "$user" \
index ceeecdc..ac6a80b 100755 (executable)
@@ -216,7 +216,7 @@ function make_bm_hosts {
         create_userdata $name $os_username $os_password
         apply_userdata_credential $name
 
-        go run $GOPATH/src/github.com/metal3-io/baremetal-operator/cmd/make-bm-worker/main.go \
+        GO111MODULE=auto go run $GOPATH/src/github.com/metal3-io/baremetal-operator/cmd/make-bm-worker/main.go \
            -address "ipmi://$ipmi_address" \
            -password "$ipmi_password" \
            -user "$ipmi_username" \