Skip to content

Commit 0e42f95

Browse files
authored
Follow location
This commit adds the `--location` flag to the curl calls as some packages seem to return a 302 currently due to the switch from golang.org > go.dev,
1 parent 69e4307 commit 0e42f95

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

install-go.pl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,13 +232,13 @@ sub install_go
232232

233233
if ($EXT eq 'zip')
234234
{
235-
exe(qw(curl -s -o x.zip), $url);
235+
exe(qw(curl -L -s -o x.zip), $url);
236236
exe(qw(unzip x.zip go/bin/* go/pkg/* go/src/*));
237237
unlink 'x.zip';
238238
}
239239
else
240240
{
241-
exe("curl -s \Q$url\E | tar zxf - go/bin go/pkg go/src");
241+
exe("curl -L -s \Q$url\E | tar zxf - go/bin go/pkg go/src");
242242
}
243243

244244
my $goroot_env;

0 commit comments

Comments
 (0)