mirror of
https://github.com/golangci/golangci-lint-action.git
synced 2026-02-25 17:11:55 +00:00
fix the build
This commit is contained in:
parent
b06e9fe3ea
commit
d0d45f3963
5 changed files with 694 additions and 1665 deletions
1172
dist/post_run/index.js
vendored
1172
dist/post_run/index.js
vendored
File diff suppressed because it is too large
Load diff
1172
dist/run/index.js
vendored
1172
dist/run/index.js
vendored
File diff suppressed because it is too large
Load diff
|
|
@ -10,8 +10,8 @@ function checksumFile(hashName: string, path: string): Promise<string> {
|
|||
return new Promise((resolve, reject) => {
|
||||
const hash = crypto.createHash(hashName)
|
||||
const stream = fs.createReadStream(path)
|
||||
stream.on("error", err => reject(err))
|
||||
stream.on("data", chunk => hash.update(chunk))
|
||||
stream.on("error", (err) => reject(err))
|
||||
stream.on("data", (chunk) => hash.update(chunk))
|
||||
stream.on("end", () => resolve(hash.digest("hex")))
|
||||
})
|
||||
}
|
||||
|
|
|
|||
|
|
@ -125,9 +125,9 @@ async function runLint(lintPath: string, patchPath: string): Promise<void> {
|
|||
const userArgNames = new Set<string>()
|
||||
userArgs
|
||||
.split(/\s/)
|
||||
.map(arg => arg.split(`=`)[0])
|
||||
.filter(arg => arg.startsWith(`-`))
|
||||
.forEach(arg => {
|
||||
.map((arg) => arg.split(`=`)[0])
|
||||
.filter((arg) => arg.startsWith(`-`))
|
||||
.forEach((arg) => {
|
||||
userArgNames.add(arg.replace(`-`, ``))
|
||||
})
|
||||
|
||||
|
|
|
|||
|
|
@ -118,8 +118,9 @@ export async function findLintVersion(): Promise<VersionConfig> {
|
|||
}
|
||||
|
||||
core.info(
|
||||
`Requested golangci-lint '${stringifyVersion(reqLintVersion)}', using '${versionConfig.TargetVersion}', calculation took ${Date.now() -
|
||||
startedAt}ms`
|
||||
`Requested golangci-lint '${stringifyVersion(reqLintVersion)}', using '${versionConfig.TargetVersion}', calculation took ${
|
||||
Date.now() - startedAt
|
||||
}ms`
|
||||
)
|
||||
return versionConfig
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue