You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RUN mkdir -p /usr/local/bin
RUN GOBIN=/usr/local/bin go install github.com/DataDog/orchestrion@latest
# Build the Go binary
ENV GOFLAGS="${GOFLAGS} '-toolexec=/usr/local/bin/orchestrion toolexec'"
Describe what happened:
#13 [8/8] RUN go build -o main .
#13 0.255 Version check error: failed to determine go.mod requirement for "github.com/DataDog/orchestrion": -: no required module provides package github.com/DataDog/orchestrion; to add it:
#13 0.255 go get github.com/DataDog/orchestrion
#13 0.255 Warning: github.com/DataDog/orchestrion is not present in your go.mod file.
#13 0.255 In order to ensure build reliability and reproductibility, orchestrion will now add itself in your go.mod file by:
#13 0.255
#13 0.255 1. creating a new file named orchestrion.tool.go
#13 0.255 2. running go get github.com/DataDog/[email protected]
#13 0.255 3. running go mod tidy
#13 0.255
#13 0.255 You should commit the resulting changes into your source control system.
#13 0.255 go: go.mod changed during editing; not overwriting
#13 0.255 Failed to pin orchestrion in go.mod: editing "/app/go.mod": running `go mod edit [-require=github.com/DataDog/[email protected]]`: exit status 1
#13 0.255 go: error obtaining buildID for go tool compile: exit status 1
#13 ERROR: process "/bin/sh -c go build -o main ." did not complete successfully: exit code: 1
------
> [8/8] RUN go build -o main .:
0.255 In order to ensure build reliability and reproductibility, orchestrion will now add itself in your go.mod file by:
0.255
0.255 1. creating a new file named orchestrion.tool.go
0.255 2. running go get github.com/DataDog/[email protected]
0.255 3. running go mod tidy
0.255
0.255 You should commit the resulting changes into your source control system.
0.255 go: go.mod changed during editing; not overwriting
0.255 Failed to pin orchestrion in go.mod: editing "/app/go.mod": running `go mod edit [-require=github.com/DataDog/[email protected]]`: exit status 1
0.255 go: error obtaining buildID for go tool compile: exit status 1
------
Dockerfile:30
--------------------
28 |
29 | # Build the Go application
30 | >>> RUN go build -o main .
31 |
32 | # Expose port 8080 for the application
--------------------
ERROR: failed to solve: process "/bin/sh -c go build -o main ." did not complete successfully: exit code: 1
Describe what you expected:
I expect to build
Steps to reproduce the issue:
Additional environment details (Version of Go, Operating System, etc.):
The text was updated successfully, but these errors were encountered:
Version of orchestrion
v1.0.2
Dockerfile:
Describe what happened:
Describe what you expected:
I expect to build
Steps to reproduce the issue:
Additional environment details (Version of Go, Operating System, etc.):
The text was updated successfully, but these errors were encountered: