bufbuild / buf-gradle-plugin

Gradle plugin for the Buf CLI
Apache License 2.0
46 stars 13 forks source link

bufLint: Missing output for violations #208

Open greenbourne277 opened 2 months ago

greenbourne277 commented 2 months ago

Version: 0.9.1

Description: When i run ./gradlew <myprojectpath>:bufLint I receive following output:

> Task <myprojectpath>:bufLint FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:lori:api:bufLint'.
> Some Protobuf files had lint violations:

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.

I don't see what the violations are. --debug didn't reveal anything either.

Here my buf.yaml in the project directory:

# buf.yaml
version: v1
build:
  roots:
    - src/main/proto/
    # The protobuf-gradle-plugin extracts and merges protobuf dependencies to
    # `build/extracted-include-protos`, so tell Buf where to find them.
    - build/extracted-include-protos/main
lint:
  ignore:
    - google
  use:
    - DEFAULT

Am I missing something obvious?

andrewparmet commented 2 months ago

Thanks for the report. Can you provide a minimal reproducer project?