-
Notifications
You must be signed in to change notification settings - Fork 15
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
fix for empty output from git-plan command #50
Conversation
I have no idea why the build is failing |
Sweet 🙌 I’ll look into the build 👍 |
this still needs a bit of love :-) |
Turns out the issue with the output channels not getting closed has been brought up here: I can think of 3 options
|
Let's just bump the dep instead of changing the functionality. Further more, as it has been fixed upstream, let's not monkey patch it locally 🤓 |
af5509d
to
e75b536
Compare
This is done to support dependencies using new package errors functions, e.g. errors.As.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great. I'll cut a release right away 🥇
We're seeing a sporadic issue when building projects with shuttle plans. Occasionally the tag of the docker image has an empty shuttlePlanHash (so the image tag would end up something like "master-e71d796c6e-")
This happens because the planHash() function in the shuttle.groovy file returns empty output. The function generates that output using './shuttle --skip-pull git-plan rev-parse HEAD'.
When looking at the source code of RunGitPlanCommand it looks like it might suffer from a race condition and exit prematurely before printing the output.
I had a look at the streaming example from https://github.com/go-cmd/cmd/blob/master/examples/blocking-streaming/main.go and basically copy-pasted that.