Skip to content

Commit

Permalink
Working around --buildvcs issues introduced in Go 1.18+
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcPaquette committed Sep 6, 2022
1 parent 5ed44c7 commit 3b70b7e
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 1 deletion.
3 changes: 3 additions & 0 deletions ci/scripts/garden
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#!/usr/bin/env bash
set -ex

# This is work around --buildvcs issues in Go 1.18+
git config --global --add safe.directory '*'

cd "$( dirname "$0" )/../.."

cd src/garden
Expand Down
3 changes: 3 additions & 0 deletions ci/scripts/gdn-linux
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ grreleasedevelopdir="$basedir"/gr-release-develop

go install github.com/onsi/ginkgo/ginkgo@latest

# This is work around --buildvcs issues in Go 1.18+
git config --global --add safe.directory '*'

# shellcheck source=../helpers/device-control
source "$( dirname "$0" )/../helpers/device-control"

Expand Down
3 changes: 3 additions & 0 deletions ci/scripts/gdn-linux-standalone
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ export PATH=$PATH:$GOPATH/bin

basedir=$PWD

# This is work around --buildvcs issues in Go 1.18+
git config --global --add safe.directory '*'

# If you want to fly execute this, you will have to pass DEV_MODE=true
if [ -z "$DEV_MODE" ]; then
gdn_version=$(cd gr-release-develop/src/guardian && git rev-parse HEAD)
Expand Down
3 changes: 3 additions & 0 deletions ci/scripts/guardian
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ export PATH=$GOROOT/bin:$PATH
export GOPATH="${grr_base}/src/gopath"
export PATH=$HOME/go/bin:$GOPATH/bin:$PATH

# This is work around --buildvcs issues in Go 1.18+
git config --global --add safe.directory '*'

if [ -n "${PATCH_RUNC:-}" ]; then
(
# Using patch instead of `git apply` to keep this path working with `fly
Expand Down
3 changes: 3 additions & 0 deletions ci/scripts/guardian-windows.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ $env:GOPATH = ${env:PWD} + "\src\gopath"
$env:PATH = $env:GOPATH + "/bin;C:/go/bin;" + $env:PATH
$env:GO111MODULE = "off"

# This is work around --buildvcs issues in Go 1.18+
git config --global --add safe.directory '*'

Write-Host "Installing Ginkgo"
go.exe get ./src/gopath/src/github.com/onsi/ginkgo/ginkgo
if ($LastExitCode -ne 0) {
Expand Down
2 changes: 1 addition & 1 deletion scripts/remote-fly
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ if [[ "$build_yml" == *"windows"* ]]; then
image_args=()
fi

fly --target "$GARDEN_REMOTE_ATC_URL" e $tag -p ${image_args[@]} -i gr-release-develop=$HOME/workspace/garden-runc-release -c "$build_yml" "$@"
fly --target "$GARDEN_REMOTE_ATC_URL" e --include-ignored $tag -p ${image_args[@]} -i gr-release-develop=$HOME/workspace/garden-runc-release -c "$build_yml" "$@"

0 comments on commit 3b70b7e

Please sign in to comment.