-
Notifications
You must be signed in to change notification settings - Fork 38
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
Coursier Refresh #66
Coursier Refresh #66
Conversation
er1c
commented
Dec 25, 2021
•
edited
Loading
edited
- Moved to GitHub Actions (this is also in Remove travis, add GitHub Actions #67)
- Fix region DNS lookup/add test (this is also in Fix default lookup of s3 region based upon dns lookup and add tests #68)
- Add scripted tests-backed by localstack s3 implementation
- Add coursier custom protocol handler.
- Fix some coursier settings
2ec0710
to
729f5cd
Compare
…n tests * Add coursier custom protocol handler * Add maven-metadata.xml support for Scala Steward compatibility
@tpunder I updated this again with additional documentation on the coursier changes and running tests. This should be a good for a "1.0.0" release. |
83a588c
to
35bac11
Compare
This is really hard to follow. It looks like you have refactored the entire project and maybe fixed some bugs along the way (e.g. dns and coursier).
You also have commits that are stepping over each other. You add |
@tpunder The primary motivation is #63 which requires generating a It also tackles:
After sbt 1.3.x, this plugin "sort of works" with coursier, by just falling back to the ivy resolver. This doesn't really take advantage of the coursier benefits when starting up sbt and resolution speed. There is also significant work to verify sbt plugin compatibility with unit tests - some which are broken in the later sbt 1.6.x releases. I can recreate the branches for easier review, the start is: #67 and #68 DNS Bug:
Which is rooted in this pre-existing behavior changing: https://github.com/tpunder/fm-sbt-s3-resolver/blob/master/src/main/scala/fm/sbt/S3URLHandler.scala#L414-L416 Which I've fixed and added unit tests for. |
This is ready for a rebase. Also, your Coursier package coursier.cache.protocol
import java.net.{URLStreamHandler, URLStreamHandlerFactory}
/**
* This class name must be coursier.cache.protocol.{protocol.capitalize}Handler
*/
class S3Handler extends URLStreamHandlerFactory {
def createURLStreamHandler(protocol: String): URLStreamHandler = {
System.exit(-1)
throw new AssertionError("S3Handler")
}
} |
Hmm not sure, but I definitely get:
If the protocol isn't added, I'll see about flushing out the specific tests in isolation as well |
replacing in piece-meal |