Comments (6)
Also happening here with go1.10.
from gb.
this is now particularly important because the 1.8.X branch seems to have been removed from docker hub.
from gb.
I fixed it on Ubuntu as follow:
Type go version
on cli. If you have any version of go installed, remove it:
sudo apt-get remove golang-go
And installing the latest version of Go(currently 1.10) following these steps:
- Download Go: https://golang.org/doc/install?download=go1.10.1.linux-amd64.tar.gz
- And:
mkdir $HOME/go`
tar -C $HOME/go -xzf go1.10.1.linux-amd64.tar.gz`
export GOROOT=$HOME/go
export GOPATH=/var/www/go
export PATH=$PATH:$GOROOT/bin
You can set any directory as your GOROOT(the Go directory) and GOPATH(your Go workspace) as you prefer (I set these vars in my .bashrc file).
Verify your Go version with go version
and test your installation as explained in this link: https://golang.org/doc/install#testing
from gb.
This still seems to fail with go1.10, see https://travis-ci.org/andig/gosdm630/jobs/377325643 for an example.
from gb.
this is now particularly important because the 1.8.X branch seems to have been removed from docker hub.
@rbucker if you're referring to the tags of https://hub.docker.com/_/golang/, that's not accurate -- they're no longer supported, which means they'll no longer receive image rebuilds, but the tags are still very much available:
$ docker pull golang:1.8
1.8: Pulling from library/golang
Digest: sha256:f0b5dab7581eddb49dabd1d1b9aa505ca3edcdf79a66395b5bfa4f3c036b49ef
Status: Image is up to date for golang:1.8
$ docker run --rm golang:1.8 go version
go version go1.8.7 linux/amd64
In fact, you can go at least as far back as Go 1.2:
$ docker pull golang:1.2
1.2: Pulling from library/golang
a3ed95caeb02: Already exists
5d3df020ecd3: Already exists
067b95d26410: Already exists
9f482ce8050c: Already exists
75f31ee85880: Already exists
8d69f242035f: Already exists
cd80c24f4996: Already exists
Digest: sha256:d6b13df58f0156b21f25a23fa74de59489de5336d2c1290ac00611868203e52d
Status: Image is up to date for golang:1.2
$ docker run --rm golang:1.2 go version
go version go1.2.2 linux/amd64
from gb.
Since go1.11 features module support, this is no longer an issue.
from gb.
Related Issues (20)
- gb should fail early with unknown/unsupported GOOS or GOARCH value
- Error vendoring gb with gb-vendor HOT 2
- gb build does not create bin folder and binary in bin folder HOT 24
- Website needs list of projects using GB
- Gogland (perhaps also others) configuration example HOT 1
- why vendor/src? HOT 1
- gb build fails on centos7 with linking error HOT 6
- have any command copy a package from $GOPATH
- Can't build project in Docker HOT 2
- gb build do not work correctly on windows (can work correctly on linux)
- horizon HOT 4
- using gb to make a library HOT 2
- Is the gb project dead? HOT 15
- / HOT 1
- gb vendor doesn't work with fish shell HOT 1
- [SOLVED] How to migrate to go modules? HOT 6
- gb + IDE ? HOT 1
- Cross build not working on OSX: cgo_export_static main only allowed in cgo-generated code
- module github.com/constabulary/gb@latest found (v0.4.4), but does not contain package github.com/constabulary/gb/internal/vendor HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gb.