Open abitofevrything opened 1 week ago
This surely shouldn't crash - but I'm not sure what the actual behavior should be if the overridden version is outside the current range... Maybe just set it to ^overriden
Well, the dependency overrides did originally point to a different version - but at the moment I ran this command, the main
branch of the dependencies causing the issue (not build_runner) pointed to the exact same code released on pub.
Since the upgrade
part completed successfully, the overrides were not actually applying any different version than was available on pub - I simply happened to run this command before removing the redundant overrides.
Environment
dart --version
):Dart SDK version: 3.6.0-270.0.dev (dev) (Fri Sep 20 09:03:16 2024 -0700) on "linux_x64"
Linux 6.10.10-arch1-1
Problem
Running
dart pub upgrade --tighten
fails whenpubspec.yaml
contains dependency_overrides.Expected behavior
The dpendencies should be upgraded tightened. Note that
dart pub upgrade
alone works fine.Actual behavior
pub_log.txt
``` Information about the latest pub run. If you believe something is not working right, you can go to https://github.com/dart-lang/pub/issues/new to post a new issue and attach this file. Before making this file public, make sure to remove any sensitive information! Pub version: 3.6.0-270.0.dev Created: 2024-09-25T20:16:53.058603 FLUTTER_ROOT: