fix: resolve PodScaffolder missing workspace path by reading AXHUB_SOURCE_DIR system property instead of just env var
Some checks failed
Deploy to OCIWP / deploy (push) Failing after 23s

This commit is contained in:
jade
2026-08-20 13:31:51 +09:00
parent 400fa3b6c1
commit 4986f9801c

View File

@@ -45,7 +45,10 @@ public class PodScaffolder {
}
public static String scaffoldPod(String moduleName, String portStr, String shortName, String author, String createDate) throws IOException {
String envSourceDir = System.getenv("AXHUB_SOURCE_DIR");
String envSourceDir = System.getProperty("AXHUB_SOURCE_DIR");
if (envSourceDir == null || envSourceDir.isBlank()) {
envSourceDir = System.getenv("AXHUB_SOURCE_DIR");
}
Path rootDir = envSourceDir != null ? Paths.get(envSourceDir) : Paths.get(".");
return scaffoldPod(rootDir, moduleName, portStr, shortName, author, createDate);
}