pkg/archive
Ahmet Alp Balkan 588f95dca0 pkg/archive: Canonicalize stored paths
Currently pkg/archive stores nested windows files with
backslashes (e.g. `dir\`, `dir\file.txt`) and this causes
tar not being correctly extracted on Linux daemon.

This change assures we canonicalize all paths to unix
paths and add them to tar with that name independent of platform.

Fixes the following test cases for Windows CI:
- TestBuildAddFileWithWhitespace
- TestBuildCopyFileWithWhitespace
- TestBuildAddDirContentToRoot
- TestBuildAddDirContentToExistingDir
- TestBuildCopyDirContentToRoot
- TestBuildCopyDirContentToExistDir
- TestBuildDockerignore
- TestBuildEnvUsage
- TestBuildEnvUsage2

Signed-off-by: Ahmet Alp Balkan <ahmetalpbalkan@gmail.com>
2015-02-17 16:51:04 -08:00
..
testdata Move archive package into pkg/archive 2014-09-29 23:23:36 -07:00
archive.go pkg/archive: Canonicalize stored paths 2015-02-17 16:51:04 -08:00
archive_test.go Have .dockerignore support Dockerfile/.dockerignore 2015-01-06 10:57:48 -08:00
archive_unix.go pkg/archive: Canonicalize stored paths 2015-02-17 16:51:04 -08:00
archive_unix_test.go pkg/archive: Canonicalize stored paths 2015-02-17 16:51:04 -08:00
archive_windows.go pkg/archive: Canonicalize stored paths 2015-02-17 16:51:04 -08:00
archive_windows_test.go pkg/archive: Canonicalize stored paths 2015-02-17 16:51:04 -08:00
changes.go pkg/archive: sort files 2015-02-06 18:13:57 +01:00
changes_posix_test.go pkg/archive: test that confirms hardlink ordering 2015-02-06 18:14:38 +01:00
changes_test.go pkg/archive: sort files 2015-02-06 18:13:57 +01:00
diff.go Refactor to optimize storage driver ApplyDiff() 2014-12-17 21:54:23 -08:00
diff_test.go archive: add breakout tests 2014-11-25 01:03:41 +02:00
example_changes.go archive: example app for diffing directories 2014-10-29 14:52:59 -04:00
MAINTAINERS Move archive package into pkg/archive 2014-09-29 23:23:36 -07:00
README.md Move archive package into pkg/archive 2014-09-29 23:23:36 -07:00
time_linux.go Move archive package into pkg/archive 2014-09-29 23:23:36 -07:00
time_unsupported.go Move archive package into pkg/archive 2014-09-29 23:23:36 -07:00
utils_test.go Refactor to optimize storage driver ApplyDiff() 2014-12-17 21:54:23 -08:00
wrap.go Move archive package into pkg/archive 2014-09-29 23:23:36 -07:00

This code provides helper functions for dealing with archive files.