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

Omit changes query parameter in CreateImageOptions if Vec is empty #353

Merged
merged 1 commit into from
Nov 20, 2023
Merged

Conversation

fmckeogh
Copy link
Contributor

Closes #352

@fussybeaver
Copy link
Owner

I'm not on my desktop at the moment, but looks good... Would also be good to get a test case around the wasm use case that you mentioned.

@fmckeogh
Copy link
Contributor Author

I'm not on my desktop at the moment, but looks good... Would also be good to get a test case around the wasm use case that you mentioned.

Sure thing, I'll write one now (making sure it fails without the fix)

@fmckeogh
Copy link
Contributor Author

Done

.into_iter()
.collect::<Result<Vec<_>, bollard::errors::Error>>()
.unwrap();

Copy link
Owner

Choose a reason for hiding this comment

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

Could we assert that the image was built by using inspect_image?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@fussybeaver
Copy link
Owner

Thanks, looks good, happy to merge if we can get one assert in there

Resolves an issue where if an empty changes parameter is sent, Docker will return a 400 "file with no instructions" error
@fussybeaver fussybeaver merged commit af08c3c into fussybeaver:master Nov 20, 2023
11 checks passed
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.

DockerResponseServerError { status_code: 400, message: "file with no instructions" }
2 participants