SPEC-3408: continue to fix packer build 22/24922/1
authorCorentin LABBE <clabbe@baylibre.com>
Thu, 2 Jul 2020 07:22:58 +0000 (09:22 +0200)
committerCorentin LABBE <clabbe@baylibre.com>
Thu, 2 Jul 2020 07:25:30 +0000 (09:25 +0200)
Go is never installed, because the repository is invalid.
This is due to VERSION_CODENAME bing empty.
The source of /etc/os-release wasnt working.

The solution is to use the POSIX way by using "." instead of the bashism
source.

Bug-AGL: SPEC-3408
Change-Id: I0d3939271cd57c381c4ec2ce21734e9702855645
Signed-off-by: Corentin LABBE <clabbe@baylibre.com>
packer/provision/agl_dependencies.sh

index 5a8a0fc..433ab7f 100644 (file)
@@ -133,7 +133,7 @@ sudo pip3 show jinja2
 
 # install go for xds build
 
-source /etc/os-release
+. /etc/os-release
 wget -O - "http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x52B59B1571A79DBC054901C0F6BC817356A3D45E" | sudo apt-key add -
 sudo bash -c "cat >> /etc/apt/sources.list.d/golang.list <<EOF
 deb http://ppa.launchpad.net/longsleep/golang-backports/ubuntu ${VERSION_CODENAME} main