blob: 3767075d5f17a8f71068078e34362d8a627c893a [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":">=0.1.2 <1.0.0"}}
$ cat pubspec.lock
# Generated by pub
# See https://dart.dev/tools/pub/glossary#lockfile
packages:
bar:
dependency: "direct main"
description:
name: bar
sha256: "4de00552ae3719481f5f0e30b82ecb8b14a62907553b217e7ca178e80625329a"
url: "http://localhost:$PORT"
source: hosted
version: "1.0.0"
baz:
dependency: "direct main"
description:
name: baz
sha256: "377433f0e0aff092191e57de97f5869cad0dd0779ee6d31e7096b84878ca41e8"
url: "http://localhost:$PORT"
source: hosted
version: "1.0.0"
foo:
dependency: "direct main"
description:
name: foo
sha256: "439814f59cbc73e1c28ca5ac6e437d5f2af10dfd18db786ce46fe0663e605ccb"
url: "http://localhost:$PORT"
source: hosted
version: "1.0.0"
sdks:
dart: ">=0.1.2 <1.0.0"
-------------------------------- END OF OUTPUT ---------------------------------
## Section list
$ 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": "4de00552ae3719481f5f0e30b82ecb8b14a62907553b217e7ca178e80625329a"
}
}
},
{
"name": "baz",
"version": "1.0.0",
"kind": "direct",
"constraint": "1.0.0",
"source": {
"type": "hosted",
"description": {
"name": "baz",
"url": "http://localhost:$PORT",
"sha256": "377433f0e0aff092191e57de97f5869cad0dd0779ee6d31e7096b84878ca41e8"
}
}
},
{
"name": "foo",
"version": "1.0.0",
"kind": "direct",
"constraint": "^1.0.0",
"source": {
"type": "hosted",
"description": {
"name": "foo",
"url": "http://localhost:$PORT",
"sha256": "439814f59cbc73e1c28ca5ac6e437d5f2af10dfd18db786ce46fe0663e605ccb"
}
}
}
]
}
-------------------------------- END OF OUTPUT ---------------------------------
## Section report
$ dependency_services report
{
"dependencies": [
{
"name": "bar",
"version": "1.0.0",
"kind": "direct",
"source": {
"type": "hosted",
"description": {
"name": "bar",
"url": "http://localhost:$PORT",
"sha256": "4de00552ae3719481f5f0e30b82ecb8b14a62907553b217e7ca178e80625329a"
}
},
"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": "b8187621010649d6385788d7630adcd88d6548a7938899b6f18820961df3b879"
}
},
"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": "4de00552ae3719481f5f0e30b82ecb8b14a62907553b217e7ca178e80625329a"
}
}
},
{
"name": "foo",
"version": "3.0.1",
"kind": "direct",
"source": {
"type": "hosted",
"description": {
"name": "foo",
"url": "http://localhost:$PORT",
"sha256": "2347a7792f73d0f8cc8aa41d4895317bd1745724b8bc77d8c03faf821c9059b7"
}
},
"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": "439814f59cbc73e1c28ca5ac6e437d5f2af10dfd18db786ce46fe0663e605ccb"
}
}
}
]
},
{
"name": "baz",
"version": "1.0.0",
"kind": "direct",
"source": {
"type": "hosted",
"description": {
"name": "baz",
"url": "http://localhost:$PORT",
"sha256": "377433f0e0aff092191e57de97f5869cad0dd0779ee6d31e7096b84878ca41e8"
}
},
"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": "7474da026b513eafecba9d1c79a8a3b4a9ef5158730e0968383063b3237c5dec"
}
},
"constraintBumped": "^1.1.0",
"constraintWidened": "^1.0.0",
"constraintBumpedIfNeeded": "^1.1.0",
"previousVersion": "1.0.0",
"previousConstraint": "1.0.0",
"previousSource": {
"type": "hosted",
"description": {
"name": "baz",
"url": "http://localhost:$PORT",
"sha256": "377433f0e0aff092191e57de97f5869cad0dd0779ee6d31e7096b84878ca41e8"
}
}
}
],
"multiBreaking": [
{
"name": "baz",
"version": "1.1.0",
"kind": "direct",
"source": {
"type": "hosted",
"description": {
"name": "baz",
"url": "http://localhost:$PORT",
"sha256": "7474da026b513eafecba9d1c79a8a3b4a9ef5158730e0968383063b3237c5dec"
}
},
"constraintBumped": "^1.1.0",
"constraintWidened": "^1.0.0",
"constraintBumpedIfNeeded": "^1.1.0",
"previousVersion": "1.0.0",
"previousConstraint": "1.0.0",
"previousSource": {
"type": "hosted",
"description": {
"name": "baz",
"url": "http://localhost:$PORT",
"sha256": "377433f0e0aff092191e57de97f5869cad0dd0779ee6d31e7096b84878ca41e8"
}
}
}
]
},
{
"name": "foo",
"version": "1.0.0",
"kind": "direct",
"source": {
"type": "hosted",
"description": {
"name": "foo",
"url": "http://localhost:$PORT",
"sha256": "439814f59cbc73e1c28ca5ac6e437d5f2af10dfd18db786ce46fe0663e605ccb"
}
},
"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": "efa386ac7cc7698525e2e820a90e6bcee5d6c071de4315051a0fb2f3aff5d084"
}
},
"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": "439814f59cbc73e1c28ca5ac6e437d5f2af10dfd18db786ce46fe0663e605ccb"
}
}
}
],
"singleBreaking": [
{
"name": "foo",
"version": "2.0.0",
"kind": "direct",
"source": {
"type": "hosted",
"description": {
"name": "foo",
"url": "http://localhost:$PORT",
"sha256": "c3bda774737102f799574749076544dea1a4745b5c38d590d4f206f997bfe8a0"
}
},
"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": "439814f59cbc73e1c28ca5ac6e437d5f2af10dfd18db786ce46fe0663e605ccb"
}
}
}
],
"multiBreaking": [
{
"name": "foo",
"version": "3.0.1",
"kind": "direct",
"source": {
"type": "hosted",
"description": {
"name": "foo",
"url": "http://localhost:$PORT",
"sha256": "2347a7792f73d0f8cc8aa41d4895317bd1745724b8bc77d8c03faf821c9059b7"
}
},
"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": "439814f59cbc73e1c28ca5ac6e437d5f2af10dfd18db786ce46fe0663e605ccb"
}
}
},
{
"name": "bar",
"version": "2.0.0",
"kind": "direct",
"source": {
"type": "hosted",
"description": {
"name": "bar",
"url": "http://localhost:$PORT",
"sha256": "b8187621010649d6385788d7630adcd88d6548a7938899b6f18820961df3b879"
}
},
"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": "4de00552ae3719481f5f0e30b82ecb8b14a62907553b217e7ca178e80625329a"
}
}
}
]
}
]
}
-------------------------------- 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":">=0.1.2 <1.0.0"}}
$ cat pubspec.lock
# Generated by pub
# See https://dart.dev/tools/pub/glossary#lockfile
packages:
bar:
dependency: "direct main"
description:
name: bar
sha256: b8187621010649d6385788d7630adcd88d6548a7938899b6f18820961df3b879
url: "http://localhost:$PORT"
source: hosted
version: "2.0.0"
baz:
dependency: "direct main"
description:
name: baz
sha256: "377433f0e0aff092191e57de97f5869cad0dd0779ee6d31e7096b84878ca41e8"
url: "http://localhost:$PORT"
source: hosted
version: "1.0.0"
foo:
dependency: "direct main"
description:
name: foo
sha256: "2347a7792f73d0f8cc8aa41d4895317bd1745724b8bc77d8c03faf821c9059b7"
url: "http://localhost:$PORT"
source: hosted
version: "3.0.1"
sdks:
dart: ">=0.1.2 <1.0.0"