From 26aec945021412304273f47cbc02c3e96e37ff50 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 18 Aug 2026 18:50:28 +0000 Subject: [PATCH] docs: use 'go build .' in getting-started tutorials 'go build ./...' matches both the main package and the generated package, and Go discards the resulting binaries when building more than one package, so the tutorial step produced no executable. Building the single main package with 'go build .' writes the binary as the tutorials intend. Fixes #4554 Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_01FdtZb2F2AHRqAypxKhbTHn --- docs/tutorials/getting-started-mysql.md | 2 +- docs/tutorials/getting-started-postgresql.md | 2 +- docs/tutorials/getting-started-sqlite.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/tutorials/getting-started-mysql.md b/docs/tutorials/getting-started-mysql.md index 1c436e7e6a..b9f5d0ddf5 100644 --- a/docs/tutorials/getting-started-mysql.md +++ b/docs/tutorials/getting-started-mysql.md @@ -169,7 +169,7 @@ Before this code will compile you'll need to fetch the relevant MySQL driver: ```shell go get github.com/go-sql-driver/mysql -go build ./... +go build . ``` The program should compile without errors. To make that possible, sqlc generates diff --git a/docs/tutorials/getting-started-postgresql.md b/docs/tutorials/getting-started-postgresql.md index a98c32ff37..fc28f7155a 100644 --- a/docs/tutorials/getting-started-postgresql.md +++ b/docs/tutorials/getting-started-postgresql.md @@ -188,7 +188,7 @@ package, but in this tutorial we've used `pgx/v5`: ```shell go get github.com/jackc/pgx/v5 -go build ./... +go build . ``` The program should compile without errors. To make that possible, sqlc generates diff --git a/docs/tutorials/getting-started-sqlite.md b/docs/tutorials/getting-started-sqlite.md index b3c2a570df..9017dd62e4 100644 --- a/docs/tutorials/getting-started-sqlite.md +++ b/docs/tutorials/getting-started-sqlite.md @@ -190,7 +190,7 @@ Before this code will compile you'll need to fetch the relevant SQLite driver: ```shell go get modernc.org/sqlite -go build ./... +go build . ``` The program should compile without errors, and run successfully. To make that