Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Rewrite whole files, and thereby deal with multidocs and Lists properly #1137

Merged
merged 3 commits into from
Jun 13, 2018

Conversation

squaremo
Copy link
Member

Although the manifest update procedures can now deal with multidocs and List resources, the release code was still reading in just the bytes for the particular manifest, and writing that back to the original path. This meant that any multidoc or List resource file would get overwritten by the single manifest.

Thankfully, an alert user noticed that automated releases were failing verification -- this fixes #1136.

squaremo added 3 commits June 12, 2018 14:36
This included making some tests that passed by coincidence pass by
design.
Up to this point, the update (and release) packages assumed that each
file they were dealing with corresponded to a single manifest, because
we couldn't deal with updating files with multiple manifests in them.

Since we can now update a resource in a multidoc file or List, we can
do this correctly and more simply by just overwriting each file after
running its contents through the update process, serially.
@squaremo squaremo force-pushed the issue/1136-verification-failure branch from c7598c9 to 52eb5a5 Compare June 12, 2018 15:48
@squaremo squaremo requested a review from aaron7 June 12, 2018 15:51
@squaremo squaremo merged commit b168047 into master Jun 13, 2018
@squaremo squaremo deleted the issue/1136-verification-failure branch June 13, 2018 14:06
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Verification fails for simple deployment/service multidoc
2 participants