Skip to content

Commit 429ea23

Browse files
Merge pull request #591 from austinvazquez/go-version
chore: update minimum required Go version
2 parents eca0ca4 + dbccaca commit 429ea23

File tree

4 files changed

+16
-13
lines changed

4 files changed

+16
-13
lines changed

docs/getting-started.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ You need to have the following things in order to use firecracker-containerd:
3939
</details>
4040
* git
4141
* A recent installation of [Docker CE](https://docker.com).
42-
* Go 1.13 or later, which you can download from [here](https://golang.org/dl/).
42+
* Go 1.16 or later, which you can download from [here](https://golang.org/dl/).
4343

4444
## Setup
4545

docs/quickstart.md

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,14 @@ files into `/usr/local/bin`.
2828

2929
cd ~
3030

31-
# Install git, Go 1.13, make, curl
31+
# Install git, Go 1.16, make, curl
3232
sudo mkdir -p /etc/apt/sources.list.d
3333
echo "deb http://ftp.debian.org/debian buster-backports main" | \
3434
sudo tee /etc/apt/sources.list.d/buster-backports.list
3535
sudo DEBIAN_FRONTEND=noninteractive apt-get update
3636
sudo DEBIAN_FRONTEND=noninteractive apt-get \
3737
install --yes \
38-
golang-1.13 \
38+
golang-1.16 \
3939
make \
4040
git \
4141
curl \
@@ -44,8 +44,8 @@ sudo DEBIAN_FRONTEND=noninteractive apt-get \
4444
bc \
4545
gnupg
4646

47-
# Debian's Go 1.13 package installs "go" command under /usr/lib/go-1.13/bin
48-
export PATH=/usr/lib/go-1.13/bin:$PATH
47+
# Debian's Go 1.16 package installs "go" command under /usr/lib/go-1.16/bin
48+
export PATH=/usr/lib/go-1.16/bin:$PATH
4949

5050
cd ~
5151

@@ -75,10 +75,9 @@ A similar script to install dependencies for rpm based linux distro e.g. Amazon
7575

7676
cd ~
7777

78-
# Install git, Go 1.13, make, curl
78+
# Install git, make, curl
7979
sudo yum -y update
8080
sudo yum -y install \
81-
golang \
8281
make \
8382
git \
8483
curl \
@@ -88,7 +87,14 @@ sudo yum -y install \
8887
gnupg
8988

9089

91-
# Amazon Linux 2 installs go binary is installed in /usr/bin. So no PATH changes required.
90+
# Amazon Linux 2 packages can sometimes be dated, so let's install using
91+
# the Go installer. The installer will handle any path changes and just
92+
# need to source environment variables afterwards for the existing shell session.
93+
curl -LO https://get.golang.org/$(uname)/go_installer && \
94+
chmod +x go_installer && \
95+
./go_installer -version 1.16 && \
96+
rm go_installer && \
97+
source .bash_profile
9298

9399
cd ~
94100

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
module github.com/firecracker-microvm/firecracker-containerd
22

3+
go 1.16
4+
35
require (
46
github.com/StackExchange/wmi v0.0.0-20181212234831-e0a55b97c705 // indirect
57
github.com/awslabs/tc-redirect-tap v0.0.0-20211025175357-e30dfca224c2
@@ -39,5 +41,3 @@ replace (
3941
google.golang.org/genproto => google.golang.org/genproto v0.0.0-20200224152610-e50cd9704f63
4042
google.golang.org/grpc => google.golang.org/grpc v1.38.1
4143
)
42-
43-
go 1.11

go.sum

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1151,7 +1151,6 @@ golang.org/x/lint v0.0.0-20190930215403-16217165b5de/go.mod h1:6SW0HCj/g11FgYtHl
11511151
golang.org/x/lint v0.0.0-20191125180803-fdd1cda4f05f/go.mod h1:5qLYkcX4OjUUV8bRuDixDT3tpyyb+LUpUlRWLxfhWrs=
11521152
golang.org/x/lint v0.0.0-20200130185559-910be7a94367/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY=
11531153
golang.org/x/lint v0.0.0-20200302205851-738671d3881b/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY=
1154-
golang.org/x/lint v0.0.0-20201208152925-83fdc39ff7b5 h1:2M3HP5CCK1Si9FQhwnzYhXdG6DXeebvUHFpre8QvbyI=
11551154
golang.org/x/lint v0.0.0-20201208152925-83fdc39ff7b5/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY=
11561155
golang.org/x/mobile v0.0.0-20190312151609-d3739f865fa6/go.mod h1:z+o9i4GpDbdi3rU15maQ/Ox0txvL9dWGYEHz965HBQE=
11571156
golang.org/x/mobile v0.0.0-20190719004257-d2bd2a29d028/go.mod h1:E/iHnbuqvinMTCcRqshq8CkpyQDoeVncDDYHnLhea+o=
@@ -1163,7 +1162,6 @@ golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
11631162
golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
11641163
golang.org/x/mod v0.4.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
11651164
golang.org/x/mod v0.4.1/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
1166-
golang.org/x/mod v0.4.2 h1:Gz96sIWK3OalVv/I/qNygP42zyoKp3xptRVCWRFEBvo=
11671165
golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
11681166
golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
11691167
golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
@@ -1451,7 +1449,6 @@ golang.org/x/tools v0.0.0-20210105154028-b0ab187a4818/go.mod h1:emZCQorbCU4vsT4f
14511449
golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
14521450
golang.org/x/tools v0.1.0/go.mod h1:xkSsbof2nBLbhDlRMhhhyNLN/zl3eTqcnHD5viDpcZ0=
14531451
golang.org/x/tools v0.1.1/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk=
1454-
golang.org/x/tools v0.1.5 h1:ouewzE6p+/VEB31YYnTbEJdi8pFqKp4P4n85vwo3DHA=
14551452
golang.org/x/tools v0.1.5/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk=
14561453
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
14571454
golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=

0 commit comments

Comments
 (0)