Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ workflows:
- codacy/shell:
name: generate_and_test
cmd: |
go env -w GOEXPERIMENT=jsonv2
go generate ./...
go test ./...
requires:
Expand Down
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.24-alpine as builder
FROM golang:1.25-alpine as builder

ARG TRIVY_VERSION=dev
ENV TRIVY_VERSION=$TRIVY_VERSION
Expand All @@ -8,6 +8,7 @@ WORKDIR /src
COPY go.mod go.mod
COPY go.sum go.sum

RUN go env -w GOEXPERIMENT=jsonv2
RUN --mount=type=cache,target=/go/pkg/mod \
go mod download
RUN go mod verify
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

This is the docker engine we use at Codacy to have [Trivy](https://github.com/aquasecurity/trivy) support.

> [!IMPORTANT]
> For local development, please run `go env -w GOEXPERIMENT=jsonv2`, since the current Trivy library depends on experimental go modules.

## Usage

You can create the docker by doing:
Expand Down
Loading