Replace http->https in URLs in DependencyMetadata for some Forges#3583
Replace http->https in URLs in DependencyMetadata for some Forges#3583danicheg wants to merge 4 commits intoscala-steward-org:mainfrom
DependencyMetadata for some Forges#3583Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3583 +/- ##
==========================================
+ Coverage 89.80% 89.86% +0.06%
==========================================
Files 174 174
Lines 5031 5061 +30
Branches 493 488 -5
==========================================
+ Hits 4518 4548 +30
Misses 513 513 ☔ View full report in Codecov by Sentry. |
If Scala Steward shows/uses more URLs, that is a good thing because those links in PR descriptions are really valuable. 👍 But I'm unsure about tying this to the forges Scala Steward supports. I could imagine there being other sites where we would like to replace |
Heh, that was exactly what I was trying to bypass. When I found What about other sites, it shouldn't be that difficult to add specific support as a predefined |
Hey there. Sorry for not starting with some discussion somewhere in Discord, hopefully, this PR is also fine to discuss the idea.
Motivation
We use
org.scalasteward.core.util.UrlCheckerto validate URLs in several places, such as inorg.scalasteward.core.nurture.UpdateInfoUrlFinder. In turn, some projects may haveHomePageandScmUrlfor github.com, gitlab.com and bitbucket.org with thehttpscheme. Given how we check for URL existence, the check easily returns false, even though all the mentionedForges forward to thehttpsscheme.Ultimately, I think having this strict check might be reasonable (since we have different usage of it across the codebase), as well as automatically substituting
httpwithhttpswhen instantiatingorg.scalasteward.core.coursier.DependencyMetadata.I’d appreciate your thoughts on this.