-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Merge pull request #513 from carnei-ro/feat/bitwarden-secrets…
…-manager" (#515) This reverts commit 5378cfa, reversing changes made to 35d76ca. Signed-off-by: zhaque44 <haque.zubair@gmail.com>
- Loading branch information
Showing
11 changed files
with
38 additions
and
354 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
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
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,30 +1,19 @@ | ||
Version := $(shell git describe --tags --dirty --always) | ||
PKGS := $(shell go list ./... | grep -v /vendor/) | ||
GitCommit := $(shell git rev-parse HEAD) | ||
INITIAL_LDFLAGS := -X main.version=$(Version) -X main.commit=$(GitCommit) | ||
|
||
platform := $(shell uname -o) | ||
|
||
ifeq ($(platform),Darwin) | ||
CC_FLAGS := CC=clang CXX=clang++ | ||
LDFLAGS := '$(INITIAL_LDFLAGS)' | ||
endif | ||
|
||
ifeq ($(platform),GNU/Linux) | ||
CC_FLAGS := CC=musl-gcc | ||
LDFLAGS := '$(INITIAL_LDFLAGS) -linkmode external -extldflags "-static -Wl,-unresolved-symbols=ignore-all"' | ||
endif | ||
LDFLAGS := "-X main.version=$(Version) -X main.commit=$(GitCommit)" | ||
|
||
build: | ||
CGO_ENABLED=1 $(CC_FLAGS) go build -ldflags $(LDFLAGS) -o bin/vals ./cmd/vals | ||
go build -ldflags $(LDFLAGS) -o bin/vals ./cmd/vals | ||
|
||
install: build | ||
mv bin/vals ~/bin/ | ||
|
||
lint: | ||
golangci-lint run -v --out-format=github-actions | ||
|
||
|
||
test: | ||
CGO_ENABLED=1 $(CC_FLAGS) go test -ldflags=$(LDFLAGS) -v ${PKGS} -coverprofile cover.out -race -p=1 | ||
go test -v ${PKGS} -coverprofile cover.out -race -p=1 | ||
go tool cover -func cover.out | ||
.PHONY: test | ||
.PHONY: test |
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
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
Oops, something went wrong.