This website requires JavaScript.
Explore
Help
Sign In
vitalif
/
etcd
Watch
1
Star
0
Fork
You've already forked etcd
0
Code
Issues
Pull Requests
Releases
Wiki
Activity
15a8b46359
etcd
/
go_version.go
4 lines
61 B
Go
Raw
Normal View
History
Unescape
Escape
Download and build Go 1.2 in the Dockerfile. The dependency BurntSushi/toml actually needs Go 1.2, because it uses encoding.TextUnmarshaler, which didn't exist in Go 1.1. Since the PPA that we use doesn't have Go 1.2 yet, we will use the same method as Docker, i.e. download Go source tarball and compile it.
2014-01-15 06:17:10 +04:00
// +build !go1.2
feat(go_version): check go version at build time ``` $ ./build can't load package: package github.com/coreos/etcd: src/github.com/coreos/etcd/go_version.go:3:1: expected 'package', found 'STRING' "etcd requires go 1.1 or greater to build" ```
2013-08-17 02:14:19 +04:00
Download and build Go 1.2 in the Dockerfile. The dependency BurntSushi/toml actually needs Go 1.2, because it uses encoding.TextUnmarshaler, which didn't exist in Go 1.1. Since the PPA that we use doesn't have Go 1.2 yet, we will use the same method as Docker, i.e. download Go source tarball and compile it.
2014-01-15 06:17:10 +04:00
"etcd requires go 1.2 or greater to build"