-
Notifications
You must be signed in to change notification settings - Fork 31
Allow picking up credentials from environment variables #629
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
Conversation
.addDependencies(deps: _*) | ||
.addDependencies(provided: _*) | ||
|
||
if (!sys.env.contains("COURSIER_REPOSITORIES")) { |
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.
FYI: app.env.environmentVariables
should have a copy of environment variables, which can be overridden for e2e tests of the scip-java CLI. Not something we need to think about right now, but one of the core ideas in Moped is that you inject all system dependencies via Application
for cleaner testing.
"COURSIER_CREDENTIALS" -> s"localhost $Username:$Password" | ||
) | ||
|
||
val tmp = os.temp.dir(prefix = "scip-java") |
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.
FYI, we use FileLayout.fromString(..., root = workingDirectory)
in BaseBuildToolSuite
, which makes it easier to create big directory structures without multiple os.write(...)
invocations.
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.
I'll punt this to the next PR for sure 👍
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.
LGTM 👍🏻 Very nice!
.noCredentials
configuration, which was a copypasteTest plan
Manual testing, automated seems to be quite hard to setup (but I will try, still)