We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e8fe24 commit 6a0ddc6Copy full SHA for 6a0ddc6
cmd/api-linter/cli.go
@@ -166,9 +166,12 @@ func (c *cli) lint(rules lint.RuleRegistry, configs lint.Configs) error {
166
}
167
// Resolve file absolute paths to relative ones.
168
// Using supplied import paths first.
169
- protoFiles, err := protoparse.ResolveFilenames(c.ProtoImportPaths, c.ProtoFiles...)
170
- if err != nil {
171
- return err
+ protoFiles := c.ProtoFiles
+ if len(c.ProtoImportPaths) > 0 {
+ protoFiles, err = protoparse.ResolveFilenames(c.ProtoImportPaths, c.ProtoFiles...)
172
+ if err != nil {
173
+ return err
174
+ }
175
176
// Then resolve again against ".", the local directory.
177
// This is necessary because ResolveFilenames won't resolve a path if it
0 commit comments