NebulousLabs / Sia

Blockchain-based marketplace for file storage. Project has moved to GitLab: https://gitlab.com/NebulousLabs/Sia
https://sia.tech
MIT License
2.71k stars 440 forks source link

The latest version can NOT build successfully? #3171

Open jizhongyue opened 6 years ago

jizhongyue commented 6 years ago

root@13125301e9e3:/go# go get -u github.com/NebulousLabs/Sia/...

github.com/NebulousLabs/Sia/modules/explorer

src/github.com/NebulousLabs/Sia/modules/explorer/explorer.go:75:31: cannot use dbGetInternal(internalRecentChange, &recentChange) (type func("github.com/NebulousLabs/Sia/vendor/github.com/coreos/bbolt".Tx) error) as type func("gitlab.com/NebulousLabs/Sia/vendor/github.com/coreos/bbolt".Tx) error in argument to e.db.DB.View src/github.com/NebulousLabs/Sia/modules/explorer/info.go:14:33: cannot use dbGetAndDecode(bucketBlockIDs, id, &height) (type func("github.com/NebulousLabs/Sia/vendor/github.com/coreos/bbolt".Tx) error) as type func("gitlab.com/NebulousLabs/Sia/vendor/github.com/coreos/bbolt".Tx) error in argument to e.db.DB.View src/github.com/NebulousLabs/Sia/modules/explorer/info.go:30:36: cannot use e.dbGetBlockFacts(height, &bf) (type func("github.com/NebulousLabs/Sia/vendor/github.com/coreos/bbolt".Tx) error) as type func("gitlab.com/NebulousLabs/Sia/vendor/github.com/coreos/bbolt".Tx) error in argument to e.db.DB.View src/github.com/NebulousLabs/Sia/modules/explorer/info.go:42:19: cannot use func literal (type func("github.com/NebulousLabs/Sia/vendor/github.com/coreos/bbolt".Tx) error) as type func("gitlab.com/NebulousLabs/Sia/vendor/github.com/coreos/bbolt".Tx) error in argument to e.db.DB.View src/github.com/NebulousLabs/Sia/modules/explorer/info.go:61:33: cannot use dbGetAndDecode(bucketTransactionIDs, id, &height) (type func("github.com/NebulousLabs/Sia/vendor/github.com/coreos/bbolt".Tx) error) as type func("gitlab.com/NebulousLabs/Sia/vendor/github.com/coreos/bbolt".Tx) error in argument to e.db.DB.View src/github.com/NebulousLabs/Sia/modules/explorer/info.go:77:40: cannot use dbGetTransactionIDSet(bucketUnlockHashes, uh, &ids) (type func("github.com/NebulousLabs/Sia/vendor/github.com/coreos/bbolt".Tx) error) as type func("gitlab.com/NebulousLabs/Sia/vendor/github.com/coreos/bbolt".Tx) error in argument to e.db.DB.View src/github.com/NebulousLabs/Sia/modules/explorer/info.go:87:33: cannot use dbGetAndDecode(bucketSiacoinOutputs, id, &sco) (type func("github.com/NebulousLabs/Sia/vendor/github.com/coreos/bbolt".Tx) error) as type func("gitlab.com/NebulousLabs/Sia/vendor/github.com/coreos/bbolt".Tx) error in argument to e.db.DB.View src/github.com/NebulousLabs/Sia/modules/explorer/info.go:99:40: cannot use dbGetTransactionIDSet(bucketSiacoinOutputIDs, id, &ids) (type func("github.com/NebulousLabs/Sia/vendor/github.com/coreos/bbolt".Tx) error) as type func("gitlab.com/NebulousLabs/Sia/vendor/github.com/coreos/bbolt".Tx) error in argument to e.db.DB.View src/github.com/NebulousLabs/Sia/modules/explorer/info.go:113:33: cannot use dbGetAndDecode(bucketFileContractHistories, id, &history) (type func("github.com/NebulousLabs/Sia/vendor/github.com/coreos/bbolt".Tx) error) as type func("gitlab.com/NebulousLabs/Sia/vendor/github.com/coreos/bbolt".Tx) error in argument to e.db.DB.View src/github.com/NebulousLabs/Sia/modules/explorer/info.go:126:40: cannot use dbGetTransactionIDSet(bucketFileContractIDs, id, &ids) (type func("github.com/NebulousLabs/Sia/vendor/github.com/coreos/bbolt".Tx) error) as type func("gitlab.com/NebulousLabs/Sia/vendor/github.com/coreos/bbolt".Tx) error in argument to e.db.DB.View src/github.com/NebulousLabs/Sia/modules/explorer/info.go:126:40: too many errors

lukechampine commented 6 years ago

this is a result of moving to gitlab. You will need to re-clone using gitlab.com/NebulousLabs/Sia.