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
When a command is run for a set of packages with the exec option, if the command exits with a non-zero code, the melos CLI does not propagate the failure result with an errored exit code.
Steps to reproduce
In a mono-repo with at least two packages.
Create the melos.yaml file with the basic Melos setup.
Define the following script:
should-fail:
description: A script that should fail.run: dart run absent_file.dartexec:
concurrency: 1failFast: truepackageFilters:
scope: "*"
Run melos run should-fail --no-select.
Expected behavior
When running melos run should-fail, Melos should stop the whole execution with an errored exit code.
Given that the absent_file.dart file does not exist, the actual Melos execution workflow is interrupted in the first package but Melos ends up printing a SUCCESS message.
Screenshots
Additional context and comments
OS: Windows
Dart: 3.0.0
Terminal: Git Bash
The text was updated successfully, but these errors were encountered:
Is there an existing issue for this?
Version
3.0.1
Description
When a command is run for a set of packages with the
exec
option, if the command exits with a non-zero code, themelos
CLI does not propagate the failure result with an errored exit code.Steps to reproduce
melos.yaml
file with the basic Melos setup.melos run should-fail --no-select
.Expected behavior
When running
melos run should-fail
, Melos should stop the whole execution with an errored exit code.Given that the
absent_file.dart
file does not exist, the actual Melos execution workflow is interrupted in the first package but Melos ends up printing a SUCCESS message.Screenshots
Additional context and comments
The text was updated successfully, but these errors were encountered: