{"id":15407292,"url":"https://github.com/izumin5210/gex","last_synced_at":"2025-04-16T05:01:36.753Z","repository":{"id":51035419,"uuid":"146171432","full_name":"izumin5210/gex","owner":"izumin5210","description":"The implementation of \"clarify best practice for tool dependencies\".","archived":false,"fork":false,"pushed_at":"2023-01-10T09:04:45.000Z","size":148,"stargazers_count":50,"open_issues_count":9,"forks_count":5,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-29T05:02:04.318Z","etag":null,"topics":["go","golang","vendor","vgo"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/izumin5210.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}},"created_at":"2018-08-26T10:32:27.000Z","updated_at":"2025-03-10T15:23:45.000Z","dependencies_parsed_at":"2023-02-08T18:00:26.368Z","dependency_job_id":null,"html_url":"https://github.com/izumin5210/gex","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/izumin5210%2Fgex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/izumin5210%2Fgex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/izumin5210%2Fgex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/izumin5210%2Fgex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/izumin5210","download_url":"https://codeload.github.com/izumin5210/gex/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249199733,"owners_count":21228994,"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":["go","golang","vendor","vgo"],"created_at":"2024-10-01T16:28:21.082Z","updated_at":"2025-04-16T05:01:36.732Z","avatar_url":"https://github.com/izumin5210.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gex\n\n[![CI](https://github.com/izumin5210/gex/workflows/CI/badge.svg)](https://github.com/izumin5210/gex/actions?workflow=CI)\n[![GoDoc](https://godoc.org/github.com/izumin5210/gex?status.svg)](https://godoc.org/github.com/izumin5210/gex)\n[![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/izumin5210/gex)](https://github.com/izumin5210/gex/releases/latest)\n[![Go Report Card](https://goreportcard.com/badge/github.com/izumin5210/gex)](https://goreportcard.com/report/github.com/izumin5210/gex)\n[![License](https://img.shields.io/github/license/izumin5210/gex.svg)](./LICENSE)\n\nThe implementation of clarify best practice for tool dependencies.\n\nSee https://github.com/golang/go/issues/25922#issuecomment-412992431\n\n\n## Features\n\n- Manage versions of tools dependencies, and build them with specified version\n- **Does not introduce new mechanisms** to manage tool dependencies\n- **Only 2 commands** that you use: `--add` and `--build`\n- All you need to **execute `go generate ./tools.go`** if you want only to use tools\n\n\n## Usage\n\n### `gex --add [packages...]`\nAdd a new tool to dependencies:\n\n```\n$ gex --add github.com/golang/mock/mockgen\n```\n\nThe tool will be managed in `tools.go` and its version will be managed by [Modules](https://github.com/golang/go/wiki/Modules) or [dep](https://golang.github.io/dep/).\n\n```\n$ cat tools.go\n// Code generated by github.com/izumin5210/gex. DO NOT EDIT.\n\n// +build tools\n\npackage tools\n\n// tool dependencies\nimport (\n        _ \"github.com/golang/mock/mockgen\"\n)\n\n// If you want to use tools, please run the following command:\n//  go generate ./tools.go\n//\n//go:generate go build -v -o=./bin/reviewdog github.com/golang/mock/mockgen\n\n$ cat go.mod | grep mock\n        github.com/golang/mock v1.1.1 // indirect\n```\n\n\n### `go generate ./tools.go`\nBuild executable binaries into `$PWD/bin`.\n\n```\n$ go generate ./tools.go\n```\n\n\n### `gex [command] [args...]`\nExecute command that managed in `tools.go` and `go.mod`.\n`gex` will build the executable binary automatically if needed.\n\n```\n$ gex mockgen\n# prints mockgen's help text...\n```\n\n\n## Installation\n\n### macOS\n\n```console\n$ brew install izumin5210/tools/gex\n```\n\n### Other platforms\n\nYou can download prebuilt binaries for each platform in the [releases](https://github.com/izumin5210/gex/releases) page.\n\n### Build from source\n\n```console\n$ go get github.com/izumin5210/gex/cmd/gex\n```\n\n\n## Requirements\n\ngex depends on [dep](https://golang.github.io/dep/) or [Modules](https://github.com/golang/go/wiki/Modules) to manage tool dependencies,\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fizumin5210%2Fgex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fizumin5210%2Fgex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fizumin5210%2Fgex/lists"}