blob: 1e63cb2e5c70c49bdff3a32edbaca903ce374661 [file] [log] [blame]
# GENERATED BY: test/dependency_services/dependency_services_test.dart
$ cat pubspec.yaml
{"name":"app","dependencies":{"foo":"^1.0.0","bar":"^1.0.0","baz":"1.0.0"},"environment":{"sdk":"^3.0.2"}}
$ cat pubspec.lock
# Generated by pub
# See https://dart.dev/tools/pub/glossary#lockfile
packages:
bar:
dependency: "direct main"
description:
name: bar
sha256: "8cd4b5a00de63aa592f4240249affd87abf49de4281233870f22b30919f87d42"
url: "http://localhost:$PORT"
source: hosted
version: "1.0.0"
baz:
dependency: "direct main"
description:
name: baz
sha256: b61dfc82400bc16736afba3958f2c81ff8a5a4b41a31c1b15bdc43a090113cef
url: "http://localhost:$PORT"
source: hosted
version: "1.0.0"
foo:
dependency: "direct main"
description:
name: foo
sha256: "4a8df8c695623e81d90f663801ead4a5269b406599b43b90ad558561a6f09c59"
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": "bar",
"version": "1.0.0",
"kind": "direct",
"constraint": "^1.0.0",
"source": {
"type": "hosted",
"description": {
"name": "bar",
"url": "http://localhost:$PORT",
"sha256": "8cd4b5a00de63aa592f4240249affd87abf49de4281233870f22b30919f87d42"
}
}
},
{
"name": "baz",
"version": "1.0.0",
"kind": "direct",
"constraint": "1.0.0",
"source": {
"type": "hosted",
"description": {
"name": "baz",
"url": "http://localhost:$PORT",
"sha256": "b61dfc82400bc16736afba3958f2c81ff8a5a4b41a31c1b15bdc43a090113cef"
}
}
},
{
"name": "foo",
"version": "1.0.0",
"kind": "direct",
"constraint": "^1.0.0",
"source": {
"type": "hosted",
"description": {
"name": "foo",
"url": "http://localhost:$PORT",
"sha256": "4a8df8c695623e81d90f663801ead4a5269b406599b43b90ad558561a6f09c59"
}
}
}
]
}
-------------------------------- END OF OUTPUT ---------------------------------
## Section report
$ echo '' | dependency_services report
{
"dependencies": [
{
"name": "bar",
"version": "1.0.0",
"kind": "direct",
"source": {
"type": "hosted",
"description": {
"name": "bar",
"url": "http://localhost:$PORT",
"sha256": "8cd4b5a00de63aa592f4240249affd87abf49de4281233870f22b30919f87d42"
}
},
"latest": "2.0.0",
"constraint": "^1.0.0",
"compatible": [],
"singleBreaking": [],
"multiBreaking": [
{
"name": "bar",
"version": "2.0.0",
"kind": "direct",
"source": {
"type": "hosted",
"description": {
"name": "bar",
"url": "http://localhost:$PORT",
"sha256": "d8f427cae6af20c3915ea195fc8b17f98a4bb333953d418657d83d9f8fb829d7"
}
},
"constraintBumped": "^2.0.0",
"constraintWidened": ">=1.0.0 <3.0.0",
"constraintBumpedIfNeeded": "^2.0.0",
"previousVersion": "1.0.0",
"previousConstraint": "^1.0.0",
"previousSource": {
"type": "hosted",
"description": {
"name": "bar",
"url": "http://localhost:$PORT",
"sha256": "8cd4b5a00de63aa592f4240249affd87abf49de4281233870f22b30919f87d42"
}
}
},
{
"name": "foo",
"version": "3.0.1",
"kind": "direct",
"source": {
"type": "hosted",
"description": {
"name": "foo",
"url": "http://localhost:$PORT",
"sha256": "02b6111db259663d77ff60109d07ccf04e216af6d8d31166f55547e5bed89e21"
}
},
"constraintBumped": "^3.0.1",
"constraintWidened": ">=1.0.0 <4.0.0",
"constraintBumpedIfNeeded": "^3.0.1",
"previousVersion": "1.0.0",
"previousConstraint": "^1.0.0",
"previousSource": {
"type": "hosted",
"description": {
"name": "foo",
"url": "http://localhost:$PORT",
"sha256": "4a8df8c695623e81d90f663801ead4a5269b406599b43b90ad558561a6f09c59"
}
}
}
]
},
{
"name": "baz",
"version": "1.0.0",
"kind": "direct",
"source": {
"type": "hosted",
"description": {
"name": "baz",
"url": "http://localhost:$PORT",
"sha256": "b61dfc82400bc16736afba3958f2c81ff8a5a4b41a31c1b15bdc43a090113cef"
}
},
"latest": "1.1.0",
"constraint": "1.0.0",
"compatible": [],
"singleBreaking": [
{
"name": "baz",
"version": "1.1.0",
"kind": "direct",
"source": {
"type": "hosted",
"description": {
"name": "baz",
"url": "http://localhost:$PORT",
"sha256": "f1a51ba864d7ef5702590e96167b812443ace67e15a82a0e064e735ac1376ec5"
}
},
"constraintBumped": "1.1.0",
"constraintWidened": "1.1.0",
"constraintBumpedIfNeeded": "1.1.0",
"previousVersion": "1.0.0",
"previousConstraint": "1.0.0",
"previousSource": {
"type": "hosted",
"description": {
"name": "baz",
"url": "http://localhost:$PORT",
"sha256": "b61dfc82400bc16736afba3958f2c81ff8a5a4b41a31c1b15bdc43a090113cef"
}
}
}
],
"multiBreaking": [
{
"name": "baz",
"version": "1.1.0",
"kind": "direct",
"source": {
"type": "hosted",
"description": {
"name": "baz",
"url": "http://localhost:$PORT",
"sha256": "f1a51ba864d7ef5702590e96167b812443ace67e15a82a0e064e735ac1376ec5"
}
},
"constraintBumped": "1.1.0",
"constraintWidened": "1.1.0",
"constraintBumpedIfNeeded": "1.1.0",
"previousVersion": "1.0.0",
"previousConstraint": "1.0.0",
"previousSource": {
"type": "hosted",
"description": {
"name": "baz",
"url": "http://localhost:$PORT",
"sha256": "b61dfc82400bc16736afba3958f2c81ff8a5a4b41a31c1b15bdc43a090113cef"
}
}
}
]
},
{
"name": "foo",
"version": "1.0.0",
"kind": "direct",
"source": {
"type": "hosted",
"description": {
"name": "foo",
"url": "http://localhost:$PORT",
"sha256": "4a8df8c695623e81d90f663801ead4a5269b406599b43b90ad558561a6f09c59"
}
},
"latest": "3.0.1",
"constraint": "^1.0.0",
"compatible": [
{
"name": "foo",
"version": "1.5.0",
"kind": "direct",
"source": {
"type": "hosted",
"description": {
"name": "foo",
"url": "http://localhost:$PORT",
"sha256": "601504c450e2e657b80fd1912e90d38393a7e2e6a3f5a641220952c812fcb722"
}
},
"constraintBumped": "^1.0.0",
"constraintWidened": "^1.0.0",
"constraintBumpedIfNeeded": "^1.0.0",
"previousVersion": "1.0.0",
"previousConstraint": "^1.0.0",
"previousSource": {
"type": "hosted",
"description": {
"name": "foo",
"url": "http://localhost:$PORT",
"sha256": "4a8df8c695623e81d90f663801ead4a5269b406599b43b90ad558561a6f09c59"
}
}
}
],
"singleBreaking": [
{
"name": "foo",
"version": "2.0.0",
"kind": "direct",
"source": {
"type": "hosted",
"description": {
"name": "foo",
"url": "http://localhost:$PORT",
"sha256": "3b080cba6d4ca9699c5c75c6b54852f77fe6d15e9cd13039ea4ca37683393021"
}
},
"constraintBumped": "^2.0.0",
"constraintWidened": ">=1.0.0 <3.0.0",
"constraintBumpedIfNeeded": "^2.0.0",
"previousVersion": "1.0.0",
"previousConstraint": "^1.0.0",
"previousSource": {
"type": "hosted",
"description": {
"name": "foo",
"url": "http://localhost:$PORT",
"sha256": "4a8df8c695623e81d90f663801ead4a5269b406599b43b90ad558561a6f09c59"
}
}
}
],
"multiBreaking": [
{
"name": "foo",
"version": "3.0.1",
"kind": "direct",
"source": {
"type": "hosted",
"description": {
"name": "foo",
"url": "http://localhost:$PORT",
"sha256": "02b6111db259663d77ff60109d07ccf04e216af6d8d31166f55547e5bed89e21"
}
},
"constraintBumped": "^3.0.1",
"constraintWidened": ">=1.0.0 <4.0.0",
"constraintBumpedIfNeeded": "^3.0.1",
"previousVersion": "1.0.0",
"previousConstraint": "^1.0.0",
"previousSource": {
"type": "hosted",
"description": {
"name": "foo",
"url": "http://localhost:$PORT",
"sha256": "4a8df8c695623e81d90f663801ead4a5269b406599b43b90ad558561a6f09c59"
}
}
},
{
"name": "bar",
"version": "2.0.0",
"kind": "direct",
"source": {
"type": "hosted",
"description": {
"name": "bar",
"url": "http://localhost:$PORT",
"sha256": "d8f427cae6af20c3915ea195fc8b17f98a4bb333953d418657d83d9f8fb829d7"
}
},
"constraintBumped": "^2.0.0",
"constraintWidened": ">=1.0.0 <3.0.0",
"constraintBumpedIfNeeded": "^2.0.0",
"previousVersion": "1.0.0",
"previousConstraint": "^1.0.0",
"previousSource": {
"type": "hosted",
"description": {
"name": "bar",
"url": "http://localhost:$PORT",
"sha256": "8cd4b5a00de63aa592f4240249affd87abf49de4281233870f22b30919f87d42"
}
}
}
]
}
]
}
-------------------------------- END OF OUTPUT ---------------------------------
## Section apply
$ echo '{"dependencyChanges":[{"name":"foo","version":"3.0.1","constraint":"^3.0.0"},{"name":"bar","version":"2.0.0"}]}' | dependency_services apply
{"dependencies":[]}
-------------------------------- END OF OUTPUT ---------------------------------
$ cat pubspec.yaml
{"name":"app","dependencies":{"foo":^3.0.0,"bar":^2.0.0,"baz":"1.0.0"},"environment":{"sdk":"^3.0.2"}}
$ cat pubspec.lock
# Generated by pub
# See https://dart.dev/tools/pub/glossary#lockfile
packages:
bar:
dependency: "direct main"
description:
name: bar
sha256: d8f427cae6af20c3915ea195fc8b17f98a4bb333953d418657d83d9f8fb829d7
url: "http://localhost:$PORT"
source: hosted
version: "2.0.0"
baz:
dependency: "direct main"
description:
name: baz
sha256: b61dfc82400bc16736afba3958f2c81ff8a5a4b41a31c1b15bdc43a090113cef
url: "http://localhost:$PORT"
source: hosted
version: "1.0.0"
foo:
dependency: "direct main"
description:
name: foo
sha256: "02b6111db259663d77ff60109d07ccf04e216af6d8d31166f55547e5bed89e21"
url: "http://localhost:$PORT"
source: hosted
version: "3.0.1"
sdks:
dart: ">=3.0.2 <4.0.0"