-
Notifications
You must be signed in to change notification settings - Fork 45
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
Add support for Coursier's --extra-jars option #466
Comments
Hey @blmeadows! Nice to see you! I created a PR for adding the new option, you should be able to test it with this version: uses: scala-steward-org/scala-steward-action@snapshots/467 |
My thinking here is that the Coursier that is used by Scala Steward needs to be aware of a protocol handler for GCS and one way to make it aware of it is to add a JAR to Scala Steward's classpath that contains this protocol handler (see https://get-coursier.io/docs/extra.html#extra-protocols and scala-steward-org/scala-steward#2628) and support for What is currently not clear to me is how the additional JAR is downloaded to the action's runner. Can users of the action run |
Yeah, from what I got from Coursier's internal code you need to provide a local directory or jar file, so yes, I suppose doing |
Hmm, I ran
with If it's helpful,
|
🤔 I don't think the |
I don't know. There are two things I would try:
|
Yeah, I think this is correct. According to the Coursier docs, there must be a |
🤔 hmm, this plugin has been in place for our builds for about a year with Coursier enabled and the plugin and resolution of internal dependencies have been working as expected. I tried setting Otherwise, I'll need to check if it's desired for me to dig into this further (by either researching how this works internally without issue or a possible |
It seems to me that as sbt plugin it has other options to provide a |
🤔 Would it help if you just try to install the |
My understanding why Scala Steward does not update dependencies in GCS is the following:
|
I tried before adding |
Hey! I am the author of |
Closing this due to inactivity. Please feel free to re-open it if you deem it appropriate. |
So #467 has been closed and the snapshot version is not available anymore. I wanted to try it out with the Is there any workaround for using Scala Steward through this action and with GAR? |
Hey @laughedelic, I've recreated the PR so the snapshot is available again 😊 |
@alejandrohdezma had some success testing this locally with coursier, could you recreate the pr with --extra-jars? what worked for me:
|
Hey @lgmyrek, sorry, I missed this comment. Just approved CI on your PR so you can test it out |
This has been released as part of the v2.65.0 release |
Hey @alejandrohdezma, I hope you're well!
I am using scala-steward-action for my organization's private repositories, which use sbt-gcs-plugin for resolving private dependencies stored in Google Cloud. The
sbt-gcs-plugin
is added in the meta build of most repos, and an internal sbt plugin is added to the build itself. During the action job run, both thesbt-gcs-plugin
dependency in the meta build and the internal dependencies in the build seem to be ignored, with no errors or logs. Any public dependencies are updated without issue. I asked if anyone dealt with this in the tooling channel of the Scala Discord and came to the conclusion with @fthomas's help that being able to set the Coursier's extra-jars option may get me on the right track (at least until if/when the other additional protocol handler issues are complete).The text was updated successfully, but these errors were encountered: