Problema haciendo despliegue de un proyecto en go
cristian-infante
TRIALOP

a year ago

Estoy intentando hacer el despliegue de un proyecto en go, pero me sale error, el los log me sale lo siguiente:

13 [stage-0 5/8] COPY . /app/.

13 DONE 8.4s

14 [stage-0 6/8] RUN --mount=type=cache,id=s/6f4668c3-94df-4f99-8f9e-f4e12bdb548e-/root/cache/go-build,target=/root/.cache/go-build go mod download

14 0.225 go: downloading go1.23.2 (linux/amd64)

14 DONE 8.5s

15 [stage-0 7/8] COPY . /app/.

15 DONE 0.2s

16 [stage-0 8/8] RUN --mount=type=cache,id=s/6f4668c3-94df-4f99-8f9e-f4e12bdb548e-/root/cache/go-build,target=/root/.cache/go-build go build -o out

16 0.427 # github.com/sjwhitworth/golearn/linear_models

16 0.427 /root/go/pkg/mod/github.com/sjwhitworth/golearn@v0.0.0-20221228163002-74ae077eafb2/linear_models/logistic.go:10:9: undefined: Parameter

16 0.427 /root/go/pkg/mod/github.com/sjwhitworth/golearn@v0.0.0-20221228163002-74ae077eafb2/linear_models/logistic.go:11:9: undefined: Model

16 0.427 /root/go/pkg/mod/github.com/sjwhitworth/golearn@v0.0.0-20221228163002-74ae077eafb2/linearmodels/logistic.go:17:17: undefined: L2RLR

16 0.427 /root/go/pkg/mod/github.com/sjwhitworth/golearn@v0.0.0-20221228163002-74ae077eafb2/linearmodels/logistic.go:19:17: undefined: L1RLR

16 0.427 /root/go/pkg/mod/github.com/sjwhitworth/golearn@v0.0.0-20221228163002-74ae077eafb2/linear_models/logistic.go:25:13: undefined: NewParameter

16 0.427 /root/go/pkg/mod/github.com/sjwhitworth/golearn@v0.0.0-20221228163002-74ae077eafb2/linear_models/logistic.go:33:10: undefined: NewProblem

16 0.427 /root/go/pkg/mod/github.com/sjwhitworth/golearn@v0.0.0-20221228163002-74ae077eafb2/linear_models/logistic.go:34:13: undefined: Train

16 0.427 /root/go/pkg/mod/github.com/sjwhitworth/golearn@v0.0.0-20221228163002-74ae077eafb2/linear_models/logistic.go:58:10: undefined: Predict

16 ERROR: process "/bin/bash -ol pipefail -c go build -o out" did not complete successfully: exit code: 1

[stage-0 8/8] RUN --mount=type=cache,id=s/6f4668c3-94df-4f99-8f9e-f4e12bdb548e-/root/cache/go-build,target=/root/.cache/go-build go build -o out:

0.427 # github.com/sjwhitworth/golearn/linear_models

0.427 /root/go/pkg/mod/github.com/sjwhitworth/golearn@v0.0.0-20221228163002-74ae077eafb2/linear_models/logistic.go:10:9: undefined: Parameter

0.427 /root/go/pkg/mod/github.com/sjwhitworth/golearn@v0.0.0-20221228163002-74ae077eafb2/linear_models/logistic.go:11:9: undefined: Model

0.427 /root/go/pkg/mod/github.com/sjwhitworth/golearn@v0.0.0-20221228163002-74ae077eafb2/linearmodels/logistic.go:17:17: undefined: L2RLR

0.427 /root/go/pkg/mod/github.com/sjwhitworth/golearn@v0.0.0-20221228163002-74ae077eafb2/linearmodels/logistic.go:19:17: undefined: L1RLR

0.427 /root/go/pkg/mod/github.com/sjwhitworth/golearn@v0.0.0-20221228163002-74ae077eafb2/linear_models/logistic.go:25:13: undefined: NewParameter

0.427 /root/go/pkg/mod/github.com/sjwhitworth/golearn@v0.0.0-20221228163002-74ae077eafb2/linear_models/logistic.go:33:10: undefined: NewProblem

0.427 /root/go/pkg/mod/github.com/sjwhitworth/golearn@v0.0.0-20221228163002-74ae077eafb2/linear_models/logistic.go:34:13: undefined: Train

0.427 /root/go/pkg/mod/github.com/sjwhitworth/golearn@v0.0.0-20221228163002-74ae077eafb2/linear_models/logistic.go:58:10: undefined: Predict

Dockerfile:23

21 | # build phase

22 | COPY . /app/.

23 | >>> RUN --mount=type=cache,id=s/6f4668c3-94df-4f99-8f9e-f4e12bdb548e-/root/cache/go-build,target=/root/.cache/go-build go build -o out

24 |

25 |

ERROR: failed to solve: process "/bin/bash -ol pipefail -c go build -o out" did not complete successfully: exit code: 1

Error: Docker build failed

View Deploy details

ⓘ Deployment information is only viewable by project members and Railway employees.

Closed

1 Replies

a year ago

Hey, This is an English-only community, please open a new post in English, thank you for understanding!


Status changed to Closed brody over 1 year ago


Loading...