diff --git a/dist/index.js b/dist/index.js index e376dc4..7f3971d 100644 --- a/dist/index.js +++ b/dist/index.js @@ -82722,7 +82722,7 @@ async function getPackageCachePath() { packageCachePath += data.toString(); }, }; - await (0, exec_1.exec)('xmake', ['l', 'core.package.package.installdir'], options); + await (0, exec_1.exec)('xmake', ['l', '-c', 'import("core.package.package"); print(package.installdir())'], options); packageCachePath = packageCachePath.trim(); core.info(`packageCachePath: ${packageCachePath}`); return packageCachePath; diff --git a/src/package-cache.ts b/src/package-cache.ts index d61dd7a..0bd36aa 100644 --- a/src/package-cache.ts +++ b/src/package-cache.ts @@ -22,7 +22,7 @@ async function getPackageCachePath(): Promise { packageCachePath += data.toString(); }, }; - await exec('xmake', ['l', 'core.package.package.installdir'], options); + await exec('xmake', ['l', '-c', 'import("core.package.package"); print(package.installdir())'], options); packageCachePath = packageCachePath.trim(); core.info(`packageCachePath: ${packageCachePath}`); return packageCachePath;