Skip to content

[BUG] No 'root' option in easyp breaking command #219

Description

@FarHowl

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

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions