Building golang webserver

I am trying to build a new golang webserver. It uses gqlgen and gin and works locally without an issue. When I try to build it with the default settings on Render (go build -tags netgo -ldflags '-s -w' -o app), I run into this issue:

graph/schema.resolvers.go:12:2: package familiar/graph/model is not in GOROOT (/usr/local/go/src/familiar/graph/model)

Building it locally and running it doesn’t have an issue. I think the issue is that it’s not updating to be at the right root because I believe there should be a backend in there → /usr/local/go/src/backend/familiar/graph/model

Any idea?

Fixed it!

What was the issue?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.