{"id":16918147,"url":"https://github.com/vito/gosub","last_synced_at":"2025-07-29T08:08:26.393Z","repository":{"id":20963918,"uuid":"24252680","full_name":"vito/gosub","owner":"vito","description":"go dependency submodule automator","archived":false,"fork":false,"pushed_at":"2023-03-03T14:38:36.000Z","size":32,"stargazers_count":6,"open_issues_count":0,"forks_count":8,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-11T16:32:23.112Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vito.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2014-09-20T03:25:23.000Z","updated_at":"2023-08-22T08:44:49.000Z","dependencies_parsed_at":"2024-06-19T01:51:10.739Z","dependency_job_id":"19f7f075-60f8-4b8d-84d1-c03cea033791","html_url":"https://github.com/vito/gosub","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/vito/gosub","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vito%2Fgosub","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vito%2Fgosub/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vito%2Fgosub/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vito%2Fgosub/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vito","download_url":"https://codeload.github.com/vito/gosub/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vito%2Fgosub/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267652765,"owners_count":24122098,"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","status":"online","status_checked_at":"2025-07-29T02:00:12.549Z","response_time":2574,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-13T19:38:59.427Z","updated_at":"2025-07-29T08:08:26.350Z","avatar_url":"https://github.com/vito.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gosub\n\n`$GOPATH` submodule automation.\n\n\n## usage\n\n### show all packages required by a set of applications or test suites\n\nThe `list` command simply lists out a full set of dependent packages,\ndetermined by the given app or test packages.\n\n```sh\n$ gosub list -app github.com/my/app -test github.com/my/tests\ngithub.com/my/app\ngithub.com/my/app/cmd/foo\ngithub.com/my/lib\ngithub.com/my/tests\ngithub.com/onsi/ginkgo\ngithub.com/onsi/gomega\n# etc...\n```\n\nThis is intended to be composed with other tooling, i.e. `sync` or automating\nlists of dependant files.\n\n\n### synchronize submodule config with a given set of packages\n\nThe `sync` command synchronizes submodules under a `$GOPATH` embedded in a repo.\n\nFor each package, it will find the root of its Git repo under the `$GOPATH`,\nand add it as a submodule.\n\nNon-Git packages are added individually, vendored into the parent repo. You may\nwant to add `.hg` and `.bzr` to your `.gitignore`.\n\nAny extra submodules under the `$GOPATH` are then removed. This is to prune\nno-longer-needed dependencies. Specify the '-i' flag for each submodule you \nwould like to avoid pruning.\n\n```sh\n$ gosub sync github.com/my/app github.com/my/lib ...\n```\n\nThis command works well with `gosub list`:\n\n```sh\n$ gosub list -a github.com/my/app | xargs gosub sync\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvito%2Fgosub","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvito%2Fgosub","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvito%2Fgosub/lists"}