Skip to content
This repository has been archived by the owner on Mar 26, 2022. It is now read-only.

Protowrap assumes project is inside GOPATH #10

Open
4nte opened this issue Apr 2, 2019 · 0 comments
Open

Protowrap assumes project is inside GOPATH #10

4nte opened this issue Apr 2, 2019 · 0 comments

Comments

@4nte
Copy link

4nte commented Apr 2, 2019

protowrap will generate go files to a directory which resembles the go package of pb file.

Example:

syntax = "proto3";
package foo;
option go_package = "github.com/xyz/project/foo";

When compiled, will generate go files in a relative directory./github.com/xyz/project/foo/foo.pb.go.

This is not suitable for projects which use Go modules because the package path does not need to match the actual filesystem path of the project.
I temporarily resolved this issue by moving generated files into the right directory after they're generated

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant