Use go install instead of deprecated go get

In go 1.18 'go install' needs to be used to install an executable. See
https://go.dev/doc/go-get-install-deprecation and
https://go.dev/doc/manage-install
This commit is contained in:
Brian C. Lane 2022-11-08 13:31:52 -08:00 committed by Ondřej Budai
parent 1612d9cb80
commit d73171fdde
4 changed files with 7 additions and 7 deletions

View file

@ -74,8 +74,8 @@ jobs:
WORKDIR=$(readlink -f pkg/jobqueue/dbjobqueue/schemas)
pushd $(mktemp -d)
go mod init temp
go get -u github.com/jackc/tern
go run github.com/jackc/tern migrate -m "$WORKDIR"
go install github.com/jackc/tern@latest
$(go env GOPATH)/bin/tern migrate -m "$WORKDIR"
popd
- run: go test -tags=integration ./cmd/osbuild-composer-dbjobqueue-tests
- run: go test -tags=integration ./cmd/osbuild-service-maintenance