From 9cacea1cd6c8585eea9fd7c659b2e4ac44d06a54 Mon Sep 17 00:00:00 2001 From: Johann Dahm Date: Tue, 2 Apr 2024 21:50:29 -0700 Subject: [PATCH] Correct go install instructions Go 1.21+ is required for recent versions of sqlc. This is because it uses components that require the 1.21 toolchain. Coincidentally 1.21 is also when forward compatibility was introduced. --- docs/overview/install.md | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/docs/overview/install.md b/docs/overview/install.md index 4e1f46f535..db25fac41a 100644 --- a/docs/overview/install.md +++ b/docs/overview/install.md @@ -14,20 +14,14 @@ brew install sqlc sudo snap install sqlc ``` -## go install +## go install -### Go >= 1.17: +Installing recent versions of sqlc requires Go 1.21+. ``` go install github.com/sqlc-dev/sqlc/cmd/sqlc@latest ``` -### Go < 1.17: - -``` -go get github.com/sqlc-dev/sqlc/cmd/sqlc -``` - ## Docker ```