Skip to content

Commit 7aaefd2

Browse files
committed
feat: enable jsonv2 experiments
1 parent 61fe81c commit 7aaefd2

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ RUN --mount=type=cache,target=/go/pkg/mod \
88
go mod download
99
COPY . /src/
1010

11-
ENV CGO_ENABLED=0
12-
ENV GOEXPERIMENT=greenteagc
11+
ENV CGO_ENABLED=0 GOEXPERIMENT="greenteagc,jsonv2"
12+
1313
RUN --mount=type=cache,target=/go/pkg/mod \
1414
go build -ldflags="-s -w" -trimpath -o ./bin/server
1515

flake.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222

2323
devShells = forEachSupportedSystem ({ pkgs }: {
2424
default = pkgs.mkShell {
25+
GOEXPERIMENT = "greenteagc,jsonv2";
26+
2527
packages = with pkgs; [
2628
# go (version is specified by overlay)
2729
go

0 commit comments

Comments
 (0)