Skip to content

remove various deprecated types and functions - #4146

Merged
thaJeztah merged 5 commits into
docker:masterfrom
thaJeztah:remove_deprecated_bits
Apr 3, 2023
Merged

remove various deprecated types and functions#4146
thaJeztah merged 5 commits into
docker:masterfrom
thaJeztah:remove_deprecated_bits

Conversation

@thaJeztah

@thaJeztahthaJeztah commented Mar 31, 2023

Copy link
Copy Markdown
Member

cli/command/formatter: remove deprecated KubernetesEndpoint

This was deprecated in 467e650 (#3440), which
is part of docker 23.0, so users should have had a chance to migrate.

cli/context/store: remove deprecated error-utilities

These were deprecated in de6020a (#3790), which
is part of docker 23.0, so users should have had a chance to migrate.
This removes IsErrContextDoesNotExist() and IsErrTLSDataDoesNotExist()

cli/context/store: remove deprecated IsErrTLSDataDoesNotExist()

These were deprecated in de6020a (#3790), which
is part of docker 23.0, so users should have had a chance to migrate.

cli/flags: remove deprecated CommonOptions, NewCommonOptions

These were deprecated in 3499669 (#3876), which
is part of docker 23.0, so users should have had a chance to migrate.

cli/context/docker: remove deprecated Endpoint.TLSPassword

This field was deprecated in 15535d4 (#3218), which
is part of docker 23.0, so users should have had a chance to migrate.

cli/config/configfile: remove deprecated StackOrchestrator field

This field was deprecated in 6ea2767 (#3440), which
is part of docker 23.0, so users should have had a chance to migrate.

- Description for the changelog

- A picture of a cute animal (not mandatory but encouraged)

@thaJeztahthaJeztah added this to the v-next milestone Mar 31, 2023
Comment on lines -7 to -9
// InStream is an input stream used by the DockerCli to read user input
// Deprecated: Use github.com/docker/cli/cli/streams.In instead
type InStream = streams.In

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cory pointed out that the deprecation in this package used the wrong format (missing a newline). While most editors/IDEs may pick this up, Golang itself doesn't, which means that pkg.go.dev doesn't show it as deprecated (and Linters may not be warning about it); https://pkg.go.dev/github.com/docker/cli@v24.0.0-beta.1+incompatible/cli/command#InStream

Screenshot 2023-04-01 at 17 46 10

I had a quick look if I could find external consumers of this, and only found 2 (both were using a very old version of docker (1.4.0), so likely no concern, but "just in case";

  • I'll remove this commit from this PR
  • Open a PR to fix the comments (and cherry-pick that into the 23.0 branch)
  • Create a new draft PR to remove this (but for the 25.0 release, and we can merge that once we created the 24.0 branch)

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was deprecated in 467e650, which
is part of docker 23.0, so users should have had a chance to migrate.
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
These were deprecated in de6020a, which
is part of docker 23.0, so users should have had a chance to migrate.
This removes IsErrContextDoesNotExist() and IsErrTLSDataDoesNotExist()
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
These were deprecated in 3499669, which
is part of docker 23.0, so users should have had a chance to migrate.
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This field was deprecated in 15535d4, which
is part of docker 23.0, so users should have had a chance to migrate.
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This field was deprecated in 6ea2767, which
is part of docker 23.0, so users should have had a chance to migrate.
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@thaJeztah
thaJeztahforce-pushed the remove_deprecated_bits branch from 800c3b7 to 66a1c3bCompareApril 1, 2023 18:36
@thaJeztah

Copy link
Copy Markdown
MemberAuthor

@vvoland@laurazard ptal

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

Merging #4146 (66a1c3b) into master (a0756c3) will increase coverage by 0.01%.
The diff coverage is n/a.

Additional details and impacted files
@@ Coverage Diff @@## master #4146 +/- ##
==========================================
+ Coverage 59.03% 59.04% +0.01% 
==========================================
Files 287 287 Lines 24767 24761 -6 ==========================================
Hits 14620 14620 + Misses 9264 9258 -6 
Partials 883 883 

@thaJeztah
thaJeztah merged commit 9ce269f into docker:masterApr 3, 2023
@thaJeztah
thaJeztah deleted the remove_deprecated_bits branch April 3, 2023 12:49
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

impact/deprecationkind/refactorPR's that refactor, or clean-up codestatus/2-code-review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@thaJeztah@codecov-commenter@rumpl@vvoland