Skip to content

GenerateProtoTask does not consider path-based protoc or plugins as task inputs #557

Closed
@clayburn

Description

If you set protoc by path rather than by artifact, the GenerateProtoTask does not consider that to be a task input. For example this buildscript:

val protocPath: String? = System.getenv("PROTOC_PATH")
protobuf {
    protoc {
        path = protocPath
    }
}

results in the following:

> PROTOC_PATH=proto-3.19.3/bin/protoc ./gradlew generateProto
> Task :proj:generateProto

> PROTOC_PATH=proto-3.20.1/bin/protoc ./gradlew generateProto
> Task :proj:generateProto UP-TO-DATE

The same also holds true for plugins defined by a path instead of an artifact specification.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions