-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Tim Schrodi
committed
Mar 2, 2021
1 parent
4c79990
commit 10a7d7a
Showing
4 changed files
with
29 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/bin/bash | ||
|
||
# SPDX-FileCopyrightText: 2020 SAP SE or an SAP affiliate company and Gardener contributors | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
set -o errexit | ||
set -o nounset | ||
set -o pipefail | ||
|
||
apk add --no-cache git make musl-dev curl | ||
curl -LO https://golang.org/dl/go1.16.linux-amd64.tar.gz | ||
tar -C /usr/local -xzf go1.16.linux-amd64.tar.gz | ||
export PATH=$PATH:/usr/local/go/bin | ||
mkdir /lib64 && ln -s /lib/libc.musl-x86_64.so.1 /lib64/ld-linux-x86-64.so.2 | ||
|
||
SOURCE_DIR="$(dirname $0)/.." | ||
|
||
# revert the version update in the gomod file | ||
VERSION=$(cat ${SOURCE_DIR}/VERSION) | ||
|
||
sed -i "s@github.com/gardener/landscaper/apis $VERSION@github.com/gardener/landscaper/apis v0.0.0-00010101000000-000000000000@" \ | ||
${SOURCE_DIR}/go.mod | ||
|
||
cd $SOURCE_DIR | ||
make revendor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters