{"id":13471351,"url":"https://github.com/mitchellh/gox","last_synced_at":"2025-10-05T19:30:15.614Z","repository":{"id":11897123,"uuid":"14460330","full_name":"mitchellh/gox","owner":"mitchellh","description":"A dead simple, no frills Go cross compile tool","archived":true,"fork":false,"pushed_at":"2023-05-02T06:26:10.000Z","size":126,"stargazers_count":4608,"open_issues_count":68,"forks_count":357,"subscribers_count":82,"default_branch":"master","last_synced_at":"2025-01-19T19:50:46.451Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mitchellh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2013-11-17T03:11:35.000Z","updated_at":"2025-01-17T18:38:43.000Z","dependencies_parsed_at":"2023-02-15T19:01:12.389Z","dependency_job_id":"24fa5a8b-8710-49b2-b375-65cd5d400854","html_url":"https://github.com/mitchellh/gox","commit_stats":{"total_commits":106,"total_committers":20,"mean_commits":5.3,"dds":"0.26415094339622647","last_synced_commit":"9f712387e2d2c810d99040228f89ae5bb5dd21e5"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitchellh%2Fgox","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitchellh%2Fgox/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitchellh%2Fgox/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitchellh%2Fgox/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mitchellh","download_url":"https://codeload.github.com/mitchellh/gox/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235432215,"owners_count":18989480,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-31T16:00:43.476Z","updated_at":"2025-10-05T19:30:15.028Z","avatar_url":"https://github.com/mitchellh.png","language":"Go","funding_links":[],"categories":["Software Packages","开源类库","Go","Misc","DevOps Tools","Open source library","Go Tools","Go (531)","软件包","Go 工具","Tooling"],"sub_categories":["DevOps Tools","构建编译","Contents","Build And Compile","DevOps 工具","devops 工具","代码分析","DevOps工具","Advanced and Specialized Tools"],"readme":"# Gox - Simple Go Cross Compilation\n\nGox is a simple, no-frills tool for Go cross compilation that behaves a\nlot like standard `go build`. Gox will parallelize builds for multiple\nplatforms. Gox will also build the cross-compilation toolchain for you.\n\n## Installation\n\nTo install Gox, please use `go get`. We tag versions so feel free to\ncheckout that tag and compile.\n\n```\n$ go install github.com/mitchellh/gox@latest\n...\n$ gox -h\n...\n```\n\n## Usage\n\nIf you know how to use `go build`, then you know how to use Gox. For\nexample, to build the current package, specify no parameters and just\ncall `gox`. Gox will parallelize based on the number of CPUs you have\nby default and build for every platform by default:\n\n```\n$ gox\nNumber of parallel builds: 4\n\n--\u003e      darwin/386: github.com/mitchellh/gox\n--\u003e    darwin/amd64: github.com/mitchellh/gox\n--\u003e       linux/386: github.com/mitchellh/gox\n--\u003e     linux/amd64: github.com/mitchellh/gox\n--\u003e       linux/arm: github.com/mitchellh/gox\n--\u003e     freebsd/386: github.com/mitchellh/gox\n--\u003e   freebsd/amd64: github.com/mitchellh/gox\n--\u003e     openbsd/386: github.com/mitchellh/gox\n--\u003e   openbsd/amd64: github.com/mitchellh/gox\n--\u003e     windows/386: github.com/mitchellh/gox\n--\u003e   windows/amd64: github.com/mitchellh/gox\n--\u003e     freebsd/arm: github.com/mitchellh/gox\n--\u003e      netbsd/386: github.com/mitchellh/gox\n--\u003e    netbsd/amd64: github.com/mitchellh/gox\n--\u003e      netbsd/arm: github.com/mitchellh/gox\n--\u003e       plan9/386: github.com/mitchellh/gox\n```\n\nOr, if you want to build a package and sub-packages:\n\n```\n$ gox ./...\n...\n```\n\nOr, if you want to build multiple distinct packages:\n\n```\n$ gox github.com/mitchellh/gox github.com/hashicorp/serf\n...\n```\n\nOr if you want to just build for linux:\n\n```\n$ gox -os=\"linux\"\n...\n```\n\nOr maybe you just want to build for 64-bit linux:\n\n```\n$ gox -osarch=\"linux/amd64\"\n...\n```\n\nAnd more! Just run `gox -h` for help and additional information.\n\n## Versus Other Cross-Compile Tools\n\nA big thanks to these other options for existing. They each paved the\nway in many aspects to make Go cross-compilation approachable.\n\n* [Dave Cheney's golang-crosscompile](https://github.com/davecheney/golang-crosscompile) -\n  Gox compiles for multiple platforms and can therefore easily run on\n  any platform Go supports, whereas Dave's scripts require a shell. Gox\n  will also parallelize builds. Dave's scripts build sequentially. Gox has\n  much easier to use OS/Arch filtering built in.\n\n* [goxc](https://github.com/laher/goxc) -\n  A very richly featured tool that can even do things such as build system\n  packages, upload binaries, generate download webpages, etc. Gox is a\n  super slim alternative that only cross-compiles binaries. Gox builds packages in parallel, whereas\n  goxc doesn't. Gox doesn't enforce a specific output structure for built\n  binaries.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmitchellh%2Fgox","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmitchellh%2Fgox","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmitchellh%2Fgox/lists"}