-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build method split to two forms, manual and automatic using build.sh …
…script
- Loading branch information
Damian Lubawy
committed
Dec 14, 2017
1 parent
bd86a86
commit ba1fff4
Showing
3 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
test/ | ||
bin/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/sh | ||
|
||
PLUGIN_BIN='bin/vault_keystone_plugin' | ||
|
||
mkdir -p bin | ||
echo " -> Building plugin" | ||
go get github.com/parnurzeal/gorequest | ||
go get github.com/hashicorp/vault/plugins | ||
go get github.com/hashicorp/go-plugin | ||
go get github.com/fatih/structs | ||
go get github.com/google/gofuzz | ||
if [ -f "${PLUGIN_BIN}" ]; then | ||
rm ${PLUGIN_BIN} | ||
go build -o ${PLUGIN_BIN} . | ||
else | ||
go build -o ${PLUGIN_BIN} . | ||
fi | ||
ls -al ${PLUGIN_BIN} |