You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I run protop sync, it errors with Could not find package noelyap/setter-for-catan https://github.com/noel-yap/setter-for-catan-sb/tree/use-protop/src/main/proto.
At this point, protop is only able to handle non-nested projects with a top-level manifest. We can look into the use cases of nesting projects beneath the root, but a simpler structure is necessary for now.
It sounds like you currently have a project like this:
src
└── main
└── proto
├── something.proto
└── protop.json
Since you probably don't want to mix a protop package with other non-proto sources anyway, the following should work (and will work with the current limitations of nesting):
something.proto
protop.json
I'd suggest nesting protos under a directory structure that reflects the packages as well though, so if something.proto declared package com.company.something, the following would make sense:
My protos are defined in a directory
src/main/proto
. I've placed theprotop.json
file in the same directory. https://github.com/noel-yap/setter-for-catan-sb/blob/use-protop/src/main/proto/protop.jsonIn a client project, I've created
protop.json
as:When I run
protop sync
, it errors withCould not find package noelyap/setter-for-catan https://github.com/noel-yap/setter-for-catan-sb/tree/use-protop/src/main/proto.
I've created a Stackoverflow question for this, too: https://stackoverflow.com/questions/63219696/where-to-place-protop-json-file
The text was updated successfully, but these errors were encountered: