Skip to content

Commit 3566593

Browse files
committed
Simplify naming Lockfile -> Lock
1 parent 2778901 commit 3566593

File tree

5 files changed

+14
-20
lines changed

5 files changed

+14
-20
lines changed

dist/cache-save/index.js

+4-6
Original file line numberDiff line numberDiff line change
@@ -73693,11 +73693,9 @@ function wellKnownCachePath() {
7369373693
}
7369473694
}
7369573695

73696-
async function getCacheKey(scarbLockfilePath) {
73696+
async function getCacheKey(scarbLockPath) {
7369773697
const platform = process.env.RUNNER_OS;
73698-
const fileHash = await glob.hashFiles(
73699-
await getScarbLockfilePath(scarbLockfilePath),
73700-
);
73698+
const fileHash = await glob.hashFiles(await getScarbLockPath(scarbLockPath));
7370173699

7370273700
if (!fileHash) {
7370373701
throw new Error(
@@ -73708,8 +73706,8 @@ async function getCacheKey(scarbLockfilePath) {
7370873706
return `scarb-cache-${platform}-${fileHash}`.toLowerCase();
7370973707
}
7371073708

73711-
async function getScarbLockfilePath(scarbLockfilePath) {
73712-
const lockfilePath = scarbLockfilePath || "Scarb.lock";
73709+
async function getScarbLockPath(scarbLockPath) {
73710+
const lockfilePath = scarbLockPath || "Scarb.lock";
7371373711

7371473712
await fs.access(lockfilePath).catch((_) => {
7371573713
throw new Error("failed to find Scarb.lock");

dist/cache-save/index.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/setup/index.js

+4-6
Original file line numberDiff line numberDiff line change
@@ -74790,11 +74790,9 @@ function wellKnownCachePath() {
7479074790
}
7479174791
}
7479274792

74793-
async function getCacheKey(scarbLockfilePath) {
74793+
async function getCacheKey(scarbLockPath) {
7479474794
const platform = process.env.RUNNER_OS;
74795-
const fileHash = await glob.hashFiles(
74796-
await getScarbLockfilePath(scarbLockfilePath),
74797-
);
74795+
const fileHash = await glob.hashFiles(await getScarbLockPath(scarbLockPath));
7479874796

7479974797
if (!fileHash) {
7480074798
throw new Error(
@@ -74805,8 +74803,8 @@ async function getCacheKey(scarbLockfilePath) {
7480574803
return `scarb-cache-${platform}-${fileHash}`.toLowerCase();
7480674804
}
7480774805

74808-
async function getScarbLockfilePath(scarbLockfilePath) {
74809-
const lockfilePath = scarbLockfilePath || "Scarb.lock";
74806+
async function getScarbLockPath(scarbLockPath) {
74807+
const lockfilePath = scarbLockPath || "Scarb.lock";
7481074808

7481174809
await promises_default().access(lockfilePath).catch((_) => {
7481274810
throw new Error("failed to find Scarb.lock");

dist/setup/index.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/cache-utils.js

+4-6
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,9 @@ function wellKnownCachePath() {
5454
}
5555
}
5656

57-
export async function getCacheKey(scarbLockfilePath) {
57+
export async function getCacheKey(scarbLockPath) {
5858
const platform = process.env.RUNNER_OS;
59-
const fileHash = await glob.hashFiles(
60-
await getScarbLockfilePath(scarbLockfilePath),
61-
);
59+
const fileHash = await glob.hashFiles(await getScarbLockPath(scarbLockPath));
6260

6361
if (!fileHash) {
6462
throw new Error(
@@ -69,8 +67,8 @@ export async function getCacheKey(scarbLockfilePath) {
6967
return `scarb-cache-${platform}-${fileHash}`.toLowerCase();
7068
}
7169

72-
async function getScarbLockfilePath(scarbLockfilePath) {
73-
const lockfilePath = scarbLockfilePath || "Scarb.lock";
70+
async function getScarbLockPath(scarbLockPath) {
71+
const lockfilePath = scarbLockPath || "Scarb.lock";
7472

7573
await fs.access(lockfilePath).catch((_) => {
7674
throw new Error("failed to find Scarb.lock");

0 commit comments

Comments
 (0)