buildkite / cli

A command line interface for Buildkite.
MIT License
166 stars 45 forks source link

Issue using the junit plugin on osx #81

Open remi-debette opened 4 years ago

remi-debette commented 4 years ago

Hi First, thank you for the great tool which allows to test our pipelines on local.

Running the tool installed from brew on osx, I encountered an issue that seems to be linked with the peculiar status of the platform.

When running the sample pipeline of the plugin: junit-annotate, I see the following error happening:

 bk local run .buildkite/pipeline.integration_tests.yml
(...)

--- :junit: Processing the junits
docker: Error response from daemon: Mounts denied: 
The path /var/folders/kf/fsdklxv57_v6kq5ydjxpj6g00000gp/T/buildkite-plugins-670558647/github-com-buildkite-plugins-junit-annotate-buildkite-plugin-v1-7-0/ruby
is not shared from OS X and is not known to Docker.
You can configure shared paths from Docker -> Preferences... -> File Sharing.
See https://docs.docker.com/docker-for-mac/osxfs/#namespaces for more info.
.
ERRO[0000] error waiting for container: context canceled 
🚨 Error: The command exited with status 125

Apparently, when trying to mount such a folder on a mac, one would need to prefix /var with /private and use instead /private/var according to this comment

Is this a problem of the plugin or of the bk local agent?

pzeballos commented 2 years ago

Hey! Sorry for the delay! If you are still having issues, can you send your build details to support@buildkite.com? :pray: Thanks!