blob: 1959aebeb214a60c972be9d5df3724231b47d328 [file]
# GENERATED BY: test/dependency_services/dependency_services_test.dart
$ cat pubspec.yaml
{"name":"app","dependencies":{"foo":"^1.0.0","bar":{"git":{"url":"../bar.git"}}},"environment":{"sdk":"^3.0.2"}}
$ cat pubspec.lock
No such file pubspec.lock.
-------------------------------- END OF OUTPUT ---------------------------------
## Section list
$ echo '' | dependency_services list
{
"dependencies": [
{
"name": "bar",
"version": "1ea665d6de007c60308949db4c6ae8049c2395f0",
"kind": "direct",
"constraint": "any",
"source": {
"type": "git",
"description": {
"url": "../bar.git",
"ref": "HEAD",
"resolved-ref": "1ea665d6de007c60308949db4c6ae8049c2395f0",
"path": "."
}
}
},
{
"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": "bar",
"version": "1ea665d6de007c60308949db4c6ae8049c2395f0",
"kind": "direct",
"source": {
"type": "git",
"description": {
"url": "../bar.git",
"ref": "HEAD",
"resolved-ref": "1ea665d6de007c60308949db4c6ae8049c2395f0",
"path": "."
}
},
"latest": "1ea665d6de007c60308949db4c6ae8049c2395f0",
"constraint": "any",
"compatible": [],
"singleBreaking": [],
"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": "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"
}
}
}
],
"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": "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,"bar":{"git":{"url":"../bar.git"}}},"environment":{"sdk":"^3.0.2"}}
$ cat pubspec.lock
No such file pubspec.lock.