Skip to content

Commit cfb03af

Browse files
authored
Fix Go downloading issue
$ make mkdir -p go-1.11.5 rm -f go-1.11.5/bin/go Downloading and unpacking Go 1.11.5.linux-amd64 to go-1.11.5 curl -s https://dl.google.com/go/go1.11.5.linux-amd64.tar.gz | tar xf - --strip-components=1 -C go-1.11.5 tar: Archive is compressed. Use -z option tar: Error is not recoverable: exiting now Makefile:29: recipe for target 'go-1.11.5/bin/go' failed make: *** [go-1.11.5/bin/go] Error 2
1 parent 0df2c85 commit cfb03af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ $(GO_DIR)/bin/go:
2929
mkdir -p $(GO_DIR)
3030
rm -f $@
3131
@echo Downloading and unpacking Go $(GO_VERSION) to $(GO_DIR)
32-
curl -s $(GO_DOWNLOAD_URL) | tar xf - --strip-components=1 -C $(GO_DIR)
32+
curl -s $(GO_DOWNLOAD_URL) | tar xfz - --strip-components=1 -C $(GO_DIR)
3333

3434
# Clean up binary
3535
clean:

0 commit comments

Comments
 (0)