Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update go version requirement to 1.21.x in docs #303

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions docs/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -455,11 +455,11 @@ echo 'kernel.unprivileged_userns_clone=1' > /etc/sysctl.d/userns.conf
If any dependencies cannot be installed or are not sufficiently current, they have to be built from source.
This will mainly affect Debian, Ubuntu, and related distributions, or RHEL where no subscription is active (e.g. Cloud VMs).

#### golang
#### Golang

Be careful to double-check that the version of golang is new enough (i.e. `go version`), as of January 2022 version is 1.16.x or higher is required.
Be careful to double-check that the version of Golang is new enough (i.e., `go version`). As of May 2024, version 1.21.x or higher is required.
The current minimum required version can always be found in the [go.mod](https://github.com/containers/podman/blob/main/go.mod) file.
If needed, golang kits are available at https://golang.org/dl/. Alternatively, go can be built from source as follows
If needed, Golang kits are available at https://golang.org/dl/. Alternatively, go can be built from source as follows
(it's helpful to leave the system-go installed, to avoid having to [bootstrap go](https://golang.org/doc/install/source):

```bash
Expand Down Expand Up @@ -522,7 +522,7 @@ apt-get install -y \

### Get Source Code

First, ensure that the `go version` that is found first on the $PATH is 1.16.x or higher. Instruction [above](#golang) will help you compile newer version of Go if needed. Then we can build Podman:
First, ensure that the `go version` that is found first on the $PATH is 1.21.x or higher. Instruction [above](#golang) will help you compile newer version of Go if needed. Then we can build Podman:

```bash
git clone https://github.com/containers/podman/
Expand Down