that i can‘t build gh-ost successfullly
- Lingua principale
- Go
- Stelle
- 13.6k
- Fork
- 1.4k
- Merge medio
- 2h 31m
- PR unite (30g)
- 4
Descrizione
hi,
when i firstly build the gh-ost by "/build.sh" then comes the error :
```
Building macOS binary
go/logic/server.go:9:2: cannot find package "bufio" in any of:
/usr/local/go/src/github.com/github/gh-ost/vendor/bufio (vendor tree)
/usr/local/go/src/bufio (from $GOROOT)
/usr/local/go/src/github.com/github/gh-ost/src/bufio (from $GOPATH)
vendor/golang.org/x/text/transform/transform.go:12:2: cannot find package "bytes" in any of:
/usr/local/go/src/github.com/github/gh-ost/vendor/bytes (vendor tree)
/usr/local/go/src/bytes (from $GOROOT)
/usr/local/go/src/github.com/github/gh-ost/src/bytes (from $GOPATH)
vendor/github.com/satori/go.uuid/uuid.go:29:2: cannot find package "crypto/md5" in any of:
/usr/local/go/src/github.com/github/gh-ost/vendor/crypto/md5 (vendor tree)
/usr/local/go/src/crypto/md5 (from $GOROOT)
......
Build failed for macOS
Then it‘s stopped
my go env :
- [root@localhost gh-ost]# go env
- GOARCH="amd64"
- GOBIN=""
- GOEXE=""
- GOHOSTARCH="amd64"
- GOHOSTOS="linux"
- GOOS="linux"
- GOPATH="/usr/local/go/src/github.com/github/gh-ost"
- GORACE=""
- GOROOT="/usr/local/go"
- GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
- CC="gcc"
- GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build686716363=/tmp/go-build"
- CXX="g++"
- CGO_ENABLED="1"
```
so pretty wanner know the reason of my issues .Thank you !
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia riproducendo il malfunzionamento con /build.sh e confronta i valori di go env riportati con le aspettative di build del repository. Traccia il motivo per cui i pacchetti Go standard come bufio e bytes vengono cercati nell'albero vendor del progetto, quindi verifica che /build.sh venga completato correttamente per le destinazioni di build richieste.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- go
- Ambito
- build-system
- Tipo di issue
- Bug
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 25/100