Replies: 2 comments
-
Thanks for raising this! We'll need to discuss it with the team, but I do understand your issue. |
Beta Was this translation helpful? Give feedback.
-
Just wanted to add here that, not only do I agree with the above, but I think it would be nice to not have a default package format. I admit that I only used package for JS and Native applications, so my understanding can be wrong, but having the default being a bootstrap script that downloads the dependencies seems like a bit weird (I would expect a package to work offline)... I understand the advantages of doing that vs a fat jar, but I think a user should be forced to explicitly make that decision. Another point (regarding the Target format:
Distribution method:
I think it would be OK if the distribution method was a flag, with a plain file being the default. |
Beta Was this translation helpful? Give feedback.
-
The following is accepted by
scala-cli
without complaints:scala-cli package --license "a" --exit-dialog "b" --docker-from "c" --graalvm-version "d" .
What does it do? Well, it ignores all the options, because the first is for RPM packages, the second for Windows installers, the third for docker, and the last for native image.
In my opinion, the issue is that the different package formats are not selectable arguments, but rather each format has its own set of possible arguments (the
package --help
even groups them by the packaging mode).So maybe it would be beneficial to have something along the lines of:
It still could be useful to have the separate arguments for
--js
and--native
as those are different Scala outputs that are combinable with at least many of the above packaging modes (i.e., it would be possible to have a--js
docker image--native
deb).Maybe it would then also make more sense to name the first example something more generic
package bundle
or something (instead ofjar
) to make it also work for--js
and--native
, but maybepackage jar
,package js
, andpackage native
could also be each their own subcommands.This discussion is motivated by my recent struggles with packaging options:
#1793
#1783
Beta Was this translation helpful? Give feedback.
All reactions