script/cibuild - cannot execute binary file errors
- Vorherrschende Sprache
- Go
- Sterne
- 13.6k
- Forks
- 1.4k
- Ø Merge
- 2 Std. 31 Min.
- Gemergte PRs (30 T.)
- 4
Beschreibung
I've got errors while running `script/cibuild` command after I cloned gh-ost repository to my Raspberry Pi machine:
```
pi@raspberrypi:~/git/gh-ost $ script/cibuild
go: cannot find GOROOT directory: /home/pi/git/gh-ost/.vendor/go19/go
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 99.4M 100 99.4M 0 0 4359k 0 0:00:23 0:00:23 --:--:-- 5305k
de874549d9a8d8d8062be05808509c09a88a248e77ec14eb77453530829ac02b go1.9.2.linux-amd64.tar.gz
script/ensure-go-installed: line 46: /home/pi/git/gh-ost/.vendor/go19/go/bin/go: cannot execute binary file: Exec format error
installed in /home/pi/git/gh-ost/.vendor/go19: Go Binary: /home/pi/git/gh-ost/.vendor/go19/go/bin/go
++ rm -rf .gopath
++ mkdir -p .gopath/src/github.com/github
++ ln -s /home/pi/git/gh-ost .gopath/src/github.com/github/gh-ost
++ export GOPATH=/home/pi/git/gh-ost/.gopath:/home/pi/git/gh-ost/.vendor
++ GOPATH=/home/pi/git/gh-ost/.gopath:/home/pi/git/gh-ost/.vendor
+ echo 'Verifying code is formatted via '\''gofmt -s -w go/'\'''
Verifying code is formatted via 'gofmt -s -w go/'
+ gofmt -s -w go/
script/cibuild: line 8: /home/pi/git/gh-ost/.vendor/go19/go/bin/gofmt: cannot execute binary file: Exec format error
```
Beitragsleitfaden
Rechercherichtung
Beginne mit script/ensure-go-installed, insbesondere mit Zeile 46, und mit script/cibuild, Zeile 8; reproduziere den Fehler auf dem Raspberry Pi unter Verwendung des im Bericht gezeigten Go-1.9.2-Downloads. Die Aufgabe ist abgeschlossen, wenn script/cibuild auf der gemeldeten Maschinenarchitektur ohne einen Exec format error ausgeführt werden kann.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- go, shell
- Bereich
- build-system, operating-systems
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100