File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ extends : [base_package]
2+
3+ dependencies :
4+ build : [golang, {{build_with}}]
5+
6+ defaults :
7+ relocatable : false
8+
9+ sources :
10+ - key : git:e8e6fd4fe12510cc46893dff18c5188a6a6dc549
11+ url : https://github.com/mitchellh/gox.git
12+
13+ build_stages :
14+ - name : make-install
15+ handler : bash
16+ bash : |
17+ export GOROOT=${GOLANG_DIR}/go
18+ export GOPATH=${ARTIFACT}/go-gox
19+ export GOBIN=${ARTIFACT}/bin
20+ mkdir -p $GOBIN $GOPATH
21+ mkdir -p ${GOPATH}/src/github.com/mitchellh
22+ cp -a ${BUILD} ${GOPATH}/src/github.com/mitchellh/gox
23+ cd ${GOPATH}/src/github.com/mitchellh/gox
24+ go get -v
25+
26+ when_build_dependency :
27+ - prepend_path : PATH
28+ value : ' ${ARTIFACT}/bin'
Original file line number Diff line number Diff line change 1+ extends : [base_package]
2+
3+ dependencies :
4+ build : [golang, gox, {{build_with}}]
5+
6+ defaults :
7+ relocatable : false
8+
9+ sources :
10+ - key : git:f1970370ef337a6361a8a39bb4b17ddf625e4378
11+ url : https://github.com/mitchellh/packer.git
12+
13+ build_stages :
14+ - name : make-install
15+ handler : bash
16+ bash : |
17+ export GOROOT=${GOLANG_DIR}/go
18+ export GOPATH=${ARTIFACT}/go-packer
19+ export GOBIN=${ARTIFACT}/bin
20+ mkdir -p $GOBIN $GOPATH
21+ mkdir -p ${GOPATH}/src/github.com/mitchellh
22+ cp -a ${BUILD} ${GOPATH}/src/github.com/mitchellh/packer
23+ cd ${GOPATH}/src/github.com/mitchellh/packer
24+ make updatedeps
25+ unset GOBIN
26+ make dev
27+ mv ${GOPATH}/bin/* ${ARTIFACT}/bin/
You can’t perform that action at this time.
0 commit comments