Skip to content

Commit a1f9f42

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

File tree

5 files changed

+14
-14
lines changed

5 files changed

+14
-14
lines changed

dist/cache-save/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73693,10 +73693,10 @@ function wellKnownCachePath() {
7369373693
}
7369473694
}
7369573695

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

7370273702
if (!fileHash) {
@@ -73708,8 +73708,8 @@ async function getCacheKey(scarbLockfilePath) {
7370873708
return `scarb-cache-${platform}-${fileHash}`.toLowerCase();
7370973709
}
7371073710

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

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

dist/cache-save/index.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.

dist/setup/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74790,10 +74790,10 @@ function wellKnownCachePath() {
7479074790
}
7479174791
}
7479274792

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

7479974799
if (!fileHash) {
@@ -74805,8 +74805,8 @@ async function getCacheKey(scarbLockfilePath) {
7480574805
return `scarb-cache-${platform}-${fileHash}`.toLowerCase();
7480674806
}
7480774807

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

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

dist/setup/index.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.

lib/cache-utils.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@ function wellKnownCachePath() {
5454
}
5555
}
5656

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

6363
if (!fileHash) {
@@ -69,8 +69,8 @@ export async function getCacheKey(scarbLockfilePath) {
6969
return `scarb-cache-${platform}-${fileHash}`.toLowerCase();
7070
}
7171

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

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

0 commit comments

Comments
 (0)