DEV Community

Discussion on: How to make friends with Golang, Docker and GitLab CI

Collapse
 
herla97 profile image
HL Salvador

Hi Igor, Nice job man.

I have once issue:

$ go test ./...
# runtime/cgo
exec: "gcc": executable file not found in $PATH
FAIL    gitlab.com/go-pipeline-testing [build failed]
Enter fullscreen mode Exit fullscreen mode

I can solution this:

test:
  stage: test
  dependencies:
    - dep
  image: golang:1.13-alpine3.11
  before_script:
    - *inject-gopath
  script:
    - CGO_ENABLED=0 GOOS=linux go test ./...
Enter fullscreen mode Exit fullscreen mode

Thanks for all !!!