Dont remap dependency sources when building on CI services.

Use `-Dfabric.loom.ci=false` to force disable
This commit is contained in:
modmuss50
2021-01-19 22:15:23 +00:00
parent 58e94f2db3
commit b622544cbe
3 changed files with 17 additions and 3 deletions

View File

@@ -51,6 +51,7 @@ import net.fabricmc.loom.configuration.mods.ModProcessor;
import net.fabricmc.loom.configuration.processors.dependency.ModDependencyInfo;
import net.fabricmc.loom.configuration.processors.dependency.RemapData;
import net.fabricmc.loom.util.Constants;
import net.fabricmc.loom.util.OperatingSystem;
import net.fabricmc.loom.util.SourceRemapper;
@SuppressWarnings("UnstableApiUsage")
@@ -96,7 +97,7 @@ public class ModCompileRemapper {
File remappedSources = info.getRemappedOutput("sources");
if (!remappedSources.exists() || refreshDeps) {
if ((!remappedSources.exists() || refreshDeps) && !OperatingSystem.isCIBuild()) {
File sources = findSources(dependencies, artifact);
if (sources != null) {