feat: publish workspace dependency closures - #76
Open
privatenumber wants to merge 41 commits into
Open
Conversation
📊 Package size report 21%↑
Unchanged files
🤖 This report was automatically generated by pkg-size-action |
This reverts commit 0618cc7.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
git-publishrejected workspace dependencies, so a package that depended on another package in the same repository could not be installed from Git. Publishingadapterin acore <- broker <- adapterworkspace required a manual bundle or left consumers at risk of resolving internal packages from a registry.Changes
Publishing from a workspace package now prepares its runtime dependency closure, then updates all package branches in one atomic push. Each packed manifest replaces internal runtime dependencies with an immutable, commit-pinned Git URL before its package-specific commit is created.
For example, publishing
adapternow preparescore,broker, andadapterbefore any branch changes. If the remote rejectsadapter, Git rejects the whole atomic update, socoreandbrokerdo not become partially visible.The selected package's install specification is printed after a successful push.
--freshrecords an explicit lease for every package branch before preparation, and recursive publication rejects remotes with multiple push URLs because they cannot provide one transaction.