sbt-native-packager icon indicating copy to clipboard operation
sbt-native-packager copied to clipboard

JDeb packager ignores scoped names

Open ianknowles opened this issue 4 years ago • 2 comments

The JDeb packager still uses the unscoped normalizedName for the .deb archive name, This was fixed more generally in the linux packagers on #188 but still an issue with JDeb. This results in some weirdness like a local deb created as normalizedName_version_arch.deb but published as (Debian / name)_version_arch.deb or (Debian / packageName)_version_arch.deb.

ianknowles avatar Oct 08 '21 15:10 ianknowles

JDeb settings https://github.com/sbt/sbt-native-packager/blob/5ad18e3518b0815b012b15ba65428c7a3fd0d1db/src/main/scala/com/typesafe/sbt/packager/debian/JDebPackaging.scala#L78

vs Native packager settings https://github.com/sbt/sbt-native-packager/blob/5ad18e3518b0815b012b15ba65428c7a3fd0d1db/src/main/scala/com/typesafe/sbt/packager/debian/DebianPlugin.scala#L84

https://github.com/sbt/sbt-native-packager/blob/5ad18e3518b0815b012b15ba65428c7a3fd0d1db/src/main/scala/com/typesafe/sbt/packager/debian/DebianNativePackaging.scala#L63-L69

https://github.com/sbt/sbt-native-packager/blob/5ad18e3518b0815b012b15ba65428c7a3fd0d1db/src/main/scala/com/typesafe/sbt/packager/debian/DebianNativePackaging.scala#L111

ianknowles avatar Oct 08 '21 15:10 ianknowles

Thanks for the detailed report and already finding the issue.

Would you like to open a pull request for this 😊?

muuki88 avatar Oct 08 '21 20:10 muuki88