| # GENERATED BY: test/dependency_services/dependency_services_test.dart |
| |
| $ cat pubspec.yaml |
| {"name":"myapp","environment":{"sdk":">=0.1.2 <1.0.0"},"dependencies":{"foo":{"git":{"url":"../foo.git"}},"bar":{"git":{"url":"../bar.git"},"version":"^1.0.0"}}} |
| $ cat pubspec.lock |
| # Generated by pub |
| # See https://dart.dev/tools/pub/glossary#lockfile |
| packages: |
| bar: |
| dependency: "direct main" |
| description: |
| path: "." |
| ref: HEAD |
| resolved-ref: "92cdd4ac724a6da0db2a69ac149820aa220e8518" |
| url: "../bar.git" |
| source: git |
| version: "1.0.0" |
| foo: |
| dependency: "direct main" |
| description: |
| path: "." |
| ref: HEAD |
| resolved-ref: "1ae220cc484311a7a1e2e31d1ccc6ea995acb6ba" |
| url: "../foo.git" |
| source: git |
| version: "1.0.0" |
| sdks: |
| dart: ">=0.1.2 <1.0.0" |
| -------------------------------- END OF OUTPUT --------------------------------- |
| |
| ## Section list |
| $ dependency_services list |
| { |
| "dependencies": [ |
| { |
| "name": "bar", |
| "version": "92cdd4ac724a6da0db2a69ac149820aa220e8518", |
| "kind": "direct", |
| "constraint": "^1.0.0", |
| "source": { |
| "type": "git", |
| "description": { |
| "url": "../bar.git", |
| "ref": "HEAD", |
| "resolved-ref": "92cdd4ac724a6da0db2a69ac149820aa220e8518", |
| "path": "." |
| } |
| } |
| }, |
| { |
| "name": "foo", |
| "version": "1ae220cc484311a7a1e2e31d1ccc6ea995acb6ba", |
| "kind": "direct", |
| "constraint": "any", |
| "source": { |
| "type": "git", |
| "description": { |
| "url": "../foo.git", |
| "ref": "HEAD", |
| "resolved-ref": "1ae220cc484311a7a1e2e31d1ccc6ea995acb6ba", |
| "path": "." |
| } |
| } |
| } |
| ] |
| } |
| |
| -------------------------------- END OF OUTPUT --------------------------------- |
| |
| ## Section report |
| $ dependency_services report |
| { |
| "dependencies": [ |
| { |
| "name": "bar", |
| "version": "92cdd4ac724a6da0db2a69ac149820aa220e8518", |
| "kind": "direct", |
| "source": { |
| "type": "git", |
| "description": { |
| "url": "../bar.git", |
| "ref": "HEAD", |
| "resolved-ref": "92cdd4ac724a6da0db2a69ac149820aa220e8518", |
| "path": "." |
| } |
| }, |
| "latest": "cf473c33e39eeec4615bc2cde8bf68cbb10ad02c", |
| "constraint": "^1.0.0", |
| "compatible": [], |
| "singleBreaking": [ |
| { |
| "name": "bar", |
| "version": "cf473c33e39eeec4615bc2cde8bf68cbb10ad02c", |
| "kind": "direct", |
| "source": { |
| "type": "git", |
| "description": { |
| "url": "../bar.git", |
| "ref": "HEAD", |
| "resolved-ref": "cf473c33e39eeec4615bc2cde8bf68cbb10ad02c", |
| "path": "." |
| } |
| }, |
| "constraintBumped": "^2.0.0", |
| "constraintWidened": ">=1.0.0 <3.0.0", |
| "constraintBumpedIfNeeded": "^2.0.0", |
| "previousVersion": "92cdd4ac724a6da0db2a69ac149820aa220e8518", |
| "previousConstraint": "^1.0.0", |
| "previousSource": { |
| "type": "git", |
| "description": { |
| "url": "../bar.git", |
| "ref": "HEAD", |
| "resolved-ref": "92cdd4ac724a6da0db2a69ac149820aa220e8518", |
| "path": "." |
| } |
| } |
| } |
| ], |
| "multiBreaking": [ |
| { |
| "name": "bar", |
| "version": "cf473c33e39eeec4615bc2cde8bf68cbb10ad02c", |
| "kind": "direct", |
| "source": { |
| "type": "git", |
| "description": { |
| "url": "../bar.git", |
| "ref": "HEAD", |
| "resolved-ref": "cf473c33e39eeec4615bc2cde8bf68cbb10ad02c", |
| "path": "." |
| } |
| }, |
| "constraintBumped": "^2.0.0", |
| "constraintWidened": ">=1.0.0 <3.0.0", |
| "constraintBumpedIfNeeded": "^2.0.0", |
| "previousVersion": "92cdd4ac724a6da0db2a69ac149820aa220e8518", |
| "previousConstraint": "^1.0.0", |
| "previousSource": { |
| "type": "git", |
| "description": { |
| "url": "../bar.git", |
| "ref": "HEAD", |
| "resolved-ref": "92cdd4ac724a6da0db2a69ac149820aa220e8518", |
| "path": "." |
| } |
| } |
| } |
| ] |
| }, |
| { |
| "name": "foo", |
| "version": "1ae220cc484311a7a1e2e31d1ccc6ea995acb6ba", |
| "kind": "direct", |
| "source": { |
| "type": "git", |
| "description": { |
| "url": "../foo.git", |
| "ref": "HEAD", |
| "resolved-ref": "1ae220cc484311a7a1e2e31d1ccc6ea995acb6ba", |
| "path": "." |
| } |
| }, |
| "latest": "ad2d659389d4475f6c3a34282e2204160b753fd9", |
| "constraint": "any", |
| "compatible": [], |
| "singleBreaking": [], |
| "multiBreaking": [ |
| { |
| "name": "foo", |
| "version": "ad2d659389d4475f6c3a34282e2204160b753fd9", |
| "kind": "direct", |
| "source": { |
| "type": "git", |
| "description": { |
| "url": "../foo.git", |
| "ref": "HEAD", |
| "resolved-ref": "ad2d659389d4475f6c3a34282e2204160b753fd9", |
| "path": "." |
| } |
| }, |
| "constraintBumped": "^2.0.0", |
| "constraintWidened": "any", |
| "constraintBumpedIfNeeded": "any", |
| "previousVersion": "1ae220cc484311a7a1e2e31d1ccc6ea995acb6ba", |
| "previousConstraint": "any", |
| "previousSource": { |
| "type": "git", |
| "description": { |
| "url": "../foo.git", |
| "ref": "HEAD", |
| "resolved-ref": "1ae220cc484311a7a1e2e31d1ccc6ea995acb6ba", |
| "path": "." |
| } |
| } |
| } |
| ] |
| } |
| ] |
| } |
| |
| -------------------------------- END OF OUTPUT --------------------------------- |
| |
| ## Section apply |
| $ echo '{"dependencyChanges":[{"name":"foo","version":"ad2d659389d4475f6c3a34282e2204160b753fd9"}]}' | dependency_services apply |
| {"dependencies":[]} |
| |
| -------------------------------- END OF OUTPUT --------------------------------- |
| |
| $ cat pubspec.yaml |
| {"name":"myapp","environment":{"sdk":">=0.1.2 <1.0.0"},"dependencies":{"foo":{"git":{"url":"../foo.git"}},"bar":{"git":{"url":"../bar.git"},"version":"^1.0.0"}}} |
| $ cat pubspec.lock |
| # Generated by pub |
| # See https://dart.dev/tools/pub/glossary#lockfile |
| packages: |
| bar: |
| dependency: "direct main" |
| description: |
| path: "." |
| ref: HEAD |
| resolved-ref: "92cdd4ac724a6da0db2a69ac149820aa220e8518" |
| url: "../bar.git" |
| source: git |
| version: "1.0.0" |
| foo: |
| dependency: "direct main" |
| description: |
| path: "." |
| ref: HEAD |
| resolved-ref: ad2d659389d4475f6c3a34282e2204160b753fd9 |
| url: "../foo.git" |
| source: git |
| version: "2.0.0" |
| sdks: |
| dart: ">=0.1.2 <1.0.0" |