diff --git a/Manual.md b/Manual.md index 86dfeff610..ddb9bec934 100644 --- a/Manual.md +++ b/Manual.md @@ -914,12 +914,11 @@ that do such things as append (`+=`) to variables, should have `make_use_env` set in the body of the template. - `go` For programs written in Go that follow the standard package - structure. The variable `go_import_path` must be set to the package's - import path, e.g. `github.com/github/hub` for the `hub` program. If - the variable `go_get` is set to `yes`, the package will be - downloaded with `go get`. Otherwise (the default) it's expected that - the distfile contains the package. In both cases, dependencies will - be downloaded with `go get`. +structure. The variable `go_import_path` must be set to the package's +import path, e.g. `github.com/github/hub` for the `hub` program. This +information can be found in the `go.mod` file for modern Go projects. +It's expected that the distfile contains the package, but dependencies +will be downloaded with `go get`. - `meta` For `meta-packages`, i.e packages that only install local files or simply depend on additional packages. This build style does not install @@ -1585,10 +1584,6 @@ The following template variables influence how Go packages are built: variable is required. - `go_package`: A space-separated list of import paths of the packages that should be built. Defaults to `go_import_path`. -- `go_get`: If set to yes, the package specified via `go_import_path` - will be downloaded with `go get`. Otherwise, a distfile has to be - provided. This option should only be used with `-git` (or similar) - packages; using a versioned distfile is preferred. - `go_build_tags`: An optional, space-separated list of build tags to pass to Go. - `go_mod_mode`: The module download mode to use. May be `off` to ignore diff --git a/common/build-style/go.sh b/common/build-style/go.sh index c9f476b95c..d18116ee96 100644 --- a/common/build-style/go.sh +++ b/common/build-style/go.sh @@ -15,7 +15,7 @@ do_configure() { if [ "${go_mod_mode}" != "off" ] && [ -f go.mod ]; then # Skip GOPATH symlink for Go modules msg_normal "Building $pkgname using Go modules.\n" - elif [ "${go_get}" != "yes" ]; then + else mkdir -p ${GOSRCPATH%/*}/ ln -fs "$PWD" "${GOSRCPATH}" fi diff --git a/srcpkgs/doctl/template b/srcpkgs/doctl/template index 926126ac0e..a8bff28abc 100644 --- a/srcpkgs/doctl/template +++ b/srcpkgs/doctl/template @@ -5,7 +5,6 @@ revision=1 build_style=go go_import_path="github.com/digitalocean/doctl/cmd/doctl" go_build_tags="v${version}" -go_get="no" short_desc="Command line tool for DigitalOcean services" maintainer="Benjamín Albiñana " license="Apache-2.0" diff --git a/srcpkgs/goimapnotify/template b/srcpkgs/goimapnotify/template index 3e4bd5edfc..2c045c337f 100644 --- a/srcpkgs/goimapnotify/template +++ b/srcpkgs/goimapnotify/template @@ -4,7 +4,6 @@ version=2.0 revision=1 build_style=go go_import_path="gitlab.com/shackra/goimapnotify" -go_get="no" hostmakedepends="git" short_desc="Execute scripts on IMAP idle notifications (Go version)" maintainer="Andrew J. Hesford "