Skip to content

Commit

Permalink
Merge pull request moby#48001 from thaJeztah/pkg_archive_deprecate_Ca…
Browse files Browse the repository at this point in the history
…nonicalTarNameForPath

pkg/archive: deprecate CanonicalTarNameForPath
  • Loading branch information
AkihiroSuda authored Jun 16, 2024
2 parents 19257ef + 92b8d93 commit ff652c8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/archive/archive.go
Original file line number Diff line number Diff line change
Expand Up @@ -541,8 +541,10 @@ func newTarAppender(idMapping idtools.IdentityMapping, writer io.Writer, chownOp
}

// CanonicalTarNameForPath canonicalizes relativePath to a POSIX-style path using
// forward slashes. It is an alias for filepath.ToSlash, which is a no-op on
// forward slashes. It is an alias for [filepath.ToSlash], which is a no-op on
// Linux and Unix.
//
// Deprecated: use [filepath.ToSlash]. This function will be removed in the next release.
func CanonicalTarNameForPath(relativePath string) string {
return filepath.ToSlash(relativePath)
}
Expand Down

0 comments on commit ff652c8

Please sign in to comment.