79460748

Date: 2025-02-23 05:56:25
Score: 5.5
Natty:
Report link

It looks like it's not possible to edit the main.go file location so I am going to try change the docker file

RUN CGO_ENABLED=0 GOOS=linux go build -o main ./cmd/myapp/

I still get the same error

=> [builder 5/6] COPY . .
2.3s => ERROR [builder 6/6] RUN CGO_ENABLED=0 GOOS=linux go build -o main ./cmd/myapp/
13.7s

[builder 6/6] RUN CGO_ENABLED=0 GOOS=linux go build -o main ./cmd/myapp/: #13 13.28 stat /app/cmd/myapp: directory not found

Reasons:
  • RegEx Blacklisted phrase (1): I still get the same error
  • No code block (0.5):
  • Me too answer (2.5): get the same error
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Dinushi Dhananjani