Skip to content

Commit

Permalink
docs: improve go first class ports docs
Browse files Browse the repository at this point in the history
  • Loading branch information
caarlos0 committed Oct 15, 2022
1 parent f6eb51c commit 5d75dec
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions www/docs/customization/build.md
Expand Up @@ -120,10 +120,11 @@ builds:
# applicable: `_{goarm}`, `_{goamd64}`, `_{gomips}`.
#
# Special values:
# - go_118_first_class: evaluates to the first-class targets of go1.18.
# - go_118_first_class: evaluates to the first-class ports of go1.18.
# Since GoReleaser v1.9.
# - go_first_class: evaluates to latest stable go first-class ports,
# currently same as 1.18.
# Since GoReleaser v1.9.
# - go_first_class: evaluates to latest stable go first-class targets,
# currently same as 1.18. Since GoReleaser v1.9.
#
# This overrides `goos`, `goarch`, `goarm`, `gomips`, `goamd64` and
# `ignores`.
Expand Down Expand Up @@ -509,3 +510,10 @@ Since you can have GoReleaser build for multiple different `GOAMD64` targets, it
adds that suffix to prevent name conflicts. The same thing happens for `arm` and
`GOARM`, `mips` and `GOMIPS` and others.

### Go's first class ports

The `targets` option can take a `go_first_class` special value as target, which
will evaluate to the list of first class ports as defined in the Go wiki.

You can read more about it
[here](https://github.com/golang/go/wiki/PortingPolicy#first-class-ports).

0 comments on commit 5d75dec

Please sign in to comment.