nautilus / gateway

A federated api gateway for graphql services. https://gateway.nautilus.dev/
MIT License
397 stars 49 forks source link

`go install` fails #187

Closed Mukhametvaleev closed 1 year ago

Mukhametvaleev commented 1 year ago

According to the documentation I'm trying to install gateway command with:

% go install github.com/nautilus/gateway/cmd/gateway@latest

But I've got an error:

% go install github.com/nautilus/gateway/cmd/gateway@latest
#6 1.784 go: downloading github.com/nautilus/gateway/cmd/gateway v0.0.0-20230320205028-a825e2eeca52                                                                                                 
#6 1.937 go: downloading github.com/nautilus/gateway v0.3.6                                       
#6 2.158 go: github.com/nautilus/gateway/cmd/gateway@latest (in github.com/nautilus/gateway/cmd/gateway@v0.0.0-20230320205028-a825e2eeca52):
#6 2.158        The go.mod file for the module providing named packages contains one or
#6 2.158        more replace directives. It must not contain directives that would cause
#6 2.158        it to be interpreted differently than if it were the main module.
JohnStarich commented 1 year ago

@Mukhametvaleev Oof, yep. I can reproduce.

This is particularly difficult because doing it without replace requires occasionally updating the library dependency, which isn't in a typical PR workflow. 😞

I'll fix the go install and manually select the latest for now. Maybe I'll have the GitHub release binaries always use a replace.

JohnStarich commented 1 year ago

@Mukhametvaleev Ok, should be working now on v0.3.7! Let us know if you hit any issues.