Skip to content

pkg/longpath: deprecate Prefix const, and use early returns in AddPrefix#47996

Merged
thaJeztah merged 2 commits intomoby:masterfrom
thaJeztah:pkg_longpath_deprecate_Prefix
Jun 17, 2024
Merged

pkg/longpath: deprecate Prefix const, and use early returns in AddPrefix#47996
thaJeztah merged 2 commits intomoby:masterfrom
thaJeztah:pkg_longpath_deprecate_Prefix

Conversation

@thaJeztah
Copy link
Copy Markdown
Member

@thaJeztah thaJeztah commented Jun 15, 2024

pkg/longpath: deprecate Prefix const

This const was exported because it was in use by pkg/symlink. This
dependency was removed in a48c6e3,
after which this const was only used internally.

This patch deprecates the const and introduces a non-exported const
to use.

There are no known external consumers of this const, so we may skip
deprecating it.

pkg/longpath: AddPrefix: use early returns

- What I did

- Description for the changelog

deprecate pkg/longpath.Prefix const

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

@thaJeztah thaJeztah added status/2-code-review kind/refactor PR's that refactor, or clean-up code labels Jun 15, 2024
@thaJeztah thaJeztah added this to the 27.0.0 milestone Jun 15, 2024
@thaJeztah thaJeztah self-assigned this Jun 15, 2024
@thaJeztah
Copy link
Copy Markdown
Member Author

@laurazard @vvoland ptal 🤗

Comment thread pkg/longpath/longpath.go
This const was exported because it was in use by pkg/symlink. This
dependency was removed in a48c6e3,
after which this const was only used internally.

This patch deprecates the const and introduces a non-exported const
to use.

There are no known external consumers of this const, so we may skip
deprecating it.

Signed-off-by: Sebastiaan van Stijn <[email protected]>
@thaJeztah thaJeztah force-pushed the pkg_longpath_deprecate_Prefix branch from c1e488e to 48ff86e Compare June 17, 2024 10:04
@laurazard
Copy link
Copy Markdown
Member

There are no known external consumers of this const, so we may skip
deprecating it.

But it looks like the patch deprecates it? I was a little confused 😅

@thaJeztah
Copy link
Copy Markdown
Member Author

But it looks like the patch deprecates it? I was a little confused 😅

😅 sorry poor wording there; I guess I wanted to write; but we could also decide to skip doing a deprecation first.

@thaJeztah thaJeztah merged commit 7012c4a into moby:master Jun 17, 2024
@thaJeztah thaJeztah deleted the pkg_longpath_deprecate_Prefix branch June 17, 2024 11:18
@thaJeztah thaJeztah added impact/deprecation area/go-sdk impact/go-sdk Noteworthy (compatibility changes) in the Go SDK labels Oct 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/go-sdk impact/deprecation impact/go-sdk Noteworthy (compatibility changes) in the Go SDK kind/refactor PR's that refactor, or clean-up code status/2-code-review

Projects

Development

Successfully merging this pull request may close these issues.

3 participants