Commit 50ac523b authored by Ed Reel's avatar Ed Reel

Update instructions to set go environment variables

parent 872a0dbc
......@@ -35,12 +35,23 @@ class Go < Package
puts "--------"
puts "Installed Go for #{ARCH} in #{CREW_PREFIX}/lib/go"
puts ""
puts "Make sure to set go environment variables."
puts ""
puts "Minimal:"
puts "\texport GOROOT=#{CREW_PREFIX}/lib/go"
puts "\texport PATH=$PATH:$GOROOT/bin"
puts ""
puts "To use `go run`:"
puts "\texport TMPDIR=#{CREW_PREFIX}/tmp"
puts ""
puts "To add environment variables, execute the following:".lightblue
puts ""
puts "echo 'export GOROOT=/usr/local/lib/go' >> ~/.bashrc".lightblue
puts "echo 'export PATH=$PATH:$GOROOT/bin' >> ~/.bashrc".lightblue
puts "echo 'export TMPDIR=/usr/local/tmp' >> ~/.bashrc".lightblue
puts "source ~/.bashrc".lightblue
puts ""
end
def self.check
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment