Compare commits

..

10 Commits

Author SHA1 Message Date
a12ae43dd8 Add --overwrite flag to tar extraction (#156)
* Add --overwrite flag to tar extraction

There are times when previous actions have already extracted at least
some files to the cache location. This results in subsequent cache
extraction operations to emit errors such as:

> /usr/bin/tar: [dest_file_path]: Cannot open: File exists

This adds the --overwrite flag to the extract call to force tar to
just overwrite these files rather than reporting errors.

Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>

* npm run lint-fix & npm run format

* ignore macOS

Co-authored-by: Sergey Vilgelm <sergey.vilgelm@ibm.com>
2021-02-23 09:00:58 -06:00
f1dee55574 build(deps-dev): bump eslint-config-prettier from 6.15.0 to 8.0.0 (#168)
* build(deps-dev): bump eslint-config-prettier from 6.15.0 to 8.0.0

Bumps [eslint-config-prettier](https://github.com/prettier/eslint-config-prettier) from 6.15.0 to 8.0.0.
- [Release notes](https://github.com/prettier/eslint-config-prettier/releases)
- [Changelog](https://github.com/prettier/eslint-config-prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/eslint-config-prettier/compare/v6.15.0...v8.0.0)

Signed-off-by: dependabot[bot] <support@github.com>

* update .eslintrc.json and re-build

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sergey Vilgelm <sergey.vilgelm@ibm.com>
2021-02-23 07:29:01 -06:00
Zik
23487cb16f Update "version" config in README example (#167)
#98 was closed by #101, but the README still says that only a major-minor version is accepted. It also says that this field is required, but `action.yml` says otherwise. Copy the description from `action.yml` into the README for consistency.
2021-02-23 06:20:09 -06:00
84560243ae build(deps-dev): bump @typescript-eslint/eslint-plugin (#171)
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 2.34.0 to 4.15.1.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.15.1/packages/eslint-plugin)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-02-22 09:22:09 -06:00
3e54e516ae build(deps-dev): bump @types/node from 14.14.28 to 14.14.31 (#170) 2021-02-22 13:40:06 +01:00
2f717c44f2 build(deps-dev): bump @typescript-eslint/parser from 4.15.0 to 4.15.1 (#169) 2021-02-22 13:07:56 +01:00
4a6ab128b0 build(deps-dev): bump @types/node from 14.14.25 to 14.14.28 (#164)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 14.14.25 to 14.14.28.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-02-16 22:39:02 +11:00
f9b6927981 build(deps-dev): bump eslint from 6.8.0 to 7.20.0 (#163)
Bumps [eslint](https://github.com/eslint/eslint) from 6.8.0 to 7.20.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v6.8.0...v7.20.0)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-02-16 22:38:50 +11:00
41858b8c7c build(deps-dev): bump typescript from 4.1.3 to 4.1.5 (#162) 2021-02-16 12:16:09 +01:00
67236c010b build(deps-dev): bump @typescript-eslint/parser from 2.34.0 to 4.15.0 (#161) 2021-02-16 12:15:38 +01:00
7 changed files with 2578 additions and 2330 deletions

View File

@ -15,8 +15,7 @@
"plugin:import/errors",
"plugin:import/warnings",
"plugin:import/typescript",
"plugin:prettier/recommended",
"prettier/@typescript-eslint"
"plugin:prettier/recommended"
],
"plugins": [
"@typescript-eslint",

View File

@ -36,7 +36,7 @@ jobs:
- name: golangci-lint
uses: golangci/golangci-lint-action@v2
with:
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
# Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version
version: v1.29
# Optional: working directory, useful for monorepos

1083
dist/post_run/index.js vendored

File diff suppressed because one or more lines are too long

1083
dist/run/index.js vendored

File diff suppressed because one or more lines are too long

2718
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -37,17 +37,17 @@
"tmp": "^0.2.1"
},
"devDependencies": {
"@types/node": "^14.14.25",
"@types/node": "^14.14.31",
"@types/uuid": "^8.3.0",
"@typescript-eslint/eslint-plugin": "^2.34.0",
"@typescript-eslint/parser": "^2.34.0",
"@typescript-eslint/eslint-plugin": "^4.15.1",
"@typescript-eslint/parser": "^4.15.1",
"@zeit/ncc": "^0.22.3",
"eslint": "^6.6.0",
"eslint-config-prettier": "^6.15.0",
"eslint": "^7.20.0",
"eslint-config-prettier": "^8.0.0",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-prettier": "^3.3.1",
"eslint-plugin-simple-import-sort": "^7.0.0",
"prettier": "^2.2.1",
"typescript": "^4.1.3"
"typescript": "^4.1.5"
}
}

View File

@ -45,7 +45,12 @@ export async function installLint(versionConfig: VersionConfig): Promise<string>
extractedDir = await tc.extractZip(archivePath, process.env.HOME)
repl = /\.zip$/
} else {
extractedDir = await tc.extractTar(archivePath, process.env.HOME)
// We want to always overwrite files if the local cache already has them
const args = ["xz"]
if (process.platform.toString() != "darwin") {
args.push("--overwrite")
}
extractedDir = await tc.extractTar(archivePath, process.env.HOME, args)
}
const urlParts = assetURL.split(`/`)