-
Notifications
You must be signed in to change notification settings - Fork 140
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Log scala-cli version when --log-cli-version is enabled #3614
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -20,7 +20,11 @@ final case class LoggingOptions( | |||||
@Group(HelpGroup.Logging.toString) | ||||||
@Tag(tags.implementation) | ||||||
@HelpMessage("Use progress bars") | ||||||
progress: Option[Boolean] = None | ||||||
progress: Option[Boolean] = None, | ||||||
@Group(HelpGroup.Logging.toString) | ||||||
@Tag(tags.implementation) | ||||||
@HelpMessage("Logs scala-cli version on project build") | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. it still feels hyper-granular to have a command line option just for that... wouldn't it be better to print this when verbosity is set to +1? (as in, just a single There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah, probably too less info for a separate flag. I think it is alos fine with There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yup, adding it to There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Let me see if I can create a separate PR with adding this info in the buildinfo. Reg -v, let me know. It would still be nice to see this info without making any code change in the scripts. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||||||
logCliVersion: Boolean = false | ||||||
) { | ||||||
// format: on | ||||||
|
||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't use
scala-cli
here, as contextually it may be justscala
. What you actually need isscala.cli.ScalaCli.fullRunnerName
... which is unfortunate, since you log it in thebuild
module.You could maybe pass it via
scala.build.input.ScalaCliInvokeData
... See how it's passed around in the code elsewhere. I wonder ifscala.build.input.ScalaCliInvokeData.progName
would be enough...I'm thinking this would look awkward:
We should have the full runner name, so: