cli/command, cil/command/image: remove deprecated methods and functions#5876
cli/command, cil/command/image: remove deprecated methods and functions#5876thaJeztah merged 6 commits intodocker:masterfrom
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #5876 +/- ##
==========================================
+ Coverage 59.42% 59.46% +0.04%
==========================================
Files 358 357 -1
Lines 29768 29747 -21
==========================================
Hits 17690 17690
+ Misses 11113 11092 -21
Partials 965 965 🚀 New features to boost your workflow:
|
Testing docker/cli#5876 to remove notary dependency. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Testing docker/cli#5876 to remove notary dependency. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Testing docker/cli#5876 to remove notary dependency. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Testing docker/cli#5876 to remove notary dependency. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
0939e55 to
331753a
Compare
Testing docker/cli#5876 to remove notary dependency. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
e017b03 to
749bea0
Compare
Testing docker/cli#5876 to remove notary dependency. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Testing docker/cli#5876 to remove notary dependency. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
cli-plugins/manager/hooks.go
Outdated
| hooks.PrintNextSteps(dockerCli.Err(), nextSteps) | ||
| hooks.PrintNextSteps(rootCmd.ErrOrStderr(), nextSteps) |
There was a problem hiding this comment.
This is a difference; before this, we would take the Err() output from the CLI, and now we switched to the Cobra cmd's StdErr() - we should look in our code altogether to consider using that (instead of depending on the DockerCLI to provide us the stderr/stdout; I think they're coupled either way.
27de409 to
bb474a6
Compare
88fe1f9 to
0a60a49
Compare
c5dad66 to
45c0ebe
Compare
This method is a shallow wrapper around trust.GetNotaryRepository, but due to its signature resulted in the trust package, and notary dependencies to become a dependency of the CLI. Consequence of this was that cli-plugins, which need the cli/command package, would also get notary and its dependencies as a dependency. It is no longer used, and was deprecated in 9bc16bb. This patch removes the NotaryClient method from the interface Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This method is a shallow wrapper around manifeststore.NewStore, but due to its signature resulted in various dependencies becoming a dependency of the "command" package. Consequence of this was that cli-plugins, which need the cli/command package, would also get those dependencies. It is no longer used, and was deprecated in e32d5d5. This patch removes the ManifestStore method from the interface Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This method was a shallow wrapper around registryclient.NewRegistryClient but due to its signature resulted in various dependencies becoming a dependency of the "command" package. Consequence of this was that cli-plugins, which need the cli/command package, would also get those dependencies. It is no longer used, and was deprecated in 8ad0721. This patch removes the RegistryClient method from the interface Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This function was only used by "docker trust sign", and has no known external consumers. It was deprecated in c6f456b; this commit removes it. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This function was only used internally, and has no known external consumers. It was deprecated in d804360; this commit removes it. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This function was only used internally, and has no known external consumers. It was deprecated in e37d814; this commit removes it. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Testing docker/cli#5876 to remove notary dependency. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
tianon
left a comment
There was a problem hiding this comment.
Surprising nobody (and I'm not a maintainer here, so FWIW), this LGTM 😇
|
Thanks both! I'll wait for others to have a last look Tomorrow before merging, but looks like we can go ahead. For others visiting this PR; removing these methods technically is a "breaking" change, so would require a major version update. However, the The features removed here specifically were intended for internal use in the CLI itself, and not for external consumers, but had a big impact on every (cli-plugin) user that used the docker/cli as dependency. I did a search through public repositories, and could not find any consumer of these functions (and I would not expect any user of out code to actually be using these), so removing these should very unlikely impact any user of the code, other than in a "positive" way of many (indirect) dependencies being removed 🎉 |
|
Let me bring this one in 👍 |
cli/command: remove deprecated NotaryClient from CLI interface
This method is a shallow wrapper around trust.GetNotaryRepository, but
due to its signature resulted in the trust package, and notary dependencies
to become a dependency of the CLI. Consequence of this was that cli-plugins,
which need the cli/command package, would also get notary and its
dependencies as a dependency. It is no longer used, and was deprecated
in 9bc16bb.
This patch removes the NotaryClient method from the interface
cli/command: remove deprecated ManifestStore from CLI interface
This method is a shallow wrapper around manifeststore.NewStore, but
due to its signature resulted in various dependencies becoming a dependency
of the "command" package. Consequence of this was that cli-plugins, which
need the cli/command package, would also get those dependencies. It is no
longer used, and was deprecated in e32d5d5.
This patch removes the ManifestStore method from the interface
cli/command: remove deprecated RegistryClient from CLI interface
This method was a shallow wrapper around registryclient.NewRegistryClient but
due to its signature resulted in various dependencies becoming a dependency
of the "command" package. Consequence of this was that cli-plugins, which
need the cli/command package, would also get those dependencies. It is no
longer used, and was deprecated in 8ad0721.
This patch removes the RegistryClient method from the interface
cli/command/image: remove deprecated TrustedPush
This function was only used by "docker trust sign", and has no known external
consumers. It was deprecated in c6f456b;
this commit removes it.
cli/command/image: remove deprecated PushTrustedReference
This function was only used internally, and has no known external consumers.
It was deprecated in d804360; this commit
removes it.
cli/command/image: remove deprecated TagTrusted
This function was only used internally, and has no known external consumers.
It was deprecated in e37d814; this commit
removes it.
- Human readable description for the release notes
- A picture of a cute animal (not mandatory but encouraged)