From fed32b961cd94b72eee7440a4072e3afc50e491f Mon Sep 17 00:00:00 2001 From: Hugo van Rijswijk Date: Mon, 10 Jan 2022 17:25:27 +0100 Subject: [PATCH] Fix Scala.JS source map URIs Dotty publishes release versions without a `v` in the tag, but the Scala.JS source map URI configuration is published with a `v` prefix. This causes incorrect source map URLs like: https://raw.githubusercontent.com/lampepfl/dotty/v3.1.0/library/src/scala/IArray.scala (this is in the current releases JAR). This commit fixes the source map URIs to no longer use the `v` prefix. --- project/Build.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project/Build.scala b/project/Build.scala index 5773fab61cdb..ef6781ee199f 100644 --- a/project/Build.scala +++ b/project/Build.scala @@ -828,7 +828,7 @@ object Build { if (isRelease) { val baseURI = (LocalRootProject / baseDirectory).value.toURI val dottyVersion = version.value - Seq(s"-scalajs-mapSourceURI:$baseURI->$dottyGithubRawUserContentUrl/v$dottyVersion/") + Seq(s"-scalajs-mapSourceURI:$baseURI->$dottyGithubRawUserContentUrl/$dottyVersion/") } else { Nil }