Skip to content

Commit

Permalink
testing: add an explicit module download step to build_samples.sh (#4291
Browse files Browse the repository at this point in the history
)

Currently, the work to go mod replace doesn't account for dependency
changes in head.  This adds an explicit step to download modules to
reflect differences in the latest released google-cloud-go vs head.
  • Loading branch information
shollyman authored Jun 22, 2021
1 parent 22ffc18 commit bd012d1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/kokoro/build_samples.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ for i in $(find . -name go.mod); do
go mod edit -replace cloud.google.com/go/pubsub=$gcwd/pubsub
go mod edit -replace cloud.google.com/go/spanner=$gcwd/spanner
go mod edit -replace cloud.google.com/go/storage=$gcwd/storage
echo "Downloading modules"
go mod download
echo "Building module $i"
go build ./...
popd
Expand Down

0 comments on commit bd012d1

Please sign in to comment.