| # GENERATED BY: test/dependency_services/dependency_services_test.dart |
| |
| $ cat pubspec.yaml |
| {"name":"app","dependencies":{"foo":"^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: |
| foo: |
| dependency: "direct main" |
| description: |
| name: foo |
| sha256: "1614d63c0867d0994f75a231be7ee394a4f30cdeede4c7ea471fcad354c23d1f" |
| url: "http://localhost:$PORT" |
| source: hosted |
| version: "1.2.3" |
| sdks: |
| dart: ">=0.1.2 <1.0.0" |
| -------------------------------- END OF OUTPUT --------------------------------- |
| |
| ## Section list |
| $ 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": "1614d63c0867d0994f75a231be7ee394a4f30cdeede4c7ea471fcad354c23d1f" |
| } |
| } |
| } |
| ] |
| } |
| |
| -------------------------------- END OF OUTPUT --------------------------------- |
| |
| ## Section report |
| $ dependency_services report |
| { |
| "dependencies": [ |
| { |
| "name": "foo", |
| "version": "1.2.3", |
| "kind": "direct", |
| "source": { |
| "type": "hosted", |
| "description": { |
| "name": "foo", |
| "url": "http://localhost:$PORT", |
| "sha256": "1614d63c0867d0994f75a231be7ee394a4f30cdeede4c7ea471fcad354c23d1f" |
| } |
| }, |
| "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": "fc06d01652f7b73f789abeb5b61aeb68b13cd472f87610cb8fb80e402a9139ff" |
| } |
| }, |
| "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": "1614d63c0867d0994f75a231be7ee394a4f30cdeede4c7ea471fcad354c23d1f" |
| } |
| } |
| }, |
| { |
| "name": "transitive", |
| "version": "1.0.0", |
| "kind": "transitive", |
| "source": { |
| "type": "hosted", |
| "description": { |
| "name": "transitive", |
| "url": "http://localhost:$PORT", |
| "sha256": "8d245de5cde3ab3293e4cdea516c6a0395e24d338688279bab5f6c97bffa0915" |
| } |
| }, |
| "constraintBumped": null, |
| "constraintWidened": null, |
| "constraintBumpedIfNeeded": null, |
| "previousVersion": null, |
| "previousConstraint": null, |
| "previousSource": null |
| } |
| ], |
| "multiBreaking": [ |
| { |
| "name": "foo", |
| "version": "2.2.3", |
| "kind": "direct", |
| "source": { |
| "type": "hosted", |
| "description": { |
| "name": "foo", |
| "url": "http://localhost:$PORT", |
| "sha256": "fc06d01652f7b73f789abeb5b61aeb68b13cd472f87610cb8fb80e402a9139ff" |
| } |
| }, |
| "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": "1614d63c0867d0994f75a231be7ee394a4f30cdeede4c7ea471fcad354c23d1f" |
| } |
| } |
| }, |
| { |
| "name": "transitive", |
| "version": "1.0.0", |
| "kind": "transitive", |
| "source": { |
| "type": "hosted", |
| "description": { |
| "name": "transitive", |
| "url": "http://localhost:$PORT", |
| "sha256": "8d245de5cde3ab3293e4cdea516c6a0395e24d338688279bab5f6c97bffa0915" |
| } |
| }, |
| "constraintBumped": null, |
| "constraintWidened": null, |
| "constraintBumpedIfNeeded": null, |
| "previousVersion": null, |
| "previousConstraint": null, |
| "previousSource": null |
| } |
| ] |
| } |
| ] |
| } |
| |
| -------------------------------- END OF OUTPUT --------------------------------- |
| |
| ## Section apply |
| $ echo '{"dependencyChanges":[{"name":"foo","version":"2.2.3"},{"name":"transitive","version":"1.0.0"}]}' | dependency_services apply |
| {"dependencies":[]} |
| |
| -------------------------------- END OF OUTPUT --------------------------------- |
| |
| $ cat pubspec.yaml |
| {"name":"app","dependencies":{"foo":^2.2.3},"environment":{"sdk":">=0.1.2 <1.0.0"}} |
| $ cat pubspec.lock |
| # Generated by pub |
| # See https://dart.dev/tools/pub/glossary#lockfile |
| packages: |
| foo: |
| dependency: "direct main" |
| description: |
| name: foo |
| sha256: fc06d01652f7b73f789abeb5b61aeb68b13cd472f87610cb8fb80e402a9139ff |
| url: "http://localhost:$PORT" |
| source: hosted |
| version: "2.2.3" |
| transitive: |
| dependency: transitive |
| description: |
| name: transitive |
| sha256: "8d245de5cde3ab3293e4cdea516c6a0395e24d338688279bab5f6c97bffa0915" |
| url: "http://localhost:$PORT" |
| source: hosted |
| version: "1.0.0" |
| sdks: |
| dart: ">=0.1.2 <1.0.0" |