Global configuration #293
Replies: 4 comments 2 replies
-
👍 for not supporting global configuration and perhaps instead supporting a flag to load such shared config. Keep it as simple as possible with no environmental configuration. |
Beta Was this translation helpful? Give feedback.
-
I would rather suggest a way to import shared options from a URL (gist?) or a path on disk. This would allow a form of global configuration by wrapping the standard 👍 for keeping reproducibility - assuming the user has access to the explicitly referenced "shared options" file, they should get the same settings. |
Beta Was this translation helpful? Give feedback.
-
What do you think, would global configuration be of help for secrets, like credentials to company-internal repositories? Or would it be better to keep such things as environment variables or company-internal wrappers to Related to #300 |
Beta Was this translation helpful? Give feedback.
-
Regarding repositories and their credentials: I set For credentials, again in the spirit of #300, it's already a bit of a headache that sbt projects will often refer to files in its credentials text format, Coursier has an env var or properties file, etc.—let's not add fuel to the fire with another place to do that, and cleartext files are an antiquated solution anyway. I have an idea to suggest but I'll elaborate it on #300 to try to keep on the broader topic here. Aside from repo credentials, there is only one thing I've found in my Scala CLI usage so far that I might like to set not locally to projects: ad hoc REPL session defaults. It's very handy to launch 👎🏼 on global configuration for anything that hinders project reproducibility implicitly 👍🏼 for some way to set user preference things globally. But only REPL comes to mind so far, and to me it's a low priority nice-to-have. Perhaps another use case that could apply is if there is ever a |
Beta Was this translation helpful? Give feedback.
-
Should Scala CLI allow to define a global configuration?
On the one side, for ad-hoc scripting, it would be really beneficial if a blank script comes with predefined dependencies etc.
On the other side, this will be a bit problematic for reproducibility.
We can find a middle ground, but first, we need to know if this is something that the community really need.
Beta Was this translation helpful? Give feedback.
All reactions