Skip to content

Commit

Permalink
Remove dependency on gopkg.in (elastic#6461)
Browse files Browse the repository at this point in the history
This removes the remaining `go get` for gotpl, by using the vendored
copy. This should get rid of our dependency on the gopkg.in service.
  • Loading branch information
tsg authored and graphaelli committed Feb 23, 2018
1 parent 07a2669 commit 9bf3c2f
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dev-tools/packer/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ package-dashboards:

.PHONY: deps
deps:
go get -u github.com/tsg/gotpl
cd ../vendor/github.com/tsg/gotpl; go install

.PHONY: xgo-image
xgo-image:
Expand Down
2 changes: 2 additions & 0 deletions dev-tools/packer/docker/xgo-image/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
beats-builder/yaml.v2
beats-builder/gotpl
5 changes: 4 additions & 1 deletion dev-tools/packer/docker/xgo-image/beats-builder/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ RUN \
rm `basename $WPDPACK_URL`

# Load gotpl
RUN go get github.com/tsg/gotpl
ADD yaml.v2 /go/src/gopkg.in/yaml.v2
ADD gotpl /go/src/github.com/tsg/gotpl
RUN cd /go/src/github.com/tsg/gotpl && \
go install

# Add patch for gopacket.
ADD gopacket_pcap.patch /gopacket_pcap.patch
Expand Down
2 changes: 2 additions & 0 deletions dev-tools/packer/docker/xgo-image/build.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/sh

cp -r ../../../vendor/gopkg.in/yaml.v2 beats-builder/yaml.v2
cp -r ../../../vendor/github.com/tsg/gotpl beats-builder/gotpl
docker pull tudorg/xgo-base:v20180222 && \
docker build --rm=true -t tudorg/xgo-1.9.4 go-1.9.4/ &&
docker build --rm=true -t tudorg/beats-builder beats-builder

0 comments on commit 9bf3c2f

Please sign in to comment.