Skip to content
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

Fix source map URL #60

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

japgolly
Copy link

Currently I'm seeing the following in the artifacts on Maven Central:

file://localhome/doeraene/projects/scalajs-java-time/java/time/chrono/AbstractChronology.scala

Copy link
Member

@sjrd sjrd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR. This was clearly missing. I have two comments: one nitpick and a more important one.

if (isSnapshot.value)
Seq.empty
else {
val a = baseDirectory.value.toURI
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

baseDirectory depends on the project, whereas the URL is the same for all projects, so this will only work for the root project. Either move those options to the root project only (which is fine because that's the only project that gets published) or apply the following change, so that it would work in all projects:

Suggested change
val a = baseDirectory.value.toURI
val a = (baseDirectory in LocalRootProject).value.toURI

Comment on lines +18 to +20
if (isSnapshot.value)
Seq.empty
else {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In our coding style, if one of the two branches of the if needs braces, then the other one must have braces as well:

Suggested change
if (isSnapshot.value)
Seq.empty
else {
if (isSnapshot.value) {
Seq.empty
} else {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants