mirror of
https://github.com/actions/setup-go.git
synced 2025-06-30 13:13:43 +00:00
bugs
This commit is contained in:
parent
dc575ee3b3
commit
3c844703e7
5 changed files with 11 additions and 10 deletions
|
@ -27,7 +27,7 @@ function downloadGo(versionSpec, stable) {
|
|||
let match = yield findMatch(versionSpec, stable);
|
||||
if (match) {
|
||||
// download
|
||||
let downloadUrl = `https://storage.googleapis.com/golang/${match.files[0]}`;
|
||||
let downloadUrl = `https://storage.googleapis.com/golang/${match.files[0].filename}`;
|
||||
let downloadPath = yield tc.downloadTool(downloadUrl);
|
||||
// extract
|
||||
let extPath = sys.getPlatform() == 'windows'
|
||||
|
@ -67,7 +67,6 @@ function findMatch(versionSpec, stable) {
|
|||
if (parts.length == 2) {
|
||||
version = version + '.0';
|
||||
}
|
||||
//console.log(version, versionSpec);
|
||||
if (semver.satisfies(version, versionSpec) && candidate.stable == stable) {
|
||||
goFile = candidate.files.find(file => {
|
||||
return file.arch === archFilter && file.os === platFilter;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue