Skip to content
This repository has been archived by the owner on Jun 10, 2022. It is now read-only.

Getting "invalid parameter" when passing plugin-specific params #2

Closed
aidanalphafund opened this issue Apr 9, 2022 · 2 comments
Closed

Comments

@aidanalphafund
Copy link

First off, thank you for getting this library out, it's a huge help!

Problem

All of the custom protoc-gen-prost params fail with the message "invalid parameter".

Params inherited from prost_build such as type_attribute are working correctly.

Reproduction

example.proto

syntax = "proto3";

package example;

message Thing {
    string name = 1;
    string payload = 2;
}

Successful Command

This command successfully generates an example.rs file:

protoc --prost_out=hello-rs -I . example.proto

Failed Command

This command fails with the error --prost_out: invalid parameter: include_file

protoc --prost_out=hello-rs -I . example.proto --prost_opt=include_file
@Tuetuopay
Copy link
Owner

Hi! How did you install protoc-gen-prost? If you did through crates.io then this is not the proper repository. The one actually published on crates.io is this one. See #1 for more details.

@aidanalphafund
Copy link
Author

That was the problem, thanks @Tuetuopay!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants