Description
There is no root option for easyp breaking command.
To Reproduce
There is an easyp lint command, which can accept both root and path options. That really makes a deal, if we want to place our proto-contracts in folder, which shall not be included in proto-package name:
proto/
service/
v1/
main.proto
common.proto
So we want to have main.proto like:
syntax = "proto3";
package service.v1;
import "service/v1/common.proto";
On the other hand there is also easyp breaking command, which accepts only path option. Within an example above it cannot resolve imports correctly:
level=ERROR msg="Cannot import file" "file name"=service/v1/common.proto
Expected behavior
Easyp would accept commands like:
easyp breaking --root ... --path ...
similar to easyp lint and can resolve imports correctly within applied root
Description
There is no
rootoption foreasyp breakingcommand.To Reproduce
There is an
easyp lintcommand, which can accept bothrootandpathoptions. That really makes a deal, if we want to place our proto-contracts in folder, which shall not be included in proto-package name:So we want to have
main.protolike:On the other hand there is also
easyp breakingcommand, which accepts onlypathoption. Within an example above it cannot resolve imports correctly:Expected behavior
Easyp would accept commands like:
similar to
easyp lintand can resolve imports correctly within appliedroot