-
Notifications
You must be signed in to change notification settings - Fork 817
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Review: Quickstart: Edit a Game Server #3030
Comments
This falls because we use simple game server to test with, so it imports from the parent gopath, which the tutorial doesn't (shouldn't???) cover. We should adjust the tutorial to work a different way (possibly?), Or build from the root of the project like we do in the project, or maybe part of the tutorial is editing the go.mod file to point to released SDKs? |
sorry, I am new to docker. I fail to build an image and have no idea how to fix it. I post my question on slack and you suggest me file an issue here. Back to the question, how to fix this error ERROR [builder 5/5] RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o server |
Summary: the tutorial is currently broken, it's not your fault, so I wouldn't stress about it 👍🏻 If you are new to Docker and Kubernetes, I'd strongly recommend going through these resources: https://agones.dev/site/docs/prerequisite-knowledge/ |
'This issue is marked as Stale due to inactivity for more than 30 days. To avoid being marked as 'stale' please add 'awaiting-maintainer' label or add a comment. Thank you for your contributions ' |
I'm going to leave this open - what should happen is a review of https://agones.dev/site/docs/getting-started/edit-first-gameserver-go/ should be done.
|
On review, #3776 fixes this, so closing 👍🏻 |
What happened:
I follow the tutorial Quickstart: Edit a Game Server
https://agones.dev/site/docs/getting-started/edit-first-gameserver-go/
but fail to build docker image on windows, it says
=> ERROR [builder 5/5] RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o server
What you expected to happen:
It shoud build image success
How to reproduce it (as minimally and precisely as possible):
so I change cmd like below:
set GOOS=linux && set GOARCH=amd64 && set CGO_ENABLED=0 && go build -o bin/server -a -v main.go
Anything else we need to know?:
Environment:
kubectl version
):The text was updated successfully, but these errors were encountered: