Skip to content

Commit 62a2b22

Browse files
committed
fix: use consistent capitalization in cache key
1 parent a45f3b6 commit 62a2b22

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ function getDestinationDirectory(
3030
): string {
3131
return path.join(
3232
storageDirectory,
33-
slug.owner,
34-
slug.repository,
33+
slug.owner.toLowerCase(),
34+
slug.repository.toLowerCase(),
3535
tag,
3636
`${platform}-${architecture}`
3737
);
@@ -69,8 +69,8 @@ async function installGitHubReleaseBinary(
6969
// so upstream updates are always pulled in.
7070
const cachePaths = [destinationFilename];
7171
const cacheKey = [
72-
targetBinary.slug.owner,
73-
targetBinary.slug.repository,
72+
targetBinary.slug.owner.toLowerCase(),
73+
targetBinary.slug.repository.toLowerCase(),
7474
releaseTag,
7575
targetTriple,
7676
].join("-");

0 commit comments

Comments
 (0)