From bcdb7e650c7aa21e15383e0f65bf1b1bbd479922 Mon Sep 17 00:00:00 2001 From: Carlos A Becker Date: Thu, 28 Jul 2022 09:41:04 -0300 Subject: [PATCH] docs: clarify dir Signed-off-by: Carlos A Becker --- www/docs/customization/build.md | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/www/docs/customization/build.md b/www/docs/customization/build.md index 446b2888367..1825b30c260 100644 --- a/www/docs/customization/build.md +++ b/www/docs/customization/build.md @@ -16,11 +16,6 @@ builds: # Defaults to the binary name. id: "my-build" - # Path to project's (sub)directory containing Go code. - # This is the working directory for the Go build command(s). - # Default is `.`. - dir: go - # Path to main.go file or main package. # Notice: when used with `gomod.proxy`, this must be a package. # @@ -180,6 +175,14 @@ builds: # Defaults to `false`. no_main_check: true + # Path to project's (sub)directory containing Go code. + # This is the working directory for the Go build command(s). + # If dir does not contain a `go.mod` file, and you are using `gomod.proxy`, + # produced binaries will be invalid. + # You would likely want to use `main` instead of this. + # Default is `.`. + dir: go + # Builder allows you to use a different build implementation. # This is a GoReleaser Pro feature. # Valid options are: `go` and `prebuilt`.