Avoid leading dash in cache key. (#67)

Fixes #66.
This commit is contained in:
Predrag Gruevski 2024-03-19 15:33:21 -04:00 committed by GitHub
parent 17d9392a8c
commit c7306483f6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 4 additions and 3 deletions

2
dist/index.js vendored

File diff suppressed because one or more lines are too long

View file

@ -58,7 +58,7 @@ export class RustdocCache {
private async cacheKey(): Promise<string> {
if (!this.__cacheKey) {
this.__cacheKey = [
rustCore.input.getInput("prefix-key") || "",
rustCore.input.getInput("prefix-key") || "semver",
rustCore.input.getInput("shared-key") || this.getRunDependentKey(),
os.platform() as string,
await getRustcVersion(),

View file

@ -3,8 +3,9 @@
"module": "commonjs",
"outDir": "dist",
"strict": true,
"target": "ES2022"
},
"include": [
"src/**/*.ts"
]
],
}