oraichain / orai

Monolithic repository of everything Oraichain
Other
28 stars 19 forks source link

Go dependencies step #30

Closed Kwaskoff closed 8 months ago

Kwaskoff commented 1 year ago

On Go dependencies step (go get ./...) I have these errors:

go: downloading nhooyr.io/websocket v1.8.6
go: downloading github.com/Workiva/go-datastructures v1.0.53
/media/ex/go/pkg/mod/github.com/oraichain/wasmd@v0.30.1/x/wasm/keeper/testdata/reflect.go:4:2: package embed is not in GOROOT (/usr/lib/go-1.15/src/embed)
/media/ex/go/pkg/mod/golang.org/x/net@v0.4.0/http2/transport.go:19:2: package io/fs is not in GOROOT (/usr/lib/go-1.15/src/io/fs)

what's problem?

debian 11, go1.15.15 linux/arm64

Kwaskoff commented 1 year ago

After I added reflect.go and transport.go manually - errors changed to:

package github.com/oraichain/orai/app
    imports github.com/CosmWasm/wasmd/x/wasm
    imports github.com/CosmWasm/wasmd/x/wasm/simulation
    imports github.com/CosmWasm/wasmd/x/wasm/keeper/testdata
    imports embed
    imports embed: import cycle not allowed
package github.com/oraichain/orai/app
    imports github.com/CosmWasm/wasmd/x/wasm
    imports github.com/CosmWasm/wasmd/x/wasm/client/cli
    imports github.com/CosmWasm/wasmd/x/wasm/ioutils
    imports github.com/CosmWasm/wasmd/x/wasm/types
    imports github.com/cosmos/cosmos-sdk/codec
    imports github.com/cosmos/cosmos-sdk/codec/types
    imports github.com/cosmos/cosmos-sdk/types/errors
    imports github.com/tendermint/tendermint/abci/types
    imports google.golang.org/grpc
    imports google.golang.org/grpc/internal/transport
    imports golang.org/x/net/http2
    imports io/fs
    imports io/fs: import cycle not allowed

help, please

ducphamle2 commented 1 year ago

which branch are you working on right now? normally you would just need to use go mod tidy to download and clean related dependencies. You should not add additional files manually

Kwaskoff commented 1 year ago

yep, right now I try from scratch again - and step with go get ./... was done. But make install can't =(

make install
go install -mod=readonly -mod=readonly -tags "netgo ledger" -ldflags '-X github.com/cosmos/cosmos-sdk/version.Name=orai -X github.com/cosmos/cosmos-sdk/version.AppName=oraid -X github.com/cosmos/cosmos-sdk/version.Version=v0.41.4-3-gcf0e4d7dee69054-dirty -X github.com/cosmos/cosmos-sdk/version.Commit=cf0e4d7dee69054bf570a7995b7462d0874940ba -X "github.com/cosmos/cosmos-sdk/version.BuildTags=netgo ledger," -X github.com/tendermint/tendermint/version.TMCoreSemVer=v0.34.30-0.20230711110635-482cde0c4e04 -w -s' -trimpath ./cmd/oraid
../../go/pkg/mod/github.com/cosmos/cosmos-sdk@v0.45.16-ics/client/grpc_query.go:1:1: expected 'package', found 'EOF'
../../go/pkg/mod/github.com/cosmos/cosmos-sdk@v0.45.16-ics/client/flags/flags.go:1:1: expected 'package', found 'EOF'
../../go/pkg/mod/github.com/cosmos/cosmos-sdk@v0.45.16-ics/client/grpc/node/query.pb.go:1:1: expected 'package', found 'EOF'
../../go/pkg/mod/github.com/cosmos/cosmos-sdk@v0.45.16-ics/client/grpc/reflection/reflection.go:1:1: expected 'package', found 'EOF'
make: *** [Makefile:92: install] Error 1

branch v0.41.4