Skip to content
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

Newest version of Go has different command #3

Open
acenturyandabit opened this issue Apr 11, 2022 · 1 comment
Open

Newest version of Go has different command #3

acenturyandabit opened this issue Apr 11, 2022 · 1 comment

Comments

@acenturyandabit
Copy link

Currently, running docker-compose up will yield

 > [3/5] RUN go get gopkg.in/gorethink/gorethink.v4 && go install gopkg.in/gorethink/gorethink.v4:
#5 0.368 go: go.mod file not found in current directory or any parent directory.
#5 0.368        'go get' is no longer supported outside a module.
#5 0.368        To build and install a command, use 'go install' with a version,
#5 0.368        like 'go install example.com/cmd@latest'
#5 0.368        For more information, see https://golang.org/doc/go-get-install-deprecation
#5 0.368        or run 'go help get' or 'go help install'.

Instead we can remove line 4 RUN go get gopkg.in/rethinkdb/rethinkdb-go.v6 from the Dockerfile and let Go do its own dependency resolution.

Additionally, the older version of rethinkdb no longer works. Use rethinkdb:latest in the docker-compose.yml. instead of rethinkdb:2.3.

If you're on windows, make sure you save your files with LF instead of CRLF, otherwise bash will dislike you.

go get is deprecated, we use go install instead apparently. I've not used go before but it seems to work when i replace go get with go install and do some cd beforehand.

@acenturyandabit
Copy link
Author

Ok it didn't end up working, i ended up following the steps here instead:
https://github.com/tinode/chat/blob/master/docker/README.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant