Skip to content

Commit

Permalink
obs-packaging: Make golang hash dependency arch-specific
Browse files Browse the repository at this point in the history
Fixes: clearcontainers#212

Signed-off-by: Nitesh Konkar niteshkonkar@in.ibm.com
  • Loading branch information
nitkon committed Oct 5, 2018
1 parent cf87c3b commit 294b658
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions obs-packaging/gen_versions_txt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ set -o pipefail
readonly script_name="$(basename "${BASH_SOURCE[0]}")"
readonly script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
project="kata-containers"
ARCH=${ARCH:-$(go env GOARCH)}

source "${script_dir}/../scripts/lib.sh"

Expand Down Expand Up @@ -40,7 +41,7 @@ gen_version_file() {

golang_version=$(get_from_kata_deps "languages.golang.meta.newest-version" "${kata_version}")
golang_version="1.10.2"
golang_x84_64_sha256=$(curl -s -L "https://storage.googleapis.com/golang/go${golang_version}.linux-amd64.tar.gz.sha256")
golang_sha256=$(curl -s -L "https://storage.googleapis.com/golang/go${golang_version}.linux-${ARCH}.tar.gz.sha256")

# - is not a valid char for rpmbuild
# see https://github.com/semver/semver/issues/145
Expand Down Expand Up @@ -77,7 +78,7 @@ kernel_version=${kernel_version}
# Golang
go_version=${golang_version}
go_checksum=${golang_x84_64_sha256}
go_checksum=${golang_sha256}
EOT
}

Expand Down

0 comments on commit 294b658

Please sign in to comment.