@@ -69,16 +69,18 @@ Example
69
69
lab@ubu1:~$
70
70
lab@ubu1:~$ git clone https://github.com/udhos/update-golang
71
71
Cloning into 'update-golang'...
72
- remote: Counting objects: 468, done.
73
- remote: Total 468 (delta 0), reused 0 (delta 0), pack-reused 468
74
- Receiving objects: 100% (468/468), 63.60 KiB | 140.00 KiB/s, done.
75
- Resolving deltas: 100% (244/244), done.
72
+ remote: Counting objects: 481, done.
73
+ remote: Compressing objects: 100% (11/11), done.
74
+ remote: Total 481 (delta 4), reused 9 (delta 2), pack-reused 468
75
+ Receiving objects: 100% (481/481), 70.22 KiB | 125.00 KiB/s, done.
76
+ Resolving deltas: 100% (248/248), done.
76
77
lab@ubu1:~$
77
- lab@ubu1:~$ cd update-golang/
78
+ lab@ubu1:~$ cd update-golang
78
79
lab@ubu1:~/update-golang$ sudo ./update-golang.sh
79
80
update-golang.sh: version 0.15
80
81
update-golang.sh: find_latest: found last release: 1.10.2
81
82
update-golang.sh: user: uid=0(root) gid=0(root) groups=0(root)
83
+ update-golang.sh: RELEASE_LIST=https://golang.org/doc/devel/release.html
82
84
update-golang.sh: SOURCE=https://storage.googleapis.com/golang
83
85
update-golang.sh: DESTINATION=/usr/local
84
86
update-golang.sh: RELEASE=1.10.2
@@ -91,17 +93,7 @@ Example
91
93
update-golang.sh: DEBUG=
92
94
update-golang.sh: will install golang go1.10.2.linux-amd64 as: /usr/local/go
93
95
update-golang.sh: https://storage.googleapis.com/golang/go1.10.2.linux-amd64.tar.gz is remote
94
- --2018-05-08 11:08:00-- https://storage.googleapis.com/golang/go1.10.2.linux-amd64.tar.gz
95
- Resolving storage.googleapis.com (storage.googleapis.com)... 172.217.162.176, 2800:3f0:4001:817::2010
96
- Connecting to storage.googleapis.com (storage.googleapis.com)|172.217.162.176|:443... connected.
97
- HTTP request sent, awaiting response... 200 OK
98
- Length: 132481801 (126M) [application/octet-stream]
99
- Saving to: ‘/usr/local/go1.10.2.linux-amd64.tar.gz’
100
-
101
- /usr/local/go1.10.2.linux-amd64.tar.gz 100%[=====================================================================================>] 126.34M 10.4MB/s in 12s
102
-
103
- 2018-05-08 11:08:13 (10.6 MB/s) - ‘/usr/local/go1.10.2.linux-amd64.tar.gz’ saved [132481801/132481801]
104
-
96
+ update-golang.sh: no need to download - file cached: /usr/local/go1.10.2.linux-amd64.tar.gz
105
97
update-golang.sh: remove_old_link: not found symlink for old install
106
98
update-golang.sh: untar: tar -x -f /usr/local/go1.10.2.linux-amd64.tar.gz
107
99
update-golang.sh: path: removing old settings from: /etc/profile.d/golang_path.sh
@@ -111,10 +103,10 @@ Example
111
103
update-golang.sh: testing: /usr/local/go/bin/go version
112
104
update-golang.sh: go version go1.10.2 linux/amd64
113
105
update-golang.sh: /usr/local/go/bin/go version: SUCCESS
114
- update-golang.sh: testing: /usr/local/go/bin/go run /tmp/hello-tmpkpkMTIlc .go
106
+ update-golang.sh: testing: /usr/local/go/bin/go run /tmp/hello-tmpv1bX1rQN .go
115
107
update-golang.sh: hello, world
116
- update-golang.sh: /usr/local/go/bin/go run /tmp/hello-tmpkpkMTIlc .go: SUCCESS
117
- update-golang.sh: cleanup: /tmp/tmp.IReSzeOpfA
108
+ update-golang.sh: /usr/local/go/bin/go run /tmp/hello-tmpv1bX1rQN .go: SUCCESS
109
+ update-golang.sh: cleanup: /tmp/tmp.tcNY25eXNl
118
110
lab@ubu1:~/update-golang$
119
111
120
112
Customization
0 commit comments