| # GENERATED BY: test/dependency_services/dependency_services_test.dart |
| |
| $ cat pubspec.yaml |
| {"name":"app","dependencies":{"foo":"^1.0.0","bar":"^1.0.0","boo":"^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 |
| url: "http://localhost:$PORT" |
| source: hosted |
| version: "1.2.3" |
| boo: |
| dependency: "direct main" |
| description: |
| name: boo |
| url: "http://localhost:$PORT" |
| source: hosted |
| version: "1.2.3" |
| foo: |
| dependency: "direct main" |
| description: |
| name: foo |
| url: "http://localhost:$PORT" |
| source: hosted |
| version: "1.2.3" |
| sdks: |
| dart: ">=3.0.2 <4.0.0" |
| -------------------------------- END OF OUTPUT --------------------------------- |
| |
| ## Section list |
| $ echo '' | dependency_services list |
| { |
| "dependencies": [ |
| { |
| "name": "bar", |
| "version": "1.2.3", |
| "kind": "direct", |
| "constraint": "^1.0.0", |
| "source": { |
| "type": "hosted", |
| "description": { |
| "name": "bar", |
| "url": "http://localhost:$PORT" |
| } |
| } |
| }, |
| { |
| "name": "boo", |
| "version": "1.2.3", |
| "kind": "direct", |
| "constraint": "^1.0.0", |
| "source": { |
| "type": "hosted", |
| "description": { |
| "name": "boo", |
| "url": "http://localhost:$PORT" |
| } |
| } |
| }, |
| { |
| "name": "foo", |
| "version": "1.2.3", |
| "kind": "direct", |
| "constraint": "^1.0.0", |
| "source": { |
| "type": "hosted", |
| "description": { |
| "name": "foo", |
| "url": "http://localhost:$PORT" |
| } |
| } |
| } |
| ] |
| } |
| |
| -------------------------------- END OF OUTPUT --------------------------------- |
| |
| ## Section report |
| $ echo '' | dependency_services report |
| { |
| "dependencies": [ |
| { |
| "name": "bar", |
| "version": "1.2.3", |
| "kind": "direct", |
| "source": { |
| "type": "hosted", |
| "description": { |
| "name": "bar", |
| "url": "http://localhost:$PORT" |
| } |
| }, |
| "latest": "2.2.3", |
| "constraint": "^1.0.0", |
| "compatible": [], |
| "singleBreaking": [ |
| { |
| "name": "bar", |
| "version": "2.2.3", |
| "kind": "direct", |
| "source": { |
| "type": "hosted", |
| "description": { |
| "name": "bar", |
| "url": "http://localhost:$PORT", |
| "sha256": "7f5edf6d86145cb08b8c137151a8d59c9973d2a45a46921e2edb61db125e54f4" |
| } |
| }, |
| "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": "bar", |
| "url": "http://localhost:$PORT" |
| } |
| } |
| } |
| ], |
| "multiBreaking": [ |
| { |
| "name": "bar", |
| "version": "2.2.3", |
| "kind": "direct", |
| "source": { |
| "type": "hosted", |
| "description": { |
| "name": "bar", |
| "url": "http://localhost:$PORT", |
| "sha256": "7f5edf6d86145cb08b8c137151a8d59c9973d2a45a46921e2edb61db125e54f4" |
| } |
| }, |
| "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": "bar", |
| "url": "http://localhost:$PORT" |
| } |
| } |
| } |
| ] |
| }, |
| { |
| "name": "boo", |
| "version": "1.2.3", |
| "kind": "direct", |
| "source": { |
| "type": "hosted", |
| "description": { |
| "name": "boo", |
| "url": "http://localhost:$PORT" |
| } |
| }, |
| "latest": "1.2.4", |
| "constraint": "^1.0.0", |
| "compatible": [ |
| { |
| "name": "boo", |
| "version": "1.2.4", |
| "kind": "direct", |
| "source": { |
| "type": "hosted", |
| "description": { |
| "name": "boo", |
| "url": "http://localhost:$PORT", |
| "sha256": "32cfaf6e71b23797af1005b575a2279216b171987093748ff5ca8282fbc991fd" |
| } |
| }, |
| "constraintBumped": "^1.0.0", |
| "constraintWidened": "^1.0.0", |
| "constraintBumpedIfNeeded": "^1.0.0", |
| "previousVersion": "1.2.3", |
| "previousConstraint": "^1.0.0", |
| "previousSource": { |
| "type": "hosted", |
| "description": { |
| "name": "boo", |
| "url": "http://localhost:$PORT" |
| } |
| } |
| } |
| ], |
| "singleBreaking": [ |
| { |
| "name": "boo", |
| "version": "1.2.4", |
| "kind": "direct", |
| "source": { |
| "type": "hosted", |
| "description": { |
| "name": "boo", |
| "url": "http://localhost:$PORT", |
| "sha256": "32cfaf6e71b23797af1005b575a2279216b171987093748ff5ca8282fbc991fd" |
| } |
| }, |
| "constraintBumped": "^1.2.4", |
| "constraintWidened": "^1.0.0", |
| "constraintBumpedIfNeeded": "^1.0.0", |
| "previousVersion": "1.2.3", |
| "previousConstraint": "^1.0.0", |
| "previousSource": { |
| "type": "hosted", |
| "description": { |
| "name": "boo", |
| "url": "http://localhost:$PORT" |
| } |
| } |
| } |
| ], |
| "multiBreaking": [ |
| { |
| "name": "boo", |
| "version": "1.2.4", |
| "kind": "direct", |
| "source": { |
| "type": "hosted", |
| "description": { |
| "name": "boo", |
| "url": "http://localhost:$PORT", |
| "sha256": "32cfaf6e71b23797af1005b575a2279216b171987093748ff5ca8282fbc991fd" |
| } |
| }, |
| "constraintBumped": "^1.2.4", |
| "constraintWidened": "^1.0.0", |
| "constraintBumpedIfNeeded": "^1.0.0", |
| "previousVersion": "1.2.3", |
| "previousConstraint": "^1.0.0", |
| "previousSource": { |
| "type": "hosted", |
| "description": { |
| "name": "boo", |
| "url": "http://localhost:$PORT" |
| } |
| } |
| } |
| ] |
| }, |
| { |
| "name": "foo", |
| "version": "1.2.3", |
| "kind": "direct", |
| "source": { |
| "type": "hosted", |
| "description": { |
| "name": "foo", |
| "url": "http://localhost:$PORT" |
| } |
| }, |
| "latest": "2.2.3", |
| "constraint": "^1.0.0", |
| "compatible": [ |
| { |
| "name": "foo", |
| "version": "1.2.4", |
| "kind": "direct", |
| "source": { |
| "type": "hosted", |
| "description": { |
| "name": "foo", |
| "url": "http://localhost:$PORT", |
| "sha256": "98405f2be818d57d0c01a1252e6bc50c1db9bb69b90557909740083019f214cd" |
| } |
| }, |
| "constraintBumped": "^1.0.0", |
| "constraintWidened": "^1.0.0", |
| "constraintBumpedIfNeeded": "^1.0.0", |
| "previousVersion": "1.2.3", |
| "previousConstraint": "^1.0.0", |
| "previousSource": { |
| "type": "hosted", |
| "description": { |
| "name": "foo", |
| "url": "http://localhost:$PORT" |
| } |
| } |
| } |
| ], |
| "singleBreaking": [ |
| { |
| "name": "foo", |
| "version": "2.2.3", |
| "kind": "direct", |
| "source": { |
| "type": "hosted", |
| "description": { |
| "name": "foo", |
| "url": "http://localhost:$PORT", |
| "sha256": "161f5087dae6dc41086fcac53e2db376488e5fa446f81b4352512917e20ccb0a" |
| } |
| }, |
| "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" |
| } |
| } |
| } |
| ], |
| "multiBreaking": [ |
| { |
| "name": "foo", |
| "version": "2.2.3", |
| "kind": "direct", |
| "source": { |
| "type": "hosted", |
| "description": { |
| "name": "foo", |
| "url": "http://localhost:$PORT", |
| "sha256": "161f5087dae6dc41086fcac53e2db376488e5fa446f81b4352512917e20ccb0a" |
| } |
| }, |
| "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" |
| } |
| } |
| } |
| ] |
| } |
| ] |
| } |
| |
| -------------------------------- END OF OUTPUT --------------------------------- |
| |
| ## Section apply |
| $ echo '{"dependencyChanges":[{"name":"foo","version":"1.2.4"}]}' | dependency_services apply |
| {"dependencies":[]} |
| |
| -------------------------------- END OF OUTPUT --------------------------------- |
| |
| $ cat pubspec.yaml |
| {"name":"app","dependencies":{"foo":"^1.0.0","bar":"^1.0.0","boo":"^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 |
| url: "http://localhost:$PORT" |
| source: hosted |
| version: "1.2.3" |
| boo: |
| dependency: "direct main" |
| description: |
| name: boo |
| url: "http://localhost:$PORT" |
| source: hosted |
| version: "1.2.3" |
| foo: |
| dependency: "direct main" |
| description: |
| name: foo |
| url: "http://localhost:$PORT" |
| source: hosted |
| version: "1.2.4" |
| sdks: |
| dart: ">=3.0.2 <4.0.0" |