File tree Expand file tree Collapse file tree 4 files changed +6
-2
lines changed
Expand file tree Collapse file tree 4 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ workflows:
2626 - codacy/shell :
2727 name : generate_and_test
2828 cmd : |
29+ go env -w GOEXPERIMENT=jsonv2
2930 go generate ./...
3031 go test ./...
3132 requires :
Original file line number Diff line number Diff line change 1- FROM golang:1.24 -alpine as builder
1+ FROM golang:1.25 -alpine as builder
22
33ARG TRIVY_VERSION=dev
44ENV TRIVY_VERSION=$TRIVY_VERSION
@@ -8,6 +8,7 @@ WORKDIR /src
88COPY go.mod go.mod
99COPY go.sum go.sum
1010
11+ RUN go env -w GOEXPERIMENT=jsonv2
1112RUN --mount=type=cache,target=/go/pkg/mod \
1213 go mod download
1314RUN go mod verify
Original file line number Diff line number Diff line change 22
33This is the docker engine we use at Codacy to have [ Trivy] ( https://github.com/aquasecurity/trivy ) support.
44
5+ > [ !IMPORTANT]
6+ > For local development, please run ` go env -w GOEXPERIMENT=jsonv2 ` , since the current Trivy library depends on experimental go modules.
7+
58## Usage
69
710You can create the docker by doing:
Original file line number Diff line number Diff line change @@ -78,7 +78,6 @@ github.com/AzureAD/microsoft-authentication-library-for-go v1.5.0/go.mod h1:HKpQ
7878github.com/BurntSushi/toml v0.3.1 /go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU =
7979github.com/BurntSushi/toml v1.5.0 h1:W5quZX/G/csjUnuI8SUYlsHs9M38FC7znL0lIO+DvMg =
8080github.com/BurntSushi/toml v1.5.0 /go.mod h1:ukJfTF/6rtPPRCnwkur4qwRxa8vTRFBF0uk2lLoLwho =
81- github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802 /go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo =
8281github.com/CycloneDX/cyclonedx-go v0.9.3 h1:Pyk/lwavPz7AaZNvugKFkdWOm93MzaIyWmBwmBo3aUI =
8382github.com/CycloneDX/cyclonedx-go v0.9.3 /go.mod h1:vcK6pKgO1WanCdd61qx4bFnSsDJQ6SbM2ZuMIgq86Jg =
8483github.com/DATA-DOG/go-sqlmock v1.5.2 h1:OcvFkGmslmlZibjAjaHm3L//6LiuBgolP7OputlJIzU =
You can’t perform that action at this time.
0 commit comments