Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: replace uses of archive.CanonicalTarNameForPath #11910

Merged
merged 1 commit into from
Jun 17, 2024

Conversation

thaJeztah
Copy link
Member

This function is an alias for filepath.IsAbs and we are considering deprecating and/or removing this function in the archive package, so removing its uses helps transitioning if we decide to deprecate and/or remove it.

docker/cli@fb0788f also added a normalize step in TrimBuildFilesFromExcludes, so that callers are not required to first normalize the path, so the normalizeation may be redunant, but keeping the normalization as this variable is used further down the code.

What I did

Related issue

(not mandatory) A picture of a cute animal, if possible in relation to what you did

This function is an alias for filepath.IsAbs and we are considering deprecating
and/or removing this function in the archive package, so removing its uses
helps transitioning if we decide to deprecate and/or remove it.

[docker/cli@fb0788f] also added a normalize step in TrimBuildFilesFromExcludes,
so that callers are not _required_ to first normalize the path, so the
normalizeation may be redunant, but keeping the normalization as this variable
is used further down the code.

[docker/cli@fb0788f]: docker/cli@fb0788f

Signed-off-by: Sebastiaan van Stijn <[email protected]>
Copy link
Contributor

@glours glours left a comment

Choose a reason for hiding this comment

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

LGTM

@glours glours merged commit 5ec37d0 into docker:main Jun 17, 2024
28 checks passed
@thaJeztah thaJeztah deleted the no_CanonicalTarNameForPath branch June 17, 2024 10:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants