derohe icon indicating copy to clipboard operation
derohe copied to clipboard

Go version in installation-from-source may be out of date

Open jcalfee opened this issue 3 years ago • 1 comments

I'm trying stargate with go 1.12.12 like the directions say:

https://github.com/deroproject/derohe#installation-from-source

Exactly like this:

FROM golang:1.12.12-alpine as builder
RUN apk add git xterm
RUN mkdir /.cache && chown 1000:1000 /.cache
USER 1000:1000
RUN go get -u github.com/deroproject/derohe/...

But I see missing packages:

package github.com/deroproject/derohe/blockchain
	imports embed: unrecognized import path "embed" (import path does not begin with hostname)
package github.com/deroproject/derohe/cmd/derod
	imports crypto/ed25519: unrecognized import path "crypto/ed25519" (import path does not begin with hostname)

I see from another source that "embed" was added in go 1.16 and another source that "crypto/ed25519" was added in 1.16.

In go 1.16.15 there is another error:

github.com/deroproject/derohe/cmd/rpc_examples/pong_server imports
	etcd.io/bbolt: cannot find module providing package etcd.io/bbolt

In go 1.18:

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

Atlantis worked in the Dockerfile above. Can you please let me know what is the proper setup to install Stargate from source?

jcalfee avatar Jul 25 '22 11:07 jcalfee

And, can you please confirm, is the binary path up-to-date? The README was updated about 8 months ago and refers to deroproject/derosuite ... v2.1.6-1.

jcalfee avatar Jul 25 '22 11:07 jcalfee