{"id":17184062,"url":"https://github.com/jamesjarvis/go-deps","last_synced_at":"2025-04-13T18:01:57.040Z","repository":{"id":45948557,"uuid":"378656607","full_name":"jamesjarvis/go-deps","owner":"jamesjarvis","description":"Helper CLI for adding third party go dependencies to a Please.build enabled repo","archived":false,"fork":false,"pushed_at":"2021-11-25T10:24:06.000Z","size":110,"stargazers_count":4,"open_issues_count":3,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-05T22:46:14.865Z","etag":null,"topics":["golang","please"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jamesjarvis.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-06-20T13:50:11.000Z","updated_at":"2022-12-03T15:09:05.000Z","dependencies_parsed_at":"2022-09-26T21:31:42.400Z","dependency_job_id":null,"html_url":"https://github.com/jamesjarvis/go-deps","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamesjarvis%2Fgo-deps","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamesjarvis%2Fgo-deps/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamesjarvis%2Fgo-deps/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamesjarvis%2Fgo-deps/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jamesjarvis","download_url":"https://codeload.github.com/jamesjarvis/go-deps/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240109566,"owners_count":19749171,"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":["golang","please"],"created_at":"2024-10-15T00:42:19.045Z","updated_at":"2025-02-23T21:31:33.294Z","avatar_url":"https://github.com/jamesjarvis.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Go-Deps\n\nThe goal of this project is to build a migration tool to convert a [Please](https://github.com/thought-machine/please)\nbased repo using deprecated `go_get` rules to use the now standard `go_module` rules.\n\nThe difference between please and bazel is that please requires the user to specify the module dependencies,\nwhich can be a little bit annoying.\n\n## Rough idea\n\nThe rough idea of this project is to have two modes:\n\n1. Please just add this module to the project\n   - Basically just run a binary, passing in the specified module + version + optionally the name for it\n   - This will then parse the existing build files to check if it already exists, and then add this module + it's\n     dependencies to the repo.\n   - The idea is that in order to find out the dependencies of a particular module, it will run `go get` (or `go mod download` idk)\n     and then cd into the cache directory and run `go list -m -json all` on that stuff, to work out what the dependencies are.\n2. Please just convert the existing go_get definitions into go_modules (should theoretically just call the above mentioned binary).\n\n## Current Progress\n\nCurrently, we are at step 1.5, ie: we can pass in a module + optionally version and it will resolve the dependencies\nfor it and it's dependencies:\n\n```bash\nitis@whatitis go-deps % go run cmd/main.go -m github.com/hashicorp/go-hclog\nPlease Go Get v0.0.1\nSo, you want to add \"github.com/hashicorp/go-hclog\"?\nCongrats, you just downloaded \"github.com/hashicorp/go-hclog@v0.16.2\"\n2021/08/04 23:22:56 Dependencies change! We started with github.com/mattn/go-isatty@v0.0.8 and now have github.com/mattn/go-isatty@v0.0.10\n2021/08/04 23:22:57 Dependencies change! We started with golang.org/x/sys@v0.0.0-20190222072716-a9d3bda3a223 and now have golang.org/x/sys@v0.0.0-20191008105621-543471e840be\n2021/08/04 23:22:57 Synced github.com/mattn/go-isatty@v0.0.8 --\u003e github.com/mattn/go-isatty@v0.0.10\nMODULE: github.com/hashicorp/go-hclog\n VERSION: v0.16.2\n  github.com/hashicorp/go-hclog@v0.16.2\n  |\n  |---- github.com/fatih/color@v1.7.0\n  |---- github.com/mattn/go-colorable@v0.1.4\n  |---- github.com/mattn/go-isatty@v0.0.10\n  |---- github.com/stretchr/testify@v1.2.2\nMODULE: github.com/fatih/color\n VERSION: v1.7.0\n  github.com/fatih/color@v1.7.0\nMODULE: github.com/mattn/go-colorable\n VERSION: v0.1.4\n  github.com/mattn/go-colorable@v0.1.4\n  |\n  |---- github.com/mattn/go-isatty@v0.0.10\nMODULE: github.com/mattn/go-isatty\n VERSION: v0.0.10\n  github.com/mattn/go-isatty@v0.0.10\n  |\n  |---- golang.org/x/sys@v0.0.0-20191008105621-543471e840be\nMODULE: github.com/stretchr/testify\n VERSION: v1.2.2\n  github.com/stretchr/testify@v1.2.2\nMODULE: golang.org/x/sys\n VERSION: v0.0.0-20191008105621-543471e840be\n  golang.org/x/sys@v0.0.0-20191008105621-543471e840be\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjamesjarvis%2Fgo-deps","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjamesjarvis%2Fgo-deps","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjamesjarvis%2Fgo-deps/lists"}