Skip to content

Commit

Permalink
Make project compatible with release tooling
Browse files Browse the repository at this point in the history
- move main.go to cmd/vault-plugin-secrets-ad
  • Loading branch information
benashz committed Feb 1, 2024
1 parent 30b9833 commit b7dacba
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,4 @@ tags
*.iml

# binary
vault-plugin-secrets-ad
bin/vault-plugin-secrets-ad
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
TOOL?=vault-plugin-secrets-active-directory
TOOL?=vault-plugin-secrets-ad
TEST?=$$(go list ./... | grep -v /vendor/ | grep -v teamcity)
VETARGS?=-asmdecl -atomic -bool -buildtags -copylocks -methods -nilfunc -printf -rangeloops -shift -structtags -unsafeptr
EXTERNAL_TOOLS=
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ Once the server is started, register the plugin in the Vault server's [plugin ca
```sh
$ vault plugin register \
-sha256=<SHA256 Hex value of the plugin binary> \
-command="vault-plugin-secrets-active-directory" \
-command="vault-plugin-secrets-ad" \
secret \
custom-ad
```
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# SPDX-License-Identifier: MPL-2.0


TOOL=vault-plugin-secrets-active-directory
TOOL=vault-plugin-secrets-ad

# This script builds the application from source for multiple platforms.
set -e
Expand Down Expand Up @@ -45,7 +45,7 @@ ${GO_CMD} build \
-ldflags "-X github.com/hashicorp/${TOOL}/version.GitCommit='${GIT_COMMIT}${GIT_DIRTY}'" \
-o "bin/${TOOL}" \
-tags "${BUILD_TAGS}" \
.
"cmd/${TOOL}/main.go"

# Move all the compiled things to the $GOPATH/bin
OLDIFS=$IFS
Expand Down

0 comments on commit b7dacba

Please sign in to comment.