-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: upgrade golang to 1.22.5 to build clair and clair-adapter
Signed-off-by: Shengwen Yu <yshengwen@vmware.com>
- Loading branch information
Shengwen Yu
committed
Jul 5, 2024
1 parent
22ec281
commit 9056cd7
Showing
2 changed files
with
3 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |