yakforward-ou / yak_packages

a collection of packages for Flutter
MIT License
12 stars 0 forks source link

[melos] CancelledException: Operation was canceled. on melos publish #180

Closed iapicca closed 1 year ago

iapicca commented 1 year ago

error merging https://github.com/iapicca/yak_packages/pull/179


$ melos exec
  └> flutter format . --fix
     └> SUCCESS

melos run lint:format
  └> melos exec \--concurrency 1 \-- \flutter format . \--fix
     └> SUCCESS
melos publish
  └> /home/runner/work/yak_packages/yak_packages

Reading pub registry for package information...

The following packages WILL be published to the registry:

Package Name          Registry    Local
yak_utils             1.0.0+7     1.0.0+9
yak_result            1.0.0+2     1.0.0+4
yak_result_example                1.0.0
stub                  1.0.0+2     1.0.0+3
stub_example                      1.0.0
byte_token            1.0.0+2     1.0.0+3
byte_token_example                1.0.0
yak_tween             0.1.0+10    0.1.0+11
yak_runner            1.0.0+1     1.0.0+2
yak_flutter           1.0.0+4     1.0.0+5
yak_test              1.0.0+0     1.0.0+1
CancelledException: Operation was canceled.

melos run publish
  └> melos run lint:format && \melos publish --no-dry-run
     └> FAILED
ScriptException: The script publish failed to execute
Error: Process completed with exit code 1.

possibly related to https://github.com/invertase/melos/issues/356

see https://github.com/iapicca/yak_packages/actions/runs/3111410308

iapicca commented 1 year ago

adding publish_to: 'none' in examples didn't help job: https://github.com/iapicca/yak_packages/actions/runs/3111572913/jobs/5044010109 pr: https://github.com/iapicca/yak_packages/pull/181

$ melos exec
  └> flutter format . --fix
     └> SUCCESS

melos run lint:format
  └> melos exec \--concurrency 1 \-- \flutter format . \--fix
     └> SUCCESS
melos publish
  └> /home/runner/work/yak_packages/yak_packages

Reading pub registry for package information...

The following packages WILL be published to the registry:

Package Name    Registry    Local
yak_utils       1.0.0+7     1.0.0+9
stub            1.0.0+2     1.0.0+3
yak_result      1.0.0+2     1.0.0+4
yak_runner      1.0.0+1     1.0.0+2
byte_token      1.0.0+2     1.0.0+3
yak_tween       0.1.0+10    0.1.0+11
yak_flutter     1.0.0+4     1.0.0+5
yak_test        1.0.0+0     1.0.0+1
CancelledException: Operation was canceled.

melos run publish
  └> melos run lint:format && \melos publish --no-dry-run
     └> FAILED
ScriptException: The script publish failed to execute
Error: Process completed with exit code 1.
iapicca commented 1 year ago

the issue seems to be caused by 2 different problems:

iapicca commented 1 year ago

after https://github.com/iapicca/yak_packages/pull/182

- add publish_to: none in examples pubspec
- replace example symlink with markdown file
- update publishing script in workflows

error changed

$ melos exec
  └> flutter format . --fix
     └> SUCCESS

melos run lint:format
  └> melos exec \--concurrency 1 \-- \flutter format . \--fix
     └> SUCCESS
melos publish
  └> /home/runner/work/yak_packages/yak_packages

Reading pub registry for package information...

The following packages WILL be published to the registry:

Package Name    Registry    Local
yak_utils       1.0.0+7     1.0.0+9
yak_tween       0.1.0+10    0.1.0+11
yak_result      1.0.0+2     1.0.0+4
yak_runner      1.0.0+1     1.0.0+2
yak_flutter     1.0.0+4     1.0.0+5
stub            1.0.0+2     1.0.0+3
yak_test        1.0.0+0     1.0.0+1
byte_token      1.0.0+2     1.0.0+3
CancelledException: Operation was canceled.

melos run publish
  └> melos run lint:format && \melos publish --no-dry-run
     └> FAILED
ScriptException: The script publish failed to execute
yes: standard output: Broken pipe
Error: Process completed with exit code 1.