version

package module
v0.0.0-...-7742730 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 11, 2024 License: Apache-2.0 Imports: 4 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Version   string
	BuildTime string
	GitCommit string
	GitStatus string
)

VERSION = $(shell git describe --tags --always) GIT_COMMIT = $(shell git rev-parse --short HEAD) git_tag = $(shell git describe --tags --abbrev=0) git_branch = $(shell git rev-parse --abbrev-ref HEAD) BuildVersion := $(git_branch)_$(git_rev) BuildTime := $(shell date -u '+%Y-%m-%dT%H:%M:%SZ') BuildCommit := $(shell git rev-parse --short HEAD) BuildGoVersion := $(shell go version) git_branch = $(shell git show-ref | grep $(shell git show HEAD | sed -n 1p | cut -d " " -f 2) | sed 's|.* /(.*)|1|' | grep -v HEAD | sort | uniq | head -n 1)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL