Skip to content

Commit 2d4c04a

Browse files
committed
fix: lazy-load setupActionsPython
1 parent 664c165 commit 2d4c04a

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

dist/setup_cpp.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/setup_cpp.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/python/python.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,15 @@ import { setupChocoPack } from "../utils/setup/setupChocoPack"
66
import hasha from "hasha"
77
import { join } from "path"
88
import { isCI } from "../utils/env/isci"
9-
import { setupActionsPython } from "./actions_python"
109

1110
export function setupPython(version: string, setupDir: string, arch: string) {
1211
if (!isCI()) {
1312
// TODO parse versoin
1413
return setupPythonViaSystem("", setupDir, arch)
1514
}
1615
try {
16+
// eslint-disable-next-line @typescript-eslint/no-var-requires
17+
const { setupActionsPython } = require("./actions_python") as typeof import("./actions_python")
1718
return setupActionsPython(version, setupDir, arch)
1819
} catch (err) {
1920
return setupPythonViaSystem(version, setupDir, arch)

0 commit comments

Comments
 (0)