-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tc.extractZip() failure due to tc.downloadTool() not adding .zip extension #1179
Labels
bug
Something isn't working
Comments
As someone else suggested, this issue might be related to the PowerShell version installed on the runner; supposedly PowerShell 7+ should be able to extract zip files without the proper |
rsenden
added a commit
to fortify/gha-setup-scancentral-client
that referenced
this issue
Sep 14, 2022
dzsquared
added a commit
to Azure/sql-action
that referenced
this issue
Mar 10, 2023
forces a .zip extension on the downloaded item due to inconsistent windows behavior in unzipping files with no extension upstream issue: actions/toolkit#1179
This was referenced Oct 7, 2023
xhyrom
added a commit
to oven-sh/setup-bun
that referenced
this issue
May 8, 2024
Workaround for actions/toolkit#1179 Fixes #79
xhyrom
added a commit
to oven-sh/setup-bun
that referenced
this issue
Jun 21, 2024
* feat: add input bun-version-file (#76) * feat: add input for bun-version-file * docs: update example bun version file * [autofix.ci] apply automated fixes --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> * refactor: reduce read from file code * [autofix.ci] apply automated fixes * feat: read from all known files if not specified * [autofix.ci] apply automated fixes * fix: just continue if file doesnt exist * [autofix.ci] apply automated fixes * fix: return output if found version * [autofix.ci] apply automated fixes * fix: make whitespace in .tool-versions optional * [autofix.ci] apply automated fixes * log loglog * [autofix.ci] apply automated fixes * log log log * [autofix.ci] apply automated fixes * better warnings, fix ci failing * [autofix.ci] apply automated fixes * feat: log obtained version * [autofix.ci] apply automated fixes * build: bump version * [autofix.ci] apply automated fixes * fix: add .zip extension if it's not present Workaround for actions/toolkit#1179 Fixes #79 * [autofix.ci] apply automated fixes * docs: add comment for easier understanding * ci: more readable version * ci: match name * docs: add package.json and .tool-versions to bun-version-file examples * ci: add cache test * ci: install another pkg for cache test * ci: install more pkgs for cache test * ci: block all trusted deps in cache test * ci: more deps for cache test * ci: cache test should cache * refactor: dont try all files if not defined * [autofix.ci] apply automated fixes * ci: remove cache test * feat: support .bunrc * [autofix.ci] apply automated fixes * refactor: .bun-version instead .bunrc * [autofix.ci] apply automated fixes * feat: add bun paths and url to output Fixes #81 * [autofix.ci] apply automated fixes * ci: test for .bun-version * feat: make .bun-version as default in bun-version-file * ci: remove cache before test * ci: remove cache before test * ci: remove cache before test * ci: remove cache before test --------- Co-authored-by: Ade Hery Shopyan <[email protected]> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
rsenden
added a commit
to fortify/github-action
that referenced
this issue
Jun 27, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
If no destination is provided when calling
tc.downloadTool()
, this function defaults to<tempDir>/<uuidv4>
. This creates a destination file that doesn't have any file extension, which can apparently cause a subsequent call totc.extractZip()
to fail, with an error like the following:Expected behavior
After downloading a proper zip-file with
tc.downloadTool()
,tc.extractZip()
should run without any errors.Either:
tc.downloadTool()
should default to a destination file that has the same file extension as provided in the givenurl
tc.extractZip()
should add a.zip
extension if necessaryThe text was updated successfully, but these errors were encountered: