{"id":18074498,"url":"https://github.com/brasic/binstubs","last_synced_at":"2025-10-25T08:39:52.216Z","repository":{"id":64646191,"uuid":"576735900","full_name":"brasic/binstubs","owner":"brasic","description":"Automatically generate binstubs using tools.go","archived":false,"fork":false,"pushed_at":"2022-12-11T04:45:55.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-11T16:22:22.197Z","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":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/brasic.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":"2022-12-10T20:10:20.000Z","updated_at":"2022-12-11T04:27:10.000Z","dependencies_parsed_at":"2022-12-12T10:30:38.683Z","dependency_job_id":null,"html_url":"https://github.com/brasic/binstubs","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brasic%2Fbinstubs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brasic%2Fbinstubs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brasic%2Fbinstubs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brasic%2Fbinstubs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brasic","download_url":"https://codeload.github.com/brasic/binstubs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247385676,"owners_count":20930599,"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-10-31T10:12:49.905Z","updated_at":"2025-10-25T08:39:52.154Z","avatar_url":"https://github.com/brasic.png","language":"Go","readme":"# binstubs\n\n_Automatically generate binstubs using tools.go_\n\nBinstubs is a nearly zero-configuration way to generate binstubs to execute\nthe version of a go command tracked in `go.mod`.\n\nSo instead of running `go run tool@version` which is verbose and causes \ndifficulty when upgrading versions, or `go run tool`, which might use the\nwrong version of a tool, you just run `bin/tool`.\n\n1. Create a `tools.go` in the root of your project that looks like this,\n   pointing to the executable program path for each dependency:\n\n       package main\n\n       import (\n       \t_ \"github.com/brasic/binstubs\"\n       \t_ \"github.com/path/to/dep/cmd/something\"\n       \t_ \"github.com/golang-migrate/migrate/v4/cmd/migrate\"\n       )\n\n2. Run `go run github.com/brasic/binstubs` to create corresponding shell\n   scripts in `bin/`. You can also add a `go:generate` comment to the top\n   of tools.go instead.\n\n3. If you need to import a tool that you don't want a binstub for, add an\n   inline `binstub:ignore` comment after the import.\n\n4. If you need extra flags passed to `go run`, add an inline\n   `binstub:args=\"ARGS\"` comment after the import.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrasic%2Fbinstubs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrasic%2Fbinstubs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrasic%2Fbinstubs/lists"}