Workiva / dpx

Apache License 2.0
1 stars 0 forks source link

Checking for already-installed packages doesn't consider the SDK version #15

Open evanweible-wf opened 4 months ago

evanweible-wf commented 4 months ago

If, for example, you run dpx dependency_validator on Dart 3.4 and then again on Dart 2.19, you'll get this error:

> dpx dependency_validator    
dependency_validator as globally activated doesn't support Dart 2.19.6, try: dart pub global activate dependency_validator

This is because dpx finds that dependency_validator is already globally activated and skips the activation step to save time. Note that even if we move forward with #11, this issue would still apply when a version constraint is specified.

To fix this, we could: