-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #50 from ClusterLabs/https-next
Version 0.0.4
- Loading branch information
Showing
59 changed files
with
573 additions
and
4,913 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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/sh | ||
TAG=$(git describe --tags --abbrev=0 2>/dev/null) | ||
SUFFIX=$(git show -s --format=%ct.%h HEAD) | ||
|
||
if [ -n "${TAG}" ]; then | ||
COMMITS_SINCE_TAG=$(git rev-list ${TAG}.. --count) | ||
if [ "${COMMITS_SINCE_TAG}" -gt 0 ]; then | ||
SUFFIX="dev${COMMITS_SINCE_TAG}.${SUFFIX}" | ||
fi | ||
else | ||
TAG="0" | ||
fi | ||
|
||
echo "${TAG}+git.${SUFFIX}" |
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,12 @@ | ||
# this is the what ends up in the RPM "Version" field and embedded in the --version CLI flag | ||
VERSION ?= $(shell .ci/get_version_from_git.sh) | ||
|
||
default: build test | ||
build: | ||
go vet ./... | ||
go build -ldflags "-s -w -X main.version=$(VERSION)" | ||
go mod tidy | ||
test: | ||
go test ./... -v | ||
|
||
.PHONY: build test |
Oops, something went wrong.