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
OS linux
OS version Linux 5.15.0-40-generic #43-Ubuntu SMP Wed Jun 15 12:54:21 UTC 2022
dart version 2.17.5
I have a project pub_release that has the following pubspec.yaml:
name: pub_releaseversion: 7.3.3homepage: https://github.com/bsutton/pub_releasedocumentation: https://pubrelease.noojee.dev/description: Automates the release of a dart package to pub.dev including running dartfmt, creating a git tag, incrementing the packages version no. and pushing the package to pub.dev.environment:
sdk: '>=2.12.0 <3.0.0'dependencies:
dcli: 1.20.1github: ^8.0.1meta: ^1.3.0mime: ^1.0.0pub_semver: ^2.1.0pubspec: ^2.3.0settings_yaml: ^3.0.6dev_dependencies:
dependency_validator: ^3.0.0lint_hard: ^1.0.0test: ^1.16.2executables:
pub_release:
github_release:
github_workflow_release:
platforms:
linux:
windows:
macos:
Note: the sdk constraint of >=2.12.0
I would assume that this means that pub_release will run on sdk 2.12.
I now run dart pub upgrade --major-versions with the resulting pubspec.yaml:
name: pub_releaseversion: 7.3.3homepage: https://github.com/bsutton/pub_releasedocumentation: https://pubrelease.noojee.dev/description: Automates the release of a dart package to pub.dev including running dartfmt, creating a git tag, incrementing the packages version no. and pushing the package to pub.dev.environment:
sdk: '>=2.12.0 <3.0.0'dependencies:
dcli: ^1.31.2github: ^9.4.0meta: ^1.3.0mime: ^1.0.0pub_semver: ^2.1.0pubspec: ^2.3.0settings_yaml: ^3.0.6dev_dependencies:
dependency_validator: ^3.0.0lint_hard: ^2.0.0test: ^1.16.2executables:
pub_release:
github_release:
github_workflow_release:
platforms:
linux:
windows:
macos:
Note the change of the dcli dependency from 1.20.1 to 1.31.2.
Note that dcli has an sdk constraint of sdk: '>=2.16.0 <3.0.0'.
I would assume this means that dcli requires at least 2.16 to operate correctly.
As such it would appear that the pub upgrade command has incorrectly upgraded the pub_release package to use a version of dcli that breaks pub_release's sdk constraints.
I would have expect the the dcli dependency to remain at 1.20.1 as this is the last version that supported sdk 2.12.0
The text was updated successfully, but these errors were encountered:
The sdk constraint tells what sdk the code in the given package requires (and the lower bound also signifies the language version for that package) - all dependencies don't have to respect the same ranges.
This just mean that pub from a 2.12 sdk will never resolve a pub_release v7.3.3 (unless a new version of dcli is published that actually supports 2.12).
OS linux
OS version Linux 5.15.0-40-generic #43-Ubuntu SMP Wed Jun 15 12:54:21 UTC 2022
dart version 2.17.5
I have a project pub_release that has the following pubspec.yaml:
Note: the sdk constraint of >=2.12.0
I would assume that this means that pub_release will run on sdk 2.12.
I now run
dart pub upgrade --major-versions
with the resulting pubspec.yaml:Note the change of the dcli dependency from 1.20.1 to 1.31.2.
The pubspec.yaml for dcli 1.31.2 is:
Note that dcli has an sdk constraint of sdk: '>=2.16.0 <3.0.0'.
I would assume this means that dcli requires at least 2.16 to operate correctly.
As such it would appear that the pub upgrade command has incorrectly upgraded the pub_release package to use a version of dcli that breaks pub_release's sdk constraints.
I would have expect the the dcli dependency to remain at 1.20.1 as this is the last version that supported sdk 2.12.0
The text was updated successfully, but these errors were encountered: