This file contains hidden or 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
package main | |
import ( | |
"crypto/sha256" | |
"encoding/json" | |
"fmt" | |
"strconv" | |
"strings" | |
"time" | |
) |
This file contains hidden or 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
# Get the currently used golang install path (in GOPATH/bin, unless GOBIN is set) | |
ifeq (,$(shell go env GOBIN)) | |
GOBIN=$(shell go env GOPATH)/bin | |
else | |
GOBIN=$(shell go env GOBIN) | |
endif | |
# Set version variables for LDFLAGS | |
GIT_TAG ?= dirty-tag | |
GIT_VERSION ?= $(shell git describe --tags --always --dirty) |