Skip to content
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

Update the docker driver to return early from fetchOutputs #111

Merged
merged 1 commit into from
Aug 14, 2019

Conversation

jeremyrickard
Copy link
Member

@jeremyrickard jeremyrickard commented Aug 13, 2019

Update the docker driver to return early from fetchOutputs when there are no outputs defined on the operation. If there are none defined on the operation, there is a good chance /cnab/app/outputs won't exist and we shouldn't try to copy from it in any case. This is currently an issue in duffle (and I assume any other tools that have updated the dependency to pick this up), when no outputs are defined in the bundle. This simply adds a boundary condition check.

If outputs are set on the operation, we should continue and if it doesn't exist that is a failure case with that invocation image.

I think there is a related change we should make where we only return the outputs defined on the operation. I think we are currently returning all the things in /cnab/app/outputs which is probably a little overly presumptive. I didn't handle that here, but I think it will be easier to handle now that the Operation is passed down into the method.

Closes #110.

…re no outputs

defined on the operation. If there are none defined on the operation, there is
a good chance /cnab/app/outputs won't exist and we shouldn't try to copy from it.

If they do exist, we should continue and if it doesn't exist that is a failure case
with that invocation image.
Copy link
Contributor

@carolynvs carolynvs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@carolynvs carolynvs merged commit 5f351d2 into cnabio:master Aug 14, 2019
carolynvs pushed a commit to carolynvs/cnab-go that referenced this pull request Aug 16, 2019
* fix: fixed regressions

* fix: fix all linter bugs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Issue with docker driver and no bundle outputs
3 participants