Skip to content

Instantly share code, notes, and snippets.

@markllama
Last active August 29, 2015 14:05
Show Gist options
  • Save markllama/ba4c87602c36a988b5ac to your computer and use it in GitHub Desktop.
Save markllama/ba4c87602c36a988b5ac to your computer and use it in GitHub Desktop.
Hacking Golang on Fedora 20 (for Kubernetes build/test)
#golang on Fedora 20 as of today has some problems which get in the way of working with Kubernetes.
# A number of people have suggested just building go from source but a couple of ugly hacks have gotten me past it for now.
#
# 1) install a patched go from koji (possibly not needed, see 2)
# from maxamillion's paste:
# http://fpaste.org/123906/74249921
yum localinstall https://kojipkgs.fedoraproject.org//work/tasks/1170/7251170/golang-1.3-5.fc20.x86_64.rpm https://kojipkgs.fedoraproject.org//work/tasks/1170/7251170/golang-src-1.3-5.fc20.noarch.rpm https://kojipkgs.fedoraproject.org//work/tasks/1170/7251170/golang-vim-1.3-5.fc20.noarch.rpm https://kojipkgs.fedoraproject.org//work/tasks/1170/7251170/golang-pkg-bin-linux-amd64-1.3-5.fc20.x86_64.rpm https://kojipkgs.fedoraproject.org//work/tasks/1170/7251170/golang-pkg-linux-amd64-1.3-5.fc20.noarch.rpm
# 2 install dang, I have to try it again to remember to install a part before running hack/build-go.sh
# 3 install the test coverage tool required by hack/test-go.sh
sudo bash
GOLANG=/usr/share/golang go get code.google.com/p/go.tools/cmd/cover
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment