1
0
mirror of https://github.com/openshift/source-to-image.git synced 2026-02-05 12:44:54 +01:00

Force golang.org/x/crypto/ssh/terminal dependency needed for windows compilation

This commit is contained in:
Maciej Szulik
2017-11-27 12:46:03 +01:00
parent 60a42d7740
commit 7d91565a3c

View File

@@ -7,6 +7,13 @@ pin-godep() {
popd > /dev/null
}
# Some things we want in godeps are windows code dependencies, so ./...
# won't pick them up.
REQUIRED_BINS=(
"golang.org/x/crypto/ssh/terminal"
"./..."
)
# build the godep tool
# Again go get stinks, hence || true
go get -u github.com/tools/godep 2>/dev/null || true
@@ -26,4 +33,4 @@ missing-test-deps () {
go list -f $'{{range .Imports}}{{.}}\n{{end}}{{range .TestImports}}{{.}}\n{{end}}{{range .XTestImports}}{{.}}\n{{end}}' ./vendor/k8s.io/kubernetes/... | grep '\.' | grep -v github.com/openshift/origin | sort -u || true
}
godep-save -t ./...
godep-save -t "${REQUIRED_BINS[@]}"