-
Notifications
You must be signed in to change notification settings - Fork 49
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
Added version bound check and added slash #643
Conversation
github/src/main/scala/org/typelevel/sbt/TypelevelGitHubPlugin.scala
Outdated
Show resolved
Hide resolved
I've checked this against |
s"${info.browseUrl}/blob/${vh}/€{FILE_PATH}.scala" | ||
else s"${info.browseUrl}/blob/${vh}€{FILE_PATH}.scala" |
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.
Dumb question: what if we just always put the slash? Does it work with 2.12, old 2.13s?
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 wondered about this, then I didn't want to play with 🔥
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.
Conclusion is, while it does double the slash in the link, this appears to be benign and the link still gets to github ok. However, that feels dodgy to me
…scala Added slash on not specified
Applied the desired change (first time using "apply suggestion", that was fun): we now fallback to slash if the patch is not specified. |
Addresses scala/bug#12867, ensuring that a slash is added for
2.13.12
and above (assuming that this will also be the case for2.13.13
and2.14.0
etc).