Index: en_US.ISO8859-1/books/porters-handbook/uses/chapter.xml =================================================================== --- en_US.ISO8859-1/books/porters-handbook/uses/chapter.xml +++ en_US.ISO8859-1/books/porters-handbook/uses/chapter.xml @@ -1141,15 +1141,20 @@ Ports should not be created for Go libs, see - for more information. + for more information. - Possible arguments: (none) + Possible arguments: (none), + modules Sets default values and targets used to build Go software. A build-time dependency - on lang/go is added. The build - process is controlled by several variables: + on lang/go is added. By default + the build is performed in GOPATH mode. If Go software uses + modules, the modules-aware mode can be switched on with + modules. + + The build process is controlled by several variables: @@ -1157,9 +1162,16 @@ The name of the Go package. - This is the directory that will be created in - GOPATH/src. The default value is - ${PORTNAME}. + When building in GOPATH mode, this is the directory that + will be created in ${GOPATH}/src and + seen by the go. When building in + modules-aware mode, no GOPATH directories will be created + and GO_PKGNAME value will be only used + as a default for GO_TARGET. If not set + explicitly and GH_SUBDIR is present, + GO_PKGNAME value will be inferred from + ${GH_SUBDIR}, otherwise it will be set + to ${PORTNAME}. @@ -1191,6 +1203,15 @@ go. + + + GO_BUILDFLAGS + + + Additional build arguments to be passed to the + go install. + +