You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add script for tag porting when migrating libraries into the core monorepo #1800
We need a standardized, automated way of porting tags for libraries migrated into merged-packages/ that satisfies the following:
Distinguishes between releases of the monorepo root vs. non-root subpackages by prepending a package name prefix to all tag names of libraries that are migrated into the monorepo.
Ensures that tag diff links in the target package's CHANGELOG correctly point to valid tags in core after migration.
e.g. https://github.com/MetaMask/core/compare/@metamask/<package-name>@<maj>.<min>.<patch>...@metamask/<package-name>@<maj>.<min>.<patch>
Considerations
If the target library was renamed at any point, the tag name prefixes should display the correct original package name that corresponds to the tag version.
The release commit hashes in the rewritten git history in core will not match the hashes for the tagged commits in the original repo.
Process
Find the new hashes for the release commits from the migrated commit history of the target package directory in merged-packages/.
Identify tags where the package was renamed.
Map each version number and package name onto the corresponding release commit hash.
Add the tags by running git tag <tag-name> [commit-hash] for each tag-commit pair with the correct package name prepended onto the tag name.
Activity
`eth-json-rpc-provider` migration - Integration into `packages/` (#1738)