-
Notifications
You must be signed in to change notification settings - Fork 230
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve
dart pub outdated
output for discontinued packages (#4046)
- Loading branch information
Showing
4 changed files
with
214 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
154 changes: 154 additions & 0 deletions
154
test/testdata/goldens/outdated/outdated_test/show discontinued with no latest version.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,154 @@ | ||
# GENERATED BY: test/outdated/outdated_test.dart | ||
|
||
## Section 0 | ||
$ pub outdated --json | ||
{ | ||
"packages": [ | ||
{ | ||
"package": "foo", | ||
"kind": "direct", | ||
"isDiscontinued": true, | ||
"current": { | ||
"version": "1.2.3" | ||
}, | ||
"upgradable": { | ||
"version": "1.2.3" | ||
}, | ||
"resolvable": { | ||
"version": "1.2.3" | ||
}, | ||
"latest": null | ||
} | ||
] | ||
} | ||
|
||
-------------------------------- END OF OUTPUT --------------------------------- | ||
|
||
## Section 1 | ||
$ pub outdated --no-color | ||
Showing outdated packages. | ||
[*] indicates versions that are not the latest available. | ||
|
||
Package Name Current Upgradable Resolvable Latest | ||
|
||
direct dependencies: | ||
foo *1.2.3 *1.2.3 *1.2.3 - (discontinued) | ||
You are already using the newest resolvable versions listed in the 'Resolvable' column. | ||
Newer versions, listed in 'Latest', may not be mutually compatible. | ||
|
||
foo | ||
Package foo has been discontinued. See https://dart.dev/go/package-discontinue | ||
|
||
-------------------------------- END OF OUTPUT --------------------------------- | ||
|
||
## Section 2 | ||
$ pub outdated --no-color --no-transitive | ||
Showing outdated packages. | ||
[*] indicates versions that are not the latest available. | ||
|
||
Package Name Current Upgradable Resolvable Latest | ||
|
||
direct dependencies: | ||
foo *1.2.3 *1.2.3 *1.2.3 - (discontinued) | ||
You are already using the newest resolvable versions listed in the 'Resolvable' column. | ||
Newer versions, listed in 'Latest', may not be mutually compatible. | ||
|
||
foo | ||
Package foo has been discontinued. See https://dart.dev/go/package-discontinue | ||
|
||
-------------------------------- END OF OUTPUT --------------------------------- | ||
|
||
## Section 3 | ||
$ pub outdated --no-color --up-to-date | ||
Showing outdated packages. | ||
[*] indicates versions that are not the latest available. | ||
|
||
Package Name Current Upgradable Resolvable Latest | ||
|
||
direct dependencies: | ||
bar 1.0.0 1.0.0 1.0.0 1.0.0 | ||
baz 1.0.0 1.0.0 1.0.0 1.0.0 (discontinued) | ||
foo *1.2.3 *1.2.3 *1.2.3 - (discontinued) | ||
You are already using the newest resolvable versions listed in the 'Resolvable' column. | ||
Newer versions, listed in 'Latest', may not be mutually compatible. | ||
|
||
baz | ||
Package baz has been discontinued, replaced by newbaz. See https://dart.dev/go/package-discontinue | ||
foo | ||
Package foo has been discontinued. See https://dart.dev/go/package-discontinue | ||
|
||
-------------------------------- END OF OUTPUT --------------------------------- | ||
|
||
## Section 4 | ||
$ pub outdated --no-color --prereleases | ||
Showing outdated packages. | ||
[*] indicates versions that are not the latest available. | ||
|
||
Package Name Current Upgradable Resolvable Latest | ||
|
||
direct dependencies: | ||
foo *1.2.3 *1.2.3 *1.2.3 - (discontinued) | ||
You are already using the newest resolvable versions listed in the 'Resolvable' column. | ||
Newer versions, listed in 'Latest', may not be mutually compatible. | ||
|
||
foo | ||
Package foo has been discontinued. See https://dart.dev/go/package-discontinue | ||
|
||
-------------------------------- END OF OUTPUT --------------------------------- | ||
|
||
## Section 5 | ||
$ pub outdated --no-color --no-dev-dependencies | ||
Showing outdated packages. | ||
[*] indicates versions that are not the latest available. | ||
|
||
Package Name Current Upgradable Resolvable Latest | ||
|
||
direct dependencies: | ||
foo *1.2.3 *1.2.3 *1.2.3 - (discontinued) | ||
You are already using the newest resolvable versions listed in the 'Resolvable' column. | ||
Newer versions, listed in 'Latest', may not be mutually compatible. | ||
|
||
foo | ||
Package foo has been discontinued. See https://dart.dev/go/package-discontinue | ||
|
||
-------------------------------- END OF OUTPUT --------------------------------- | ||
|
||
## Section 6 | ||
$ pub outdated --no-color --no-dependency-overrides | ||
Showing outdated packages. | ||
[*] indicates versions that are not the latest available. | ||
|
||
Package Name Current Upgradable Resolvable Latest | ||
|
||
direct dependencies: | ||
foo *1.2.3 *1.2.3 *1.2.3 - (discontinued) | ||
You are already using the newest resolvable versions listed in the 'Resolvable' column. | ||
Newer versions, listed in 'Latest', may not be mutually compatible. | ||
|
||
foo | ||
Package foo has been discontinued. See https://dart.dev/go/package-discontinue | ||
|
||
-------------------------------- END OF OUTPUT --------------------------------- | ||
|
||
## Section 7 | ||
$ pub outdated --json --no-dev-dependencies | ||
{ | ||
"packages": [ | ||
{ | ||
"package": "foo", | ||
"kind": "direct", | ||
"isDiscontinued": true, | ||
"current": { | ||
"version": "1.2.3" | ||
}, | ||
"upgradable": { | ||
"version": "1.2.3" | ||
}, | ||
"resolvable": { | ||
"version": "1.2.3" | ||
}, | ||
"latest": null | ||
} | ||
] | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters