go-proto-gql icon indicating copy to clipboard operation
go-proto-gql copied to clipboard

Can't install gql and gogql due to mod replace

Open indrasaputra opened this issue 3 years ago • 3 comments

I tried to install the binary using the command provided in README.md, but got this error

 > [ 2/17] RUN go install github.com/danielvladco/go-proto-gql/[email protected]:                                                                                 
#6 0.225 go: downloading github.com/danielvladco/go-proto-gql v0.8.3                                                                                                  
#6 2.103 go install: github.com/danielvladco/go-proto-gql/[email protected] (in github.com/danielvladco/[email protected]):                                     
#6 2.103        The go.mod file for the module providing named packages contains one or
#6 2.103        more replace directives. It must not contain directives that would cause
#6 2.103        it to be interpreted differently than if it were the main module.

found this page. can we do something about it so everything in README.md works as expected and intended?

indrasaputra avatar Feb 18 '22 02:02 indrasaputra

Can I add a +1 to this please. I am not a go expert by any means - just wanting to use the tool, so despite workarounds for those who understand the ecosystem this is stopping me from using the tool which seems a shame - I'm sure I'm not alone!

WilliamDugdale avatar Jan 03 '23 09:01 WilliamDugdale

Hi @WilliamDugdale, sorry for this issue, it was going on for a while since there are some dependencies that need to be replaced, you can install it by cloning the repo and running make:

git clone [email protected]:danielvladco/go-proto-gql.git

cd go-proto-gql    

make

danielvladco avatar Jan 03 '23 11:01 danielvladco

@danielvladco - thank you for the clear instructions!

WilliamDugdale avatar Jan 04 '23 04:01 WilliamDugdale