Commit 3566593 1 parent 2778901 commit 3566593 Copy full SHA for 3566593
File tree 5 files changed +14
-20
lines changed
5 files changed +14
-20
lines changed Original file line number Diff line number Diff line change @@ -73693,11 +73693,9 @@ function wellKnownCachePath() {
73693
73693
}
73694
73694
}
73695
73695
73696
- async function getCacheKey(scarbLockfilePath ) {
73696
+ async function getCacheKey(scarbLockPath ) {
73697
73697
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));
73701
73699
73702
73700
if (!fileHash) {
73703
73701
throw new Error(
@@ -73708,8 +73706,8 @@ async function getCacheKey(scarbLockfilePath) {
73708
73706
return `scarb-cache-${platform}-${fileHash}`.toLowerCase();
73709
73707
}
73710
73708
73711
- async function getScarbLockfilePath(scarbLockfilePath ) {
73712
- const lockfilePath = scarbLockfilePath || "Scarb.lock";
73709
+ async function getScarbLockPath(scarbLockPath ) {
73710
+ const lockfilePath = scarbLockPath || "Scarb.lock";
73713
73711
73714
73712
await fs.access(lockfilePath).catch((_) => {
73715
73713
throw new Error("failed to find Scarb.lock");
Original file line number Diff line number Diff line change @@ -74790,11 +74790,9 @@ function wellKnownCachePath() {
74790
74790
}
74791
74791
}
74792
74792
74793
- async function getCacheKey(scarbLockfilePath ) {
74793
+ async function getCacheKey(scarbLockPath ) {
74794
74794
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));
74798
74796
74799
74797
if (!fileHash) {
74800
74798
throw new Error(
@@ -74805,8 +74803,8 @@ async function getCacheKey(scarbLockfilePath) {
74805
74803
return `scarb-cache-${platform}-${fileHash}`.toLowerCase();
74806
74804
}
74807
74805
74808
- async function getScarbLockfilePath(scarbLockfilePath ) {
74809
- const lockfilePath = scarbLockfilePath || "Scarb.lock";
74806
+ async function getScarbLockPath(scarbLockPath ) {
74807
+ const lockfilePath = scarbLockPath || "Scarb.lock";
74810
74808
74811
74809
await promises_default().access(lockfilePath).catch((_) => {
74812
74810
throw new Error("failed to find Scarb.lock");
Original file line number Diff line number Diff line change @@ -54,11 +54,9 @@ function wellKnownCachePath() {
54
54
}
55
55
}
56
56
57
- export async function getCacheKey ( scarbLockfilePath ) {
57
+ export async function getCacheKey ( scarbLockPath ) {
58
58
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 ) ) ;
62
60
63
61
if ( ! fileHash ) {
64
62
throw new Error (
@@ -69,8 +67,8 @@ export async function getCacheKey(scarbLockfilePath) {
69
67
return `scarb-cache-${ platform } -${ fileHash } ` . toLowerCase ( ) ;
70
68
}
71
69
72
- async function getScarbLockfilePath ( scarbLockfilePath ) {
73
- const lockfilePath = scarbLockfilePath || "Scarb.lock" ;
70
+ async function getScarbLockPath ( scarbLockPath ) {
71
+ const lockfilePath = scarbLockPath || "Scarb.lock" ;
74
72
75
73
await fs . access ( lockfilePath ) . catch ( ( _ ) => {
76
74
throw new Error ( "failed to find Scarb.lock" ) ;
You can’t perform that action at this time.
0 commit comments