Skip to content

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 <github@gone.nl>
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
@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