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

feat(cli/package-tag): Manifest is not mandatory anymore while tagging #4848

Merged
merged 6 commits into from
Jun 18, 2024

Conversation

xdoardo
Copy link
Contributor

@xdoardo xdoardo commented Jun 14, 2024

This PR tries to solve #4672 and #4788.
This involves necessary breaking changes to the tag command which we introduced in 4.3.0, as before we had

wasmer package tag sha256:abc....    ./path/to/manifest_dir

and, in this PR, it should now be

wasmer package tag sha256:abc.... namespace/name[version] 

So, keeping both args (path and namespace) to maintain backwards compatibility would make this PR nonsensical - as it would still need a manifest. Users can still specify a manifest to draw the info regarding the package to tag from with the --package-path flag.

In general, this PR still keeps the concept of manifest in the tagging logic. This, of course, is to keep a minimum of backwards compatibility, but also because some package values - such as description, readme and so forth - are better read off of the manifest, rather than passed via flag from the user.

@xdoardo xdoardo requested a review from syrusakbary as a code owner June 14, 2024 15:35
@xdoardo xdoardo requested a review from ayys June 14, 2024 15:43
lib/cli/src/opts.rs Outdated Show resolved Hide resolved
Copy link
Member

@ayys ayys left a comment

Choose a reason for hiding this comment

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

lgtm other than the nit about registry.

@xdoardo xdoardo merged commit 9e67a55 into main Jun 18, 2024
62 checks passed
@xdoardo xdoardo deleted the package-tag-no-manifest branch June 18, 2024 11:45
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.

3 participants