Commit f7758909 authored by kristenk's avatar kristenk Committed by Mikhail Glushenkov
Browse files

Run tar with --force-local on Windows in cabal-tests, to handle colons in paths.

parent 3f36fde9
......@@ -477,7 +477,10 @@ src `archiveTo` dst = do
-- TODO: Consider using the @tar@ library?
let (src_parent, src_dir) = splitFileName src
-- TODO: --format ustar, like createArchive?
tar ["-czf", dst, "-C", src_parent, src_dir]
-- --force-local is necessary for handling colons in Windows paths.
tar $ ["-czf", dst]
++ ["--force-local" | buildOS == Windows]
++ ["-C", src_parent, src_dir]
infixr 4 `archiveTo`
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment