Skip to content

GitLab Runner v11.11.1 is Broken on OSX

Summary

Hello. It was requested that I come from this thread to share this information.

Version 11.11.1 is broken.

Can someone please address this issue as it had taken about 2 days of productivity out of me by the time I landed on this thread.

Steps to reproduce

I ran

brew install gitlab-runner

Then I configured the runner. Then I ran

git add --all . && \
git commit -m “testing gitlab ci” &&
gitlab-runner exec docker test`
api-deploy:
  stage: deploy
  image: python:3.7
  script:
    - echo "Hello World"

Actual behavior

─Hugbot@Hugbots-MacBook-Pro ~/Repositories/[REDACTED] ‹feature/ci_and_cd_pipeline›
╰─$ git add --all . && git commit -m “testing gitlab ci” && gitlab-runner exec docker test 1 ↵
[feature/ci_and_cd_pipeline 779b0f7] testing gitlab ci
1 file changed, 1 deletion(-)
Runtime platform arch=amd64 os=darwin pid=74579 revision=5a147c92 version=11.11.1
Running with gitlab-runner 11.11.1 (5a147c92)
Using Docker executor with image python …
Pulling docker image python …
Using docker image sha256:a4cc999cf2aaafbe0b934b74be5a55cb3b8bd9349856131bea3579428b4155bf for python …
Running on runner–project-0-concurrent-0 via Hugbots-MacBook-Pro.local…
DEPRECATION: this GitLab server doesn’t support refspecs, gitlab-runner 12.0 will no longer work with this version of GitLab
Cloning repository…
fatal: repository ‘/Users/Hugbot/Repositories/[REDACTED]’ does not exist
ERROR: Job failed: exit code 1
FATAL: exit code 1

Expected behavior

It should run

Relevant logs and/or screenshots

N/A

Environment description

OSX Docker executor

Used GitLab Runner version

V11.11.1

Possible fixes

Downgraded to version 11.10.0

brew uninstall gitlab-runner
brew install https://github.com/Homebrew/homebrew-core/raw/abac7f40640176a170117fc16f8b451f739da404/Formula/gitlab-runner.rb 3

And it worked.