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 #3762

Merged
merged 1 commit into from
Sep 1, 2022

Conversation

thaJeztah
Copy link
Member

@thaJeztah thaJeztah commented Aug 31, 2022

As it's just an alias for filepath.IsAbs. Also added a normalize step in
TrimBuildFilesFromExcludes, so that callers are not required to first
normalize the path.

We are considering deprecating and/or removing this function in the archive
package, so removing it in the cli code helps transitioning if we decide to
deprecate and/or remove it.

- Description for the changelog

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

As it's just an alias for filepath.IsAbs. Also added a normalize step in
TrimBuildFilesFromExcludes, so that callers are not _required_ to first
normalize the path.

We are considering deprecating and/or removing this function in the archive
package, so removing it in the cli code helps transitioning if we decide to
deprecate and/or remove it.

Signed-off-by: Sebastiaan van Stijn <[email protected]>
@thaJeztah thaJeztah added status/2-code-review area/builder kind/refactor PR's that refactor, or clean-up code labels Aug 31, 2022
@thaJeztah thaJeztah added this to the 22.06.0 milestone Aug 31, 2022
@thaJeztah thaJeztah merged commit 52b89d7 into docker:master Sep 1, 2022
@thaJeztah thaJeztah deleted the no_CanonicalTarNameForPath branch September 1, 2022 20:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/builder kind/refactor PR's that refactor, or clean-up code status/2-code-review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants