containerd/archive
Sebastiaan van Stijn 19db697a5a
archive: replace tarName() with filepath.ToSlash()
This code was copied from github.com/moby/moby/pkg/archive;
28842d3f09,
which got later simplified in
a5aed699cf

This patch aligns the containerd implementation with those changes, and uses
filepath.ToSlash() unconditionally on all platforms, as it's a no-op on platforms
that use a forward-slash; https://github.com/golang/go/blob/go1.19/src/path/filepath/path.go#L175-L183

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2022-08-30 15:19:58 +02:00
..
compression Drop deprecated ioutil 2022-07-23 08:36:20 -07:00
tartest Fix annotation typo error 2018-12-14 23:18:42 +08:00
issues_test.go test: use T.TempDir to create temporary test directory 2022-03-15 14:03:50 +08:00
link_default.go archive: use Linkat on FreeBSD for hardlinks 2022-06-09 18:54:09 -07:00
link_freebsd.go archive: use Linkat on FreeBSD for hardlinks 2022-06-09 18:54:09 -07:00
tar_freebsd.go Remove redundant build tags 2021-08-05 22:27:46 -07:00
tar_linux_test.go test: use T.TempDir to create temporary test directory 2022-03-15 14:03:50 +08:00
tar_mostunix.go Run go fmt with Go 1.17 2021-08-22 09:31:50 +09:00
tar_opts_linux.go Remove redundant build tags 2021-08-05 22:27:46 -07:00
tar_opts_windows.go docs: rename main to master 2021-08-10 09:42:16 -07:00
tar_opts.go Implement windowsDiff.Compare via hcsshim/pkg/ociwclayer 2021-04-10 02:02:33 +10:00
tar_test.go archive: Explicitly specify stdio for tar(1) 2022-06-09 18:54:10 -07:00
tar_unix.go archive: replace tarName() with filepath.ToSlash() 2022-08-30 15:19:58 +02:00
tar_windows.go archive: replace tarName() with filepath.ToSlash() 2022-08-30 15:19:58 +02:00
tar.go archive: replace tarName() with filepath.ToSlash() 2022-08-30 15:19:58 +02:00
time_unix.go feat: replace github.com/pkg/errors to errors 2022-01-07 10:27:03 +08:00
time_windows.go Licence header added 2018-02-19 10:32:26 +09:00
time.go Licence header added 2018-02-19 10:32:26 +09:00