cdist/cdist/conf/type/__go_get/gencode-remote

9 lines
177 B
Plaintext
Executable File

package=$__object_id
cat<<EOF
[ -f /etc/environment ] && . /etc/environment
[ -f /etc/profile ] && . /etc/profile
export GOPATH=\${GOPATH:-/opt/gocode}
go get $package
EOF