-
Notifications
You must be signed in to change notification settings - Fork 136
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Git mirrors appears to break git commands #225
Comments
That will be because the mirrors dir isn't being mounted through (as you discovered). This is probably an agent bug vs a docker-compose one, but I'm sorry it bit you! The answer is to add the |
Hey @lox, sorry to raise this from the grave but I'm looking for a cleaner solution to this. Previously I've mounted the mirrors dirs left and right across pipelines, but it would be great to avoid the need to, especially since most folks writing pipelines don't know all the ins and outs of Buildkite's configs. Let me know if there's a better place to post this, but here's what I have so far. My best guess is that the
pipeline.yml: steps:
- plugins:
- docker#v3.5.0:
image: alpine/git
entrypoint: sh
command: ["-c", "echo foo >> README.md && git diff origin/master"] Preparing working directory
Running command in alpine/git
|
Hi, Has anyone figured out how to deal with this? we're trying to do a git diff in our pipeline run to determine changes vs master but the git mirrors breaks the ability to run the git command. I've tried adding the command below to our agent bootstrap script but still having trouble. export BUILDKITE_GIT_CLONE_MIRROR_FLAGS="-v --mirror --dissociate" |
After reading and re-reading the description of this issue, the logs and related links, my understanding indicates that this was an issue with the agent that can be solved, as @lox mentioned by adding With that said, I don't think that there is a bug or something to do in this plugin though, specially 3+ years later. |
For the following
pipeline.yml
:I get this output and error in buildkite:
Adding a volume mount to
/var/lib/buildkite-agent
topipeline.yml
fixes it:The text was updated successfully, but these errors were encountered: