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
melos bootstrap creates incompatibility between an application (in the example flutter_app)
and a package (test_package)
regardless the fact that said package is not used in the application itself
and only present in the dev_dependencies of the imported package
cd packages/test_package && dart pub get
cd ../feature_package && dart pub get
cd ../../examples/flutter_app && flutter pub get
5 run melos bootstrap
Expected behavior
as pub get is successful I'd expect melos bootstrap to succeed as well
Actual behavior
melos boot throws the following
melos bootstrap └> /Volumes/ROG/dev/test_folderRunning "flutter pub get" in workspace packages... - flutter_app └> examples/flutter_app └> Failed to install.Running "flutter pub get" in flutter_app...Because every version of test_package from path depends on test ^1.21.6 which depends on test_api 0.4.14, every version of test_package from path requires test_api 0.4.14.And because every version of flutter_test from sdk depends on test_api 0.4.12, test_package from path is incompatible with flutter_test from sdk.So, because flutter_app depends on both flutter_test from sdk and test_package from path, version solving failed.pub get failed (1; So, because flutter_app depends on both flutter_test from sdk and test_package from path, version solving failed.)BootstrapException: Failed to install.: flutter_app at /Volumes/ROG/dev/test_folder/examples/flutter_app.
Doctor summary (to see all details, run flutter doctor -v):[✓] Flutter (Channel stable, 3.3.2, on macOS 12.5.1 21G83 darwin-arm, locale en-EE)[✓] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1)[✓] Xcode - develop for iOS and macOS (Xcode 13.4.1)[✓] Chrome - develop for the web[!] Android Studio (not installed)[✓] VS Code (version 1.71.2)[✓] Connected device (2 available)[✓] HTTP Host Availability! Doctor found issues in 1 category.
The text was updated successfully, but these errors were encountered:
Is there an existing issue for this?
Version
2.7.1
Description
melos bootstrap creates incompatibility between an application (in the example
flutter_app
)and a package (
test_package
)regardless the fact that said package is not used in the application itself
and only present in the
dev_dependencies
of the imported packageSteps to reproduce
steps
test_folder
amelos.yaml
file with the content belowpackages
steps
test_package
'spubspec.yaml
with the followingfeature_package
'spubspec.yaml
with the followingexamples
steps
flutter_app
'spubspec.yaml
with the followingflutter pub get
/dart pub get
everywhere5 run
melos bootstrap
Expected behavior
as
pub get
is successful I'd expectmelos bootstrap
to succeed as wellActual behavior
melos boot
throws the followingAdditional context and comments
dart --version
Dart SDK version: 2.18.1 (stable) (Tue Sep 13 11:42:55 2022 +0200) on "macos_arm64"
flutter doctor
The text was updated successfully, but these errors were encountered: