gopy icon indicating copy to clipboard operation
gopy copied to clipboard

gopy doesn't ignore internal package

Open Sanix-Darker opened this issue 1 year ago • 0 comments

Hi there, first of all, am a big fan of this project, i was working on creating go bindings to python recently(https://github.com/Sanix-Darker/go_bind) and in a more real life project, i wanted to bind the the authzed-go project but i found myself on some issues...

A little similar to #259 , Am trying to pkg, but i get :

--- building package ---
gopy pkg -author=dk -output=py_build -vm=python3 -symbols=true -name=authz_go_for_py -exclude=google.golang.org/grpc/internal/serviceconfig -dynamic-link=true -url=github.com/sanix-darker/authzed-go -version=0.0.1 github.com/sanix-darker/authzed-go/proto/authzed/api/v1/
goimports -w authz_go_for_py.go
go build -mod=mod -buildmode=c-shared -o authz_go_for_py_go.so .
cmd had error: exit status 1  output:
package github.com/sanix-darker/authzed-go/py_build/authz_go_for_py
        authz_go_for_py.go:80:2: use of internal package google.golang.org/grpc/internal/serviceconfig not allowed

Even tho i excluded the internal... it's still telling me it's not allowed...

Am on go1.20.

any idea on how to ignore this please ?

Thanks 🙏🏽

Sanix-Darker avatar Dec 29 '23 23:12 Sanix-Darker