We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 61fe81c commit 7aaefd2Copy full SHA for 7aaefd2
Dockerfile
@@ -8,8 +8,8 @@ RUN --mount=type=cache,target=/go/pkg/mod \
8
go mod download
9
COPY . /src/
10
11
-ENV CGO_ENABLED=0
12
-ENV GOEXPERIMENT=greenteagc
+ENV CGO_ENABLED=0 GOEXPERIMENT="greenteagc,jsonv2"
+
13
RUN --mount=type=cache,target=/go/pkg/mod \
14
go build -ldflags="-s -w" -trimpath -o ./bin/server
15
flake.nix
@@ -22,6 +22,8 @@
22
23
devShells = forEachSupportedSystem ({ pkgs }: {
24
default = pkgs.mkShell {
25
+ GOEXPERIMENT = "greenteagc,jsonv2";
26
27
packages = with pkgs; [
28
# go (version is specified by overlay)
29
go
0 commit comments