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
2025/02/14 14:32:28 google/api/http.proto:29:9: symbol "google.api.Http" already defined at ./google/api/http.proto:29:9
google/api/http.proto:33:21: symbol "google.api.Http.rules" already defined at ./google/api/http.proto:33:21
google/api/http.proto:41:8: symbol "google.api.Http.fully_decode_reserved_expansion" already defined at ./google/api/http.proto:41:8
google/api/http.proto:308:9: symbol "google.api.HttpRule" already defined at ./google/api/http.proto:308:9
google/api/http.proto:313:10: symbol "google.api.HttpRule.selector" already defined at ./google/api/http.proto:313:10
google/api/http.proto:321:12: symbol "google.api.HttpRule.get" already defined at ./google/api/http.proto:321:12
google/api/http.proto:324:12: symbol "google.api.HttpRule.put" already defined at ./google/api/http.proto:324:12
google/api/http.proto:327:12: symbol "google.api.HttpRule.post" already defined at ./google/api/http.proto:327:12
google/api/http.proto:330:12: symbol "google.api.HttpRule.delete" already defined at ./google/api/http.proto:330:12
google/api/http.proto:333:12: symbol "google.api.HttpRule.patch" already defined at ./google/api/http.proto:333:12
google/api/http.proto:339:23: symbol "google.api.HttpRule.custom" already defined at ./google/api/http.proto:339:23
google/api/http.proto:348:10: symbol "google.api.HttpRule.body" already defined at ./google/api/http.proto:348:10
google/api/http.proto:356:10: symbol "google.api.HttpRule.response_body" already defined at ./google/api/http.proto:356:10
google/api/http.proto:361:21: symbol "google.api.HttpRule.additional_bindings" already defined at ./google/api/http.proto:361:21
google/api/http.proto:318:9: symbol "google.api.HttpRule.pattern" already defined at ./google/api/http.proto:318:9
google/api/http.proto:365:9: symbol "google.api.CustomHttpPattern" already defined at ./google/api/http.proto:365:9
google/api/http.proto:367:10: symbol "google.api.CustomHttpPattern.kind" already defined at ./google/api/http.proto:367:10
google/api/http.proto:370:10: symbol "google.api.CustomHttpPattern.path" already defined at ./google/api/http.proto:370:10
After updating api-linter from v1.68.0 to v1.69.0, it started reporting already defined errors when I prefix the files with ./. However, these errors do not occur in v1.68.0.
This regression appears to have been introduced by #1466.
This breaks my existing workflow because I'm using find to find all *.proto files:
Although this issue can be worked around by using find * -name '*.proto' (https://unix.stackexchange.com/a/537241/376279), the * is expanded by the shell, making its behavior slightly different. The StackExchange answer also discusses the implications of using *.
Screenshots
v1.68.0
v1.69.0
The text was updated successfully, but these errors were encountered:
You're right, @Juneezee it is a result of that change. I'll get a fix together soon, apologies for the issue! Please use the previous version if possible!
Environment details
Steps to reproduce
go install github.com/googleapis/api-linter/cmd/[email protected]
git clone https://github.com/googleapis/googleapis.git
cd googleapis
api-linter ./google/api/annotations.proto ./google/api/http.proto
Error output:
After updating api-linter from
v1.68.0
tov1.69.0
, it started reportingalready defined
errors when I prefix the files with./
. However, these errors do not occur inv1.68.0
.This regression appears to have been introduced by #1466.
This breaks my existing workflow because I'm using
find
to find all*.proto
files:Although this issue can be worked around by using
find * -name '*.proto'
(https://unix.stackexchange.com/a/537241/376279), the*
is expanded by the shell, making its behavior slightly different. The StackExchange answer also discusses the implications of using*
.Screenshots
v1.68.0
v1.69.0
The text was updated successfully, but these errors were encountered: