Skip to content

Commit 0530578

Browse files
committed
feat: enable jsonv2 and greenteagc in dev environment
1 parent 3798d15 commit 0530578

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ COPY . .
1717
RUN --mount=type=cache,target=/go/pkg/mod \
1818
go generate .
1919

20-
ENV GOEXPERIMENT=greenteagc CGO_ENABLED=0 GOOS=linux
20+
ENV GOEXPERIMENT="greenteagc,jsonv2" CGO_ENABLED=0
2121

2222
# Build the applications with cache mount for build cache
2323
RUN --mount=type=cache,target=/root/.cache/go-build \

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)