This repository was archived by the owner on Feb 13, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 124
can't compile #3173
Copy link
Copy link
Open
Labels
type: bugSomething isn't workingSomething isn't working
Description
Description
I'm trying to build the docker container executing ´docker build -t clutch:latest .´
Expected Behavior
The build should complete successfully.
Actual Behavior
=> ERROR [gobuild 7/7] RUN make backend-with-assets 0.2s
------
> [gobuild 7/7] RUN make backend-with-assets:
0.201 /go/src/github.com/lyft/clutch
0.201 Running pre-flight checks...
0.213 Pre-flight checks satisfied!
0.213 cd backend && go run cmd/assets/generate.go ../frontend/packages/app/build && go build -tags withAssets -o ../build/clutch -ldflags="-X main.version=0.0.0"
0.219 go: errors parsing go.mod:
0.219 /go/src/github.com/lyft/clutch/backend/go.mod:3: invalid go version '1.23.0': must match format 1.23
0.220 make: *** [Makefile:47: backend-with-assets] Error 1
------
Dockerfile:19
--------------------
17 | COPY --from=nodebuild ./frontend/packages/app/build ./frontend/packages/app/build/
18 |
19 | >>> RUN make backend-with-assets
20 |
21 | # Copy binary to final image.
--------------------
ERROR: failed to solve: process "/bin/sh -c make backend-with-assets" did not complete successfully: exit code: 2
I've tried modifying the go.mod to go 1.23 but still the build fail with:
87.75 go: downloading github.com/emicklei/go-restful/v3 v3.11.0
90.75 /go/pkg/mod/k8s.io/apimachinery@v0.30.1/pkg/util/sets/set.go:20:2: package cmp is not in GOROOT (/usr/local/go/src/cmp)
90.75 note: imported by a module that requires go 1.22
90.76 make: *** [Makefile:47: backend-with-assets] Error 1
------
Dockerfile:19
--------------------
17 | COPY --from=nodebuild ./frontend/packages/app/build ./frontend/packages/app/build/
18 |
19 | >>> RUN make backend-with-assets
20 |
21 | # Copy binary to final image.
--------------------
ERROR: failed to solve: process "/bin/sh -c make backend-with-assets" did not complete successfully: exit code: 2
Version
2a2f4fe, current HEAD
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
type: bugSomething isn't workingSomething isn't working