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

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

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-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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-4
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)