Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker build fail, missing pkg embed #84

Open
AeliusSaionji opened this issue Dec 11, 2024 · 1 comment
Open

Docker build fail, missing pkg embed #84

AeliusSaionji opened this issue Dec 11, 2024 · 1 comment

Comments

@AeliusSaionji
Copy link

Hello!

This is probably a simple fix, but I'm not familiar with the go build process.
Seems like a remote module is not resolving?

Dec 11 15:39:00 reServer systemd[691]: Starting grumble-build.service...
Dec 11 15:39:01 reServer grumble-build[2009072]: [1/2] STEP 1/5: FROM golang:1.14-alpine AS builder
Dec 11 15:39:01 reServer grumble-build[2009072]: Resolving "golang" using unqualified-search registries (/etc/containers/registries.conf.d/00-unqualified-search-registries.conf)
Dec 11 15:39:01 reServer grumble-build[2009072]: Trying to pull docker.io/library/golang:1.14-alpine...
Dec 11 15:39:01 reServer grumble-build[2009072]: Getting image source signatures
Dec 11 15:39:01 reServer grumble-build[2009072]: Copying blob sha256:9e181322f1e7b3ebee5deeef0af7d13619801172e91d2d73dcf79b5d53d82d91
Dec 11 15:39:01 reServer grumble-build[2009072]: Copying blob sha256:6422294da7d35128e72551ecf15f3a4d9577e5cfa516b6d62fe8b841a9470cb3
Dec 11 15:39:01 reServer grumble-build[2009072]: Copying blob sha256:4c0d98bf9879488e0407f897d9dd4bf758555a78e39675e72b5124ccf12c2580
Dec 11 15:39:01 reServer grumble-build[2009072]: Copying blob sha256:eb57f1833670c4481fa40455e323f6ceed15d770ed4da892661efba8b103b5b8
Dec 11 15:39:01 reServer grumble-build[2009072]: Copying blob sha256:bd57f1a80d4e627963dd121afd09d409e0bcb3e0c5c85a55aedd665a67c9c63d
Dec 11 15:39:08 reServer grumble-build[2009072]: Copying config sha256:32dc91e030acdaf539c69379095ba2e3d5e714ff1820bb0cd01d7c0d02a92f1d
Dec 11 15:39:08 reServer grumble-build[2009072]: Writing manifest to image destination
Dec 11 15:39:08 reServer grumble-build[2009072]: [1/2] STEP 2/5: COPY . /go/src/mumble.info/grumble
Dec 11 15:39:08 reServer grumble-build[2009072]: --> 73e047d7d383
Dec 11 15:39:08 reServer grumble-build[2009072]: [1/2] STEP 3/5: WORKDIR /go/src/mumble.info/grumble
Dec 11 15:39:08 reServer grumble-build[2009072]: --> 5d9c703e3a06
Dec 11 15:39:08 reServer grumble-build[2009072]: [1/2] STEP 4/5: RUN apk add --no-cache git build-base
Dec 11 15:39:08 reServer grumble-build[2009312]: fetch https://dl-cdn.alpinelinux.org/alpine/v3.13/main/x86_64/APKINDEX.tar.gz
Dec 11 15:39:08 reServer grumble-build[2009312]: fetch https://dl-cdn.alpinelinux.org/alpine/v3.13/community/x86_64/APKINDEX.tar.gz
Dec 11 15:39:09 reServer grumble-build[2009312]: (1/27) Upgrading musl (1.2.2-r0 -> 1.2.2-r2)
Dec 11 15:39:09 reServer grumble-build[2009312]: (2/27) Installing libgcc (10.2.1_pre1-r3)
Dec 11 15:39:09 reServer grumble-build[2009312]: (3/27) Installing libstdc++ (10.2.1_pre1-r3)
Dec 11 15:39:09 reServer grumble-build[2009312]: (4/27) Installing binutils (2.35.2-r1)
Dec 11 15:39:09 reServer grumble-build[2009312]: (5/27) Installing libmagic (5.39-r0)
Dec 11 15:39:09 reServer grumble-build[2009312]: (6/27) Installing file (5.39-r0)
Dec 11 15:39:09 reServer grumble-build[2009312]: (7/27) Installing libgomp (10.2.1_pre1-r3)
Dec 11 15:39:09 reServer grumble-build[2009312]: (8/27) Installing libatomic (10.2.1_pre1-r3)
Dec 11 15:39:09 reServer grumble-build[2009312]: (9/27) Installing libgphobos (10.2.1_pre1-r3)
Dec 11 15:39:09 reServer grumble-build[2009312]: (10/27) Installing gmp (6.2.1-r1)
Dec 11 15:39:09 reServer grumble-build[2009312]: (11/27) Installing isl22 (0.22-r0)
Dec 11 15:39:09 reServer grumble-build[2009312]: (12/27) Installing mpfr4 (4.1.0-r0)
Dec 11 15:39:09 reServer grumble-build[2009312]: (13/27) Installing mpc1 (1.2.0-r0)
Dec 11 15:39:09 reServer grumble-build[2009312]: (14/27) Installing gcc (10.2.1_pre1-r3)
Dec 11 15:39:11 reServer grumble-build[2009312]: (15/27) Installing musl-dev (1.2.2-r2)
Dec 11 15:39:11 reServer grumble-build[2009312]: (16/27) Installing libc-dev (0.7.2-r3)
Dec 11 15:39:11 reServer grumble-build[2009312]: (17/27) Installing g++ (10.2.1_pre1-r3)
Dec 11 15:39:12 reServer grumble-build[2009312]: (18/27) Installing make (4.3-r0)
Dec 11 15:39:12 reServer grumble-build[2009312]: (19/27) Installing fortify-headers (1.1-r0)
Dec 11 15:39:12 reServer grumble-build[2009312]: (20/27) Installing patch (2.7.6-r7)
Dec 11 15:39:12 reServer grumble-build[2009312]: (21/27) Installing build-base (0.5-r3)
Dec 11 15:39:12 reServer grumble-build[2009312]: (22/27) Installing brotli-libs (1.0.9-r3)
Dec 11 15:39:12 reServer grumble-build[2009312]: (23/27) Installing nghttp2-libs (1.42.0-r1)
Dec 11 15:39:12 reServer grumble-build[2009312]: (24/27) Installing libcurl (7.79.1-r3)
Dec 11 15:39:12 reServer grumble-build[2009312]: (25/27) Installing expat (2.2.10-r8)
Dec 11 15:39:12 reServer grumble-build[2009312]: (26/27) Installing pcre2 (10.36-r1)
Dec 11 15:39:12 reServer grumble-build[2009312]: (27/27) Installing git (2.30.6-r0)
Dec 11 15:39:12 reServer grumble-build[2009312]: Executing busybox-1.32.1-r2.trigger
Dec 11 15:39:12 reServer grumble-build[2009312]: OK: 208 MiB in 41 packages
Dec 11 15:39:15 reServer grumble-build[2009072]: --> f8d0a1264cc9
Dec 11 15:39:15 reServer grumble-build[2009072]: [1/2] STEP 5/5: RUN go get -v -t ./...   && go build mumble.info/grumble/cmd/grumble   && go test -v ./...
Dec 11 15:39:15 reServer grumble-build[2009467]: go: downloading github.com/gorilla/websocket v1.5.1
Dec 11 15:39:15 reServer grumble-build[2009467]: go: downloading golang.org/x/crypto v0.21.0
Dec 11 15:39:15 reServer grumble-build[2009467]: go: downloading github.com/golang/protobuf v1.5.4
Dec 11 15:39:15 reServer grumble-build[2009467]: go: downloading golang.org/x/net v0.22.0
Dec 11 15:39:15 reServer grumble-build[2009467]: go: downloading google.golang.org/protobuf v1.33.0
Dec 11 15:39:16 reServer grumble-build[2009467]: go: downloading golang.org/x/sys v0.18.0
Dec 11 15:39:16 reServer grumble-build[2009467]: /go/pkg/mod/google.golang.org/[email protected]/internal/editiondefaults/defaults.go:9:8: package embed is not in GOROOT (/usr/local/go/src/embed)
Dec 11 15:39:16 reServer podman[2009072]: 2024-12-11 15:39:16.658786516 -0500 EST m=+15.810213332 image build  
Dec 11 15:39:16 reServer grumble-build[2009072]: Error: building at STEP "RUN go get -v -t ./...   && go build mumble.info/grumble/cmd/grumble   && go test -v ./...": while running runtime: exit status 1
Dec 11 15:39:16 reServer systemd[691]: grumble-build.service: Main process exited, code=exited, status=1/FAILURE
Dec 11 15:39:16 reServer systemd[691]: grumble-build.service: Failed with result 'exit-code'.
Dec 11 15:39:16 reServer systemd[691]: Failed to start grumble-build.service.
Dec 11 15:39:16 reServer systemd[691]: grumble-build.service: Consumed 9.451s CPU time, 943.3M memory peak.
@RRNX
Copy link

RRNX commented Dec 23, 2024

Hi, just wanted to let you know, that the problem is fixed, when upgrading golang from 1.14 to 1.17 in the Dockerfile.
Problem is caused by embeds not being implemented until 1.16, and 1.17 apparently fixing another issue that was caused by grumble.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants