Skip to content

Commit

Permalink
fix: upgrade golang to 1.22.5 to build clair and clair-adapter
Browse files Browse the repository at this point in the history
Signed-off-by: Shengwen Yu <yshengwen@vmware.com>
  • Loading branch information
Shengwen Yu committed Jul 5, 2024
1 parent 22ec281 commit 9056cd7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion make/photon/clair-adapter/Dockerfile.binary
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.17.9
FROM golang:1.22.5

ADD . /go/src/github.com/goharbor/harbor-scanner-clair/
WORKDIR /go/src/github.com/goharbor/harbor-scanner-clair/
Expand Down
3 changes: 2 additions & 1 deletion make/photon/clair/Dockerfile.binary
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
FROM golang:1.15.6
FROM golang:1.22.5

ADD . /go/src/github.com/quay/clair/
WORKDIR /go/src/github.com/quay/clair/

RUN export CLAIR_VERSION=$(git describe --tag --always --dirty) GO111MODULE=on && \
go get github.com/PuerkitoBio/goquery && \
go build -ldflags "-X github.com/quay/clair/pkg/version.Version=$CLAIR_VERSION" ./cmd/clair

0 comments on commit 9056cd7

Please sign in to comment.