golang/go

cmd/api: remove contexts slice by parsing `go tool dist list -json` output

Open

#14,892 opened on Mar 21, 2016

View on GitHub
 (12 comments) (2 reactions) (0 assignees)Go (19,008 forks)batch import
NeedsFixhelp wanted

Repository metrics

Stars
 (133,883 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

It's discovered in https://golang.org/cl/20935 that cmd/api contains a copy of supported platforms along with their cgo support status.

We should remove those hardcoded values and use go tool dist list -json instead.

Contributor guide