Skip to content

Commit

Permalink
testsute: tar: don't pass --force-local on Windows
Browse files Browse the repository at this point in the history
GNU tar supports the options but other tar's don't. The current Windows
setup on github runners seem to use a tar that doesn't.
  • Loading branch information
ulysses4ever committed Dec 25, 2023
1 parent d3502d2 commit e9ea717
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion cabal-testsuite/src/Test/Cabal/Prelude.hs
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,6 @@ src `archiveTo` dst = do
-- TODO: --format ustar, like createArchive?
-- --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`
Expand Down

0 comments on commit e9ea717

Please sign in to comment.