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:
parent
1612d9cb80
commit
d73171fdde
4 changed files with 7 additions and 7 deletions
4
.github/workflows/tests.yml
vendored
4
.github/workflows/tests.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue