mirror of
https://github.com/architectury/architectury-loom.git
synced 2026-03-30 13:05:27 -05:00
Dont remap dependency sources when building on CI services.
Use `-Dfabric.loom.ci=false` to force disable
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user