You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I ran buf lint command with my proto files, there are no some proto files to import because lint doesn't check whether import proto file exists or not.
For example,
# my input files for buf lint
b.proto # in this file, I'll assume it imports a.proto file. but I'll run lint without a.proto file.
When I run buf lint, I got this output message. I can't lint b.proto file without a.proto file.
b.proto:7:8:a.proto: does not exist
lint is not build task so lint should not require proto files to build protobuf.
The text was updated successfully, but these errors were encountered:
Lint does require you to build in our case - if we don't know if your files are valid Protobuf, we can't lint them. Many linters for other languages do away with this by just parsing the AST, but there are situations in Protobuf where we wouldn't be able to determine whether a given linter passes without knowing that a build is valid.
I ran
buf lint
command with my proto files, there are no some proto files to import because lint doesn't check whether import proto file exists or not.For example,
When I run
buf lint
, I got this output message. I can't lint b.proto file without a.proto file.lint is not build task so lint should not require proto files to build protobuf.
The text was updated successfully, but these errors were encountered: