Skip to content

Commit 5d0231e

Browse files
committed
update: add go1.26
1 parent 12cd982 commit 5d0231e

2 files changed

Lines changed: 17 additions & 14 deletions

File tree

install-pkg.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ apt-get install -y flex bc libelf-dev libssl-dev bison
1616
# Install android tools adb
1717
# apt-get install -y adb
1818

19+
# Install ai tools
20+
apt-get install -y ripgrep
21+
1922
# system language
2023
# graphviz use for golang pprof
2124
apt-get install -y golang graphviz

install-virtualenv.sh

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,35 +5,35 @@ set -ex
55
export GOPATH=/opt/go
66
export CGO_ENABLED=0
77
# change go version if upgrade
8-
export GO1_23=go1.23.12
9-
export GO1_25=go1.25.5
8+
export GO1_25=go1.25.7
9+
export GO1_26=go1.26.0
1010

11-
go install golang.org/dl/$GO1_23@latest
1211
go install golang.org/dl/$GO1_25@latest
12+
go install golang.org/dl/$GO1_26@latest
1313

1414
export HOME=/opt/go
15-
$GOPATH/bin/$GO1_23 download && rm -rf $GOPATH/sdk/$GO1_23/$GO1_23.linux-amd64.tar.gz
1615
$GOPATH/bin/$GO1_25 download && rm -rf $GOPATH/sdk/$GO1_25/$GO1_25.linux-amd64.tar.gz
16+
$GOPATH/bin/$GO1_26 download && rm -rf $GOPATH/sdk/$GO1_26/$GO1_26.linux-amd64.tar.gz
1717

1818
# 清理下载器
19-
rm -rf $GOPATH/bin/$GO1_23
2019
rm -rf $GOPATH/bin/$GO1_25
20+
rm -rf $GOPATH/bin/$GO1_26
2121

2222
# 软链大版本 方便升级
2323
cd /opt/go/bin
2424
# 项目稳定版本, 默认
25-
ln -sf /opt/go/sdk/$GO1_23/bin/go go1.23
26-
ln -sf /opt/go/sdk/$GO1_23/bin/go go
27-
# golang最新稳定版
2825
ln -sf /opt/go/sdk/$GO1_25/bin/go go1.25
29-
ln -sf /opt/go/sdk/$GO1_25/bin/go go1
26+
ln -sf /opt/go/sdk/$GO1_25/bin/go go
27+
# golang最新稳定版
28+
ln -sf /opt/go/sdk/$GO1_26/bin/go go1.26
29+
ln -sf /opt/go/sdk/$GO1_26/bin/go go1
3030

3131
cd /opt/go/sdk
32-
ln -sf $GO1_23 go1.23
33-
ln -sf $GO1_23 go
34-
3532
ln -sf $GO1_25 go1.25
36-
ln -sf $GO1_25 go1
33+
ln -sf $GO1_25 go
34+
35+
ln -sf $GO1_26 go1.26
36+
ln -sf $GO1_26 go1
3737

3838
# vscode golang tools, build with latest golang
3939
# https://github.com/golang/vscode-go/blob/master/docs/tools.md
@@ -49,7 +49,7 @@ go1 install github.com/haya14busa/goplay/cmd/goplay@latest
4949
go1 install github.com/fatih/gomodifytags@latest
5050
go1 install github.com/josharian/impl@latest
5151
go1 install github.com/cweill/gotests/gotests@latest
52-
go1 install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.6.1
52+
go1 install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.6.6
5353

5454
# protobuf
5555
# https://github.com/protocolbuffers/protobuf-go

0 commit comments

Comments
 (0)