| # 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":">=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: ea004e8b0069df9e9827b101b64aaad455cc358849f1801dc48a41111cabbe20 |
| url: "http://localhost:$PORT" |
| source: hosted |
| version: "1.2.3" |
| boo: |
| dependency: "direct main" |
| description: |
| name: boo |
| sha256: "7971e197614f18130070007a54f446366c6e594f0ed159ae2c4e2b42972c426b" |
| url: "http://localhost:$PORT" |
| source: hosted |
| version: "1.2.3" |
| 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": "bar", |
| "version": "1.2.3", |
| "kind": "direct", |
| "constraint": "^1.0.0", |
| "source": { |
| "type": "hosted", |
| "description": { |
| "name": "bar", |
| "url": "http://localhost:$PORT", |
| "sha256": "ea004e8b0069df9e9827b101b64aaad455cc358849f1801dc48a41111cabbe20" |
| } |
| } |
| }, |
| { |
| "name": "boo", |
| "version": "1.2.3", |
| "kind": "direct", |
| "constraint": "^1.0.0", |
| "source": { |
| "type": "hosted", |
| "description": { |
| "name": "boo", |
| "url": "http://localhost:$PORT", |
| "sha256": "7971e197614f18130070007a54f446366c6e594f0ed159ae2c4e2b42972c426b" |
| } |
| } |
| }, |
| { |
| "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": "bar", |
| "version": "1.2.3", |
| "kind": "direct", |
| "source": { |
| "type": "hosted", |
| "description": { |
| "name": "bar", |
| "url": "http://localhost:$PORT", |
| "sha256": "ea004e8b0069df9e9827b101b64aaad455cc358849f1801dc48a41111cabbe20" |
| } |
| }, |
| "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": "adcfe9ac3d6955fd4332f29f47bf3e814e388e2da7c2bc55d4561971bf8b5335" |
| } |
| }, |
| "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", |
| "sha256": "ea004e8b0069df9e9827b101b64aaad455cc358849f1801dc48a41111cabbe20" |
| } |
| } |
| } |
| ], |
| "multiBreaking": [ |
| { |
| "name": "bar", |
| "version": "2.2.3", |
| "kind": "direct", |
| "source": { |
| "type": "hosted", |
| "description": { |
| "name": "bar", |
| "url": "http://localhost:$PORT", |
| "sha256": "adcfe9ac3d6955fd4332f29f47bf3e814e388e2da7c2bc55d4561971bf8b5335" |
| } |
| }, |
| "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", |
| "sha256": "ea004e8b0069df9e9827b101b64aaad455cc358849f1801dc48a41111cabbe20" |
| } |
| } |
| } |
| ] |
| }, |
| { |
| "name": "boo", |
| "version": "1.2.3", |
| "kind": "direct", |
| "source": { |
| "type": "hosted", |
| "description": { |
| "name": "boo", |
| "url": "http://localhost:$PORT", |
| "sha256": "7971e197614f18130070007a54f446366c6e594f0ed159ae2c4e2b42972c426b" |
| } |
| }, |
| "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": "b060c0315b77c8383da5f9a7eee7667dbdc8108969e0a7855e294e35e7f42230" |
| } |
| }, |
| "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", |
| "sha256": "7971e197614f18130070007a54f446366c6e594f0ed159ae2c4e2b42972c426b" |
| } |
| } |
| } |
| ], |
| "singleBreaking": [ |
| { |
| "name": "boo", |
| "version": "1.2.4", |
| "kind": "direct", |
| "source": { |
| "type": "hosted", |
| "description": { |
| "name": "boo", |
| "url": "http://localhost:$PORT", |
| "sha256": "b060c0315b77c8383da5f9a7eee7667dbdc8108969e0a7855e294e35e7f42230" |
| } |
| }, |
| "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", |
| "sha256": "7971e197614f18130070007a54f446366c6e594f0ed159ae2c4e2b42972c426b" |
| } |
| } |
| } |
| ], |
| "multiBreaking": [ |
| { |
| "name": "boo", |
| "version": "1.2.4", |
| "kind": "direct", |
| "source": { |
| "type": "hosted", |
| "description": { |
| "name": "boo", |
| "url": "http://localhost:$PORT", |
| "sha256": "b060c0315b77c8383da5f9a7eee7667dbdc8108969e0a7855e294e35e7f42230" |
| } |
| }, |
| "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", |
| "sha256": "7971e197614f18130070007a54f446366c6e594f0ed159ae2c4e2b42972c426b" |
| } |
| } |
| } |
| ] |
| }, |
| { |
| "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": [ |
| { |
| "name": "foo", |
| "version": "1.2.4", |
| "kind": "direct", |
| "source": { |
| "type": "hosted", |
| "description": { |
| "name": "foo", |
| "url": "http://localhost:$PORT", |
| "sha256": "88f2f9251967bf04bd478873f074b9d8df9f1c959afc150ba3b0ea813d48161e" |
| } |
| }, |
| "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", |
| "sha256": "1614d63c0867d0994f75a231be7ee394a4f30cdeede4c7ea471fcad354c23d1f" |
| } |
| } |
| } |
| ], |
| "singleBreaking": [ |
| { |
| "name": "foo", |
| "version": "2.2.3", |
| "kind": "direct", |
| "source": { |
| "type": "hosted", |
| "description": { |
| "name": "foo", |
| "url": "http://localhost:$PORT", |
| "sha256": "bf378a3f6c4840f911d66ab375f6d3eae78a015a41f0b8b202c31d4af010892e" |
| } |
| }, |
| "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" |
| } |
| } |
| } |
| ], |
| "multiBreaking": [ |
| { |
| "name": "foo", |
| "version": "2.2.3", |
| "kind": "direct", |
| "source": { |
| "type": "hosted", |
| "description": { |
| "name": "foo", |
| "url": "http://localhost:$PORT", |
| "sha256": "bf378a3f6c4840f911d66ab375f6d3eae78a015a41f0b8b202c31d4af010892e" |
| } |
| }, |
| "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" |
| } |
| } |
| } |
| ] |
| } |
| ] |
| } |
| |
| -------------------------------- 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":">=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: ea004e8b0069df9e9827b101b64aaad455cc358849f1801dc48a41111cabbe20 |
| url: "http://localhost:$PORT" |
| source: hosted |
| version: "1.2.3" |
| boo: |
| dependency: "direct main" |
| description: |
| name: boo |
| sha256: "7971e197614f18130070007a54f446366c6e594f0ed159ae2c4e2b42972c426b" |
| url: "http://localhost:$PORT" |
| source: hosted |
| version: "1.2.3" |
| foo: |
| dependency: "direct main" |
| description: |
| name: foo |
| sha256: "88f2f9251967bf04bd478873f074b9d8df9f1c959afc150ba3b0ea813d48161e" |
| url: "http://localhost:$PORT" |
| source: hosted |
| version: "1.2.4" |
| sdks: |
| dart: ">=0.1.2 <1.0.0" |