{"id":16475617,"url":"https://github.com/stepanstipl/go-protobuf-import-example","last_synced_at":"2025-03-23T11:32:53.870Z","repository":{"id":72298258,"uuid":"207386638","full_name":"stepanstipl/go-protobuf-import-example","owner":"stepanstipl","description":"Importing protobuf definitions with Go modules","archived":false,"fork":false,"pushed_at":"2022-08-31T23:08:30.000Z","size":18,"stargazers_count":19,"open_issues_count":1,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-18T20:08:32.871Z","etag":null,"topics":["go","golang","grpc","protobuf"],"latest_commit_sha":null,"homepage":"https://stepan.wtf/importing-protobuf-with-go-modules/","language":"Go","has_issues":false,"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/stepanstipl.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-09-09T19:18:43.000Z","updated_at":"2022-12-21T18:06:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"5cbe5185-828e-461f-aaeb-03c5100fde17","html_url":"https://github.com/stepanstipl/go-protobuf-import-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stepanstipl%2Fgo-protobuf-import-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stepanstipl%2Fgo-protobuf-import-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stepanstipl%2Fgo-protobuf-import-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stepanstipl%2Fgo-protobuf-import-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stepanstipl","download_url":"https://codeload.github.com/stepanstipl/go-protobuf-import-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245097158,"owners_count":20560311,"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","grpc","protobuf"],"created_at":"2024-10-11T12:39:27.177Z","updated_at":"2025-03-23T11:32:53.858Z","avatar_url":"https://github.com/stepanstipl.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"#  go-protobuf-import-example\n\nExample of how to import versioned protobuf definitions from Go packages when\nusing Go modules.\n\nThis code is to accompany my blog post [Importing protobuf definitions with Go\nmodules](https://stepan.wtf/importing-protobuf-with-go-modules/), please read\nfor more details.\n\n## TL;DR\n\nSymlink directories of individual modules (obtained from `go list`) under one\nfolder, or populate `vendor` directory by running `go mod vendor`. Paths within\nthat directory then match relative import paths used in protobuf `import`\nstatement and you can run `protoc` with `-I ./vendor` flag.\n\n## Requirements\n\n- `protoc`- https://github.com/protocolbuffers/protobuf\n- `gogo/protobuf` - https://github.com/gogo/protobuf\n- `go` v1.12+ - https://golang.org/\n\n## Usage\n\nRun `make` for help:\n\n```console\n$ make\nhelp                           Print list of tasks\nbuild                          Build go project\nproto-link                     Generate go protobuf files using symlinked modules\nproto-vendor                   Generate go protobuf files using go mode vendor\nrun                            Runs the demo server\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstepanstipl%2Fgo-protobuf-import-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstepanstipl%2Fgo-protobuf-import-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstepanstipl%2Fgo-protobuf-import-example/lists"}