Skip to content

Commit f46d6ca

Browse files
committed
work around regression in sbt-native-packager 1.0.5
where some doc tasks were invoking `tar` without any flags at all see scala/scala-dev#74
1 parent d40dd6f commit f46d6ca

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

project/ScalaDist.scala

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,13 @@ object ScalaDist {
6565

6666
// create lib directory by resolving scala-dist's dependencies
6767
// to populate the rest of the distribution, explode scala-dist artifact itself
68-
mappings in Universal ++= createMappingsWith(update.value.toSeq, universalMappings)
68+
mappings in Universal ++= createMappingsWith(update.value.toSeq, universalMappings),
69+
70+
// work around regression in sbt-native-packager 1.0.5 where
71+
// these tasks invoke `tar` without any flags at all
72+
universalArchiveOptions in (UniversalDocs, packageZipTarball) := Seq("--force-local", "-pcvf"),
73+
universalArchiveOptions in (UniversalDocs, packageXzTarball ) := Seq("--force-local", "-pcvf")
74+
6975
)
7076

7177
// private lazy val onWindows = System.getProperty("os.name").toLowerCase(Locale.ENGLISH).contains("windows")

0 commit comments

Comments
 (0)