blob: 7bbbac70fc2c76dfed12d7895a4bce3d0e6c928e [file]
# GENERATED BY: test/dependency_services/dependency_services_test.dart
$ cat pubspec.yaml
{"name":"app","dependencies":{"foo":"^1.0.0"},"environment":{"sdk":"^3.0.2"}}
$ cat pubspec.lock
# Generated by pub
# See https://dart.dev/tools/pub/glossary#lockfile
packages:
foo:
dependency: "direct main"
description:
name: foo
sha256: $SHA256
url: "http://localhost:$PORT"
source: hosted
version: "1.2.3"
transitive:
dependency: transitive
description:
name: transitive
sha256: $SHA256
url: "http://localhost:$PORT"
source: hosted
version: "1.0.0"
sdks:
dart: ">=3.0.2 <4.0.0"
-------------------------------- END OF OUTPUT ---------------------------------
## Section list
$ echo '' | dependency_services list
{
"dependencies": [
{
"name": "foo",
"version": "1.2.3",
"kind": "direct",
"constraint": "^1.0.0",
"source": {
"type": "hosted",
"description": {
"name": "foo",
"url": "http://localhost:$PORT",
"sha256": "0498214b0972f23e519cb7fb546d1eaaae2342152d952b7750e749f3f119fff6"
}
}
},
{
"name": "transitive",
"version": "1.0.0",
"kind": "transitive",
"constraint": null,
"source": {
"type": "hosted",
"description": {
"name": "transitive",
"url": "http://localhost:$PORT",
"sha256": "d705923b5a6b4c7053e6d86a35799ede6467245151ff15dfdd5719986a61d49c"
}
}
}
]
}
-------------------------------- END OF OUTPUT ---------------------------------
## Section report
$ echo '' | dependency_services report
{
"dependencies": [
{
"name": "foo",
"version": "1.2.3",
"kind": "direct",
"source": {
"type": "hosted",
"description": {
"name": "foo",
"url": "http://localhost:$PORT",
"sha256": "0498214b0972f23e519cb7fb546d1eaaae2342152d952b7750e749f3f119fff6"
}
},
"latest": "2.2.3",
"constraint": "^1.0.0",
"compatible": [],
"singleBreaking": [
{
"name": "foo",
"version": "2.2.3",
"kind": "direct",
"source": {
"type": "hosted",
"description": {
"name": "foo",
"url": "http://localhost:$PORT",
"sha256": "893214328b7741cecc09046d6309aa894b4645099dd05d7f8e1a1dfa2799a6df"
}
},
"constraintBumped": "^2.2.3",
"constraintWidened": ">=1.0.0 <3.0.0",
"constraintBumpedIfNeeded": "^2.2.3",
"previousVersion": "1.2.3",
"previousConstraint": "^1.0.0",
"previousSource": {
"type": "hosted",
"description": {
"name": "foo",
"url": "http://localhost:$PORT",
"sha256": "0498214b0972f23e519cb7fb546d1eaaae2342152d952b7750e749f3f119fff6"
}
}
},
{
"name": "transitive",
"version": null,
"kind": "transitive",
"constraintBumped": null,
"constraintWidened": null,
"constraintBumpedIfNeeded": null,
"previousVersion": "1.0.0",
"previousConstraint": null,
"previous": {
"type": "hosted",
"description": {
"name": "transitive",
"url": "http://localhost:$PORT",
"sha256": "d705923b5a6b4c7053e6d86a35799ede6467245151ff15dfdd5719986a61d49c"
}
}
}
],
"multiBreaking": [
{
"name": "foo",
"version": "2.2.3",
"kind": "direct",
"source": {
"type": "hosted",
"description": {
"name": "foo",
"url": "http://localhost:$PORT",
"sha256": "893214328b7741cecc09046d6309aa894b4645099dd05d7f8e1a1dfa2799a6df"
}
},
"constraintBumped": "^2.2.3",
"constraintWidened": ">=1.0.0 <3.0.0",
"constraintBumpedIfNeeded": "^2.2.3",
"previousVersion": "1.2.3",
"previousConstraint": "^1.0.0",
"previousSource": {
"type": "hosted",
"description": {
"name": "foo",
"url": "http://localhost:$PORT",
"sha256": "0498214b0972f23e519cb7fb546d1eaaae2342152d952b7750e749f3f119fff6"
}
}
},
{
"name": "transitive",
"version": null,
"kind": "transitive",
"constraintBumped": null,
"constraintWidened": null,
"constraintBumpedIfNeeded": null,
"previousVersion": "1.0.0",
"previousConstraint": null,
"previous": {
"type": "hosted",
"description": {
"name": "transitive",
"url": "http://localhost:$PORT",
"sha256": "d705923b5a6b4c7053e6d86a35799ede6467245151ff15dfdd5719986a61d49c"
}
}
}
]
},
{
"name": "transitive",
"version": "1.0.0",
"kind": "transitive",
"source": {
"type": "hosted",
"description": {
"name": "transitive",
"url": "http://localhost:$PORT",
"sha256": "d705923b5a6b4c7053e6d86a35799ede6467245151ff15dfdd5719986a61d49c"
}
},
"latest": "1.0.0",
"constraint": null,
"compatible": [],
"singleBreaking": [],
"multiBreaking": []
}
]
}
-------------------------------- END OF OUTPUT ---------------------------------
## Section apply
$ echo '{"dependencyChanges":[{"name":"foo","version":"2.2.3"},{"name":"transitive","version":null}]}' | dependency_services apply
{"dependencies":[]}
-------------------------------- END OF OUTPUT ---------------------------------
$ cat pubspec.yaml
{"name":"app","dependencies":{"foo":^2.2.3},"environment":{"sdk":"^3.0.2"}}
$ cat pubspec.lock
# Generated by pub
# See https://dart.dev/tools/pub/glossary#lockfile
packages:
foo:
dependency: "direct main"
description:
name: foo
sha256: $SHA256
url: "http://localhost:$PORT"
source: hosted
version: "2.2.3"
sdks:
dart: ">=3.0.2 <4.0.0"