Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmd/go: list all GOARCH/GOOS #27916

Closed
jimmyfrasche opened this issue Sep 28, 2018 · 3 comments
Closed

cmd/go: list all GOARCH/GOOS #27916

jimmyfrasche opened this issue Sep 28, 2018 · 3 comments
Labels
FeatureRequest FrozenDueToAge NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.

Comments

@jimmyfrasche
Copy link
Member

It's sometimes useful for tools to know about GOARCH/GOOS other than the current one. This information has to be collected from various sources, hardcoded, and manually kept up to date. It would be better if the go command could be queried to find out what the current information is.

Ideally, I'd like to see something roughly like the below, with the option to have it be output as json.

struct {
  Supported []struct {
    GOOS string
    GOARCH string
    CgoSupported bool
    WordSize int64
    MaxAlign int64
  }
  ReservedGOARCH []string
  ReservedGOOS []string
}

cc: @bcmills @rsc @ianlancetaylor @alandonovan

@jimmyfrasche jimmyfrasche added NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. FeatureRequest labels Sep 28, 2018
@dominikh
Copy link
Member

@jimmyfrasche Is go tool dist list what you're looking for?

@ghost
Copy link

ghost commented Sep 28, 2018

Duplicate issue that was already fixed: #12270

@jimmyfrasche
Copy link
Member Author

Ooh, I did not know about that one. It is indeed. Thank you.

@golang golang locked and limited conversation to collaborators Sep 28, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FeatureRequest FrozenDueToAge NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Projects
None yet
Development

No branches or pull requests

3 participants