dpb587 / golang-release

Golang release for use with `bosh vendor-package`

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

golang

To vendor golang package into your release, run:

$ bosh vendor-package golang-1.8-linux ~/workspace/bosh-packages/golang

Included packages:

  • golang-1.8-linux
  • golang-1.8-darwin

To use golang-* package for compilation in your packaging script:

#!/bin/bash -eu
source /var/vcap/packages/golang-1.8-linux/bosh/compile.env
go build ...

[advanced use] To use golang-* package at runtime in your job scripts:

#!/bin/bash -eu
source /var/vcap/packages/golang-1.8-linux/bosh/runtime.env
go run ...

TODO

  • windows support

About

Golang release for use with `bosh vendor-package`

License:Apache License 2.0