Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unused import when using gogo custom types #63

Open
kregan77 opened this issue May 24, 2019 · 0 comments
Open

Unused import when using gogo custom types #63

kregan77 opened this issue May 24, 2019 · 0 comments

Comments

@kregan77
Copy link

kregan77 commented May 24, 2019

If you use gogoproto's custom types (https://github.com/gogo/protobuf/blob/master/custom_types.md) e.g.:

import "myorg/customtypes/time/time.proto";
...
message Example { 
    time.CustomTime created = 3 [(gogoproto.customtype) = "myorg/customtypes/time.CustomTime"];
}

mwitkow validators generates a file with unused imports:

19:33:28  generated/xxxx.pb.go:17:2: imported and not used: "myorg/customtypes/time" as myorg_customtypes_time
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant