-
Notifications
You must be signed in to change notification settings - Fork 753
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
Make recommended changes to our module manifests (breaking change for v0.23) #11482
Comments
We will need to emit a warning about the breaking change as the first step. |
related branch: sw/allow-multiple-layers |
The ACR guys suggested the following changes: { |
SUMMARY OF CHANGESNow
Breaking change in v0.23 - see PR for for breaking change details)
|
Part of the work for #11482. These changes do not cause any breaking changes, but they set us up for doing breaking changes after a release or two, to make it easier for people to switch to newer versions. All changes are non-breaking: - allow a non-empty config and an unrecognized config media type when we download a module (currently we throw) - allow multiple module layers when we download (currently we throw) - change manifest media type to application/vnd.oci.image.manifest.v1+json instead of null With these changes, the upcoming breaking changes will only break v-minus-2 (v0.20) instead of breaking v-minus-1. Assuming the breaking changes occur in v0.22: - Current version (v0.20) or earlier: Will get an error trying to use a module published with v0.22 - v0.21 (Early September): Can use modules published with v0.22 (but no new functionality) - v0.22 (Early October): Breaking changes made affecting v0.20 but not v0.21 ###### Microsoft Reviewers: [Open in CodeFlow](https://microsoft.github.io/open-pr/?codeflow=https://github.com/Azure/bicep/pull/11680) --------- Co-authored-by: Stephen Weatherford <Stephen.Weatherford.com>
See #12057 for breaking change details |
Fixes #11482 This is a breaking change that keeps v0.20 or earlier from restoring modules published with versions with this change. The original breaking change notification doesn't seem to have made it into the release notes, but we can put this into the new version: > This is a breaking change in how modules are published. This change will affect v0.20 and earlier, keeping them from being able to restore modules created in v0.23 or later. > v0.20 or earlier: Can read modules published with v0.22 or earlier. Will get an error trying to restore a module published with v0.23 or later. > v0.21, v0.22: Can read modules published earlier or later. Modules published with v0.21 can be read by earlier and later versions. > v0.23: Can read modules published earlier or later. Modules published with v0.23 can be read by v0.21 and later. ###### Microsoft Reviewers: [Open in CodeFlow](https://microsoft.github.io/open-pr/?codeflow=https://github.com/Azure/bicep/pull/12057) --------- Co-authored-by: Stephen Weatherford <Stephen.Weatherford.com>
Definitely do:
Consider (would break previous Bicep versions from being able to download newly-published modules, including those in the public registry):
Context:
I discovered that ACR requires the sources manifest config to be valid JSON or it won't recognize it as an attachment. Upon asking the ACR guys if this was expected, I got this answer:
The text was updated successfully, but these errors were encountered: