Scoped directives should not require the --power flag #2600
Replies: 1 comment 1 reply
-
Generally speaking, in the context of SIP, we mark all features separately with RFC tags (check https://github.com/VirtusLab/scala-cli/blob/9f9562062cc9a2a890e1afdc18a4ed802f9d6251/modules/specification-level/src/main/scala/scala/cli/commands/SpecificationLevel.scala) This means all features individually are tagged as such (this includes each sub-command, option, directive and config key, separately). The Now, whether it makes the When an
|
Beta Was this translation helpful? Give feedback.
-
Currently,
publish
directives likepublish.name
force the user to use the--power
flag. I don't think this is a good decisionSay I have a library using scala CLI as a build system with my publish directives in a
publish-conf.scala
(as the recommended setup).With this setup, I cannot simply run
scala-cli build .
, and am forced to runscala-cli --power build .
. In fact, I believe this forces me to use--power
in all commands.This normalizes the usages of
--power
, actually incentivizing users just usescala-cli config power true
, making the flag quite useless in my opinion ("when everyone is super, no one is", and all that).On top of that,
scala-cli publish
already requires the--power
flag anyway, so this is a redundant check.I imagine this is also true for other directives, like the package directives.
Am I missing something? What do you think of changing this behavior?
Beta Was this translation helpful? Give feedback.
All reactions