Skip to content

@actions/tool-cache downloadTool does not save file with file extension #60

@warrenbuckley

Description

@warrenbuckley

I am trying to write a GitHub action tool to download & setup Nuget.exe however by passing the URL

const nugetPath = await tc.downloadTool("https://dist.nuget.org/win-x86-commandline/latest/nuget.exe");

This saves the file as something like this
temp/b438b0f2-af22-456a-8a77-ddc4152465b9 minus the .exe file extension

I could workaround it by manually renaming it with using NodeJS fs APIs but this feels a bit wrong to me.

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions