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

@ -10,7 +10,7 @@ ENV GOFLAGS=-mod=vendor
RUN go install ./cmd/osbuild-composer/
FROM registry.access.redhat.com/ubi8/go-toolset:latest AS builder2
RUN go get -u github.com/jackc/tern
RUN go install github.com/jackc/tern@latest
FROM registry.access.redhat.com/ubi8/ubi-minimal:latest
RUN microdnf install python3 python3-dnf