Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Kudo committed Sep 13, 2023
1 parent 5adf36f commit be911ca
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions build/fingerprint-post/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -77674,13 +77674,16 @@ async function installSQLiteAsync(packager) {
const message = `Installing ${packageName} (${version}) from cache or with ${packager}`;
return await (0,core.group)(message, async () => {
let libRoot = (0,tool_cache.find)(packageName, version) || undefined;
console.log('ooxx0', libRoot);
if (!libRoot) {
libRoot = await restoreFromCache(packageName, version, packager);
}
console.log('ooxx1', libRoot);
if (!libRoot) {
libRoot = await installPackage(packageName, version, packager);
await saveToCache(packageName, version, packager);
}
console.log('ooxx2', libRoot);
addGlobalNodeSearchPath(libRoot);
return libRoot;
});
Expand Down
3 changes: 3 additions & 0 deletions build/fingerprint/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -77677,13 +77677,16 @@ async function installSQLiteAsync(packager) {
const message = `Installing ${packageName} (${version}) from cache or with ${packager}`;
return await (0,core.group)(message, async () => {
let libRoot = (0,tool_cache.find)(packageName, version) || undefined;
console.log('ooxx0', libRoot);
if (!libRoot) {
libRoot = await restoreFromCache(packageName, version, packager);
}
console.log('ooxx1', libRoot);
if (!libRoot) {
libRoot = await installPackage(packageName, version, packager);
await saveToCache(packageName, version, packager);
}
console.log('ooxx2', libRoot);
addGlobalNodeSearchPath(libRoot);
return libRoot;
});
Expand Down
3 changes: 3 additions & 0 deletions src/sqlite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,16 @@ export async function installSQLiteAsync(packager: string): Promise<string> {

return await group(message, async () => {
let libRoot = findTool(packageName, version) || undefined;
console.log('ooxx0', libRoot);
if (!libRoot) {
libRoot = await restoreFromCache(packageName, version, packager);
}
console.log('ooxx1', libRoot);
if (!libRoot) {
libRoot = await installPackage(packageName, version, packager);
await saveToCache(packageName, version, packager);
}
console.log('ooxx2', libRoot);

addGlobalNodeSearchPath(libRoot);
return libRoot;
Expand Down

0 comments on commit be911ca

Please sign in to comment.