Skip to content

Commit 09d41ff

Browse files
Makefile: fix date and launch properties (#130)
Makefile: fix date and launch properties Fix makefile to properly run functional tests. Reviewed-by: Anton Sidelnikov
1 parent e4fc7f1 commit 09d41ff

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

Makefile

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,13 @@ PROJECT =$(notdir $(WORKDIR))
99
export VAULT_PLUGIN_DIR =$(WORKDIR)/bin
1010
BINARY_PATH =$(VAULT_PLUGIN_DIR)/$(PROJECT)
1111

12-
# unset OS_ variables
13-
env_vars ::= $(shell env | grep -oE 'OS_[^=]+' )
14-
unexport $(env_vars)
15-
export OS_CLOUD OS_CLIENT_CONFIG_FILE
16-
17-
module_path ::= github.com/opentelekomcloud/vault-plugin-secrets-openstack
18-
ldflags ::= -s -w \
12+
module_path := github.com/opentelekomcloud/vault-plugin-secrets-openstack
13+
ldflags := -s -w \
1914
-X $(module_path)/vars.ProjectName=vault-plugin-secrets-openstack \
2015
-X $(module_path)/vars.ProjectDocs=https://$(module_path) \
2116
-X $(module_path)/vars.BuildVersion=$(shell git rev-parse --abbrev-ref HEAD) \
2217
-X $(module_path)/vars.BuildRevision=$(shell git rev-parse --short HEAD) \
23-
-X $(module_path)/vars.BuildDate=$(shell date --iso-8601)
18+
-X $(module_path)/vars.BuildDate=$(shell date -u +"%Y-%m-%dT%H:%M:%SZ")
2419

2520
build:
2621
@mkdir -p $(VAULT_PLUGIN_DIR)

0 commit comments

Comments
 (0)