blob: 2a7fe2a4e9b77c27601355cd6fc0a7d5e6393edc [file]
$ pub __experimental-dependency-services list
{
"dependencies": [
{
"name": "foo",
"version": "1.2.3",
"kind": "direct",
"constraint": "^1.0.0"
}
]
}
$ pub __experimental-dependency-services report
{
"dependencies": [
{
"name": "foo",
"version": "1.2.3",
"kind": "direct",
"latest": "2.2.3",
"constraint": "^1.0.0",
"compatible": [],
"single-breaking": [
{
"name": "foo",
"version": "2.2.3",
"kind": "direct",
"constraint": null
},
{
"name": "transitive",
"version": "1.0.0",
"kind": "transitive",
"constraint": null
}
],
"multi-breaking": [
{
"name": "foo",
"version": "2.2.3",
"kind": "direct",
"constraint": null
},
{
"name": "transitive",
"version": "1.0.0",
"kind": "transitive",
"constraint": null
}
]
}
]
}
$ pub __experimental-dependency-services apply
Resolving dependencies...
+ transitive 1.0.0
Would change 1 dependency.
myapp/pubspec.yaml:
{"name":"app","dependencies":{"foo":^2.2.3},"environment":{"sdk":">=0.1.2 <1.0.0"}}
myapp/pubspec.lock:
# Generated by pub
# See https://dart.dev/tools/pub/glossary#lockfile
packages:
foo:
dependency: "direct main"
description:
name: foo
url: "http://localhost:34801"
source: hosted
version: 2.2.3
sdks:
dart: ">=0.1.2 <1.0.0"