sbt-native-packager
sbt-native-packager copied to clipboard
JDeb packager ignores scoped names
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.
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
Thanks for the detailed report and already finding the issue.
Would you like to open a pull request for this 😊?