mirror of
https://github.com/golangci/golangci-lint-action.git
synced 2026-07-18 13:28:10 +00:00
Vendored
+1
-1
@@ -27904,7 +27904,7 @@ function buildCacheKeys() {
|
|||||||
keys.push(cacheKey);
|
keys.push(cacheKey);
|
||||||
if (yield pathExists(`go.mod`)) {
|
if (yield pathExists(`go.mod`)) {
|
||||||
// Add checksum to key to invalidate a cache when dependencies change.
|
// Add checksum to key to invalidate a cache when dependencies change.
|
||||||
cacheKey += yield checksumFile(`cache-key`, `go.mod`);
|
cacheKey += yield checksumFile(`sha1`, `go.mod`);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
cacheKey += `nogomod`;
|
cacheKey += `nogomod`;
|
||||||
|
|||||||
Vendored
+1
-1
@@ -27916,7 +27916,7 @@ function buildCacheKeys() {
|
|||||||
keys.push(cacheKey);
|
keys.push(cacheKey);
|
||||||
if (yield pathExists(`go.mod`)) {
|
if (yield pathExists(`go.mod`)) {
|
||||||
// Add checksum to key to invalidate a cache when dependencies change.
|
// Add checksum to key to invalidate a cache when dependencies change.
|
||||||
cacheKey += yield checksumFile(`cache-key`, `go.mod`);
|
cacheKey += yield checksumFile(`sha1`, `go.mod`);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
cacheKey += `nogomod`;
|
cacheKey += `nogomod`;
|
||||||
|
|||||||
+1
-1
@@ -42,7 +42,7 @@ async function buildCacheKeys(): Promise<string[]> {
|
|||||||
|
|
||||||
if (await pathExists(`go.mod`)) {
|
if (await pathExists(`go.mod`)) {
|
||||||
// Add checksum to key to invalidate a cache when dependencies change.
|
// Add checksum to key to invalidate a cache when dependencies change.
|
||||||
cacheKey += await checksumFile(`cache-key`, `go.mod`)
|
cacheKey += await checksumFile(`sha1`, `go.mod`)
|
||||||
} else {
|
} else {
|
||||||
cacheKey += `nogomod`
|
cacheKey += `nogomod`
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user