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

fix: Use a script to manually control the execution failure of multiple versions #858

Open
1 of 2 tasks
laterdayi opened this issue Jan 31, 2025 · 4 comments
Open
1 of 2 tasks
Labels
bug Something isn't working

Comments

@laterdayi
Copy link

Is there an existing issue for this?

  • I have searched the existing issues.

Version

7.0.0-dev.5

Description

melos:

    version:
      fetchTags: false
      updateGitTagRefs: false
      message: |
        chore(release): publish packages

        {new_package_versions}

  scripts:
    version: melos version -V semi_component:major -V semi_extension:major -V semi_kit:major -V semi_service:major -V semi_theme:major -V semi_util:major --no-changelog --no-git-tag-version

output

PS C:\Users\admin\Desktop\flutter_design> melos run version 
melos run version
  └> melos version -V semi_component:major -V semi_extension:major -V semi_kit:major -V semi_service:major -V semi_theme:major -V semi_util:major --no-changelog --no-git-tag-version
     └> RUNNING

melos version
  └> C:\Users\admin\Desktop\flutter_design

The following 6 packages will be updated:

Package Name     Current Version   Updated Version   Update Reason
semi_component   0.0.1             0.1.0             manual versioning
semi_extension   0.0.1             0.1.0             manual versioning
semi_kit         0.0.1             0.1.0             manual versioning
semi_service     0.0.1             0.1.0             manual versioning
semi_theme       0.0.1             0.1.0             manual versioning
semi_util        0.0.1             0.1.0             manual versioning
ERROR: Operation was canceled.

Steps to reproduce

Image

Expected behavior

Image

Screenshots

No response

Additional context and comments

No response

Other

  • I'm interested in working on a PR for this.
@laterdayi laterdayi added the bug Something isn't working label Jan 31, 2025
@spydon
Copy link
Collaborator

spydon commented Jan 31, 2025

Can you elaborate on what is wrong? I don't see any difference in the pictures.

@laterdayi
Copy link
Author

laterdayi commented Jan 31, 2025

Can you elaborate on what is wrong? I don't see any difference in the pictures.

This is the script I set up, the function I want is to change the version number of the all package every time, but now it will directly indicate that it is canceled

  scripts:
    version: melos version -V semi_component:major -V semi_extension:major -V semi_kit:major -V semi_service:major -V semi_theme:major -V semi_util:major --no-changelog --no-git-tag-version

Image

@laterdayi
Copy link
Author

Is it possible to fix this issue, it is not possible to manually upgrade the version of multiple dependencies via script, it will automatically cancel the operation

@spydon
Copy link
Collaborator

spydon commented Feb 1, 2025

Since you're not in a interactive shell you have to add --yes to your command.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants