Add license scan report and status
Signed off by: fossabot <badges@fossa.com>
This commit is contained in:
parent
2be6abd636
commit
0d570a3cbd
@ -1,4 +1,6 @@
|
|||||||
# ldflags package
|
# ldflags package
|
||||||
|
[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fversion-go%2Fldflags.svg?type=shield)](https://app.fossa.com/projects/git%2Bgithub.com%2Fversion-go%2Fldflags?ref=badge_shield)
|
||||||
|
|
||||||
Package to store on-build extra information: version(tag), build hash, build time
|
Package to store on-build extra information: version(tag), build hash, build time
|
||||||
|
|
||||||
|
|
||||||
@ -18,3 +20,7 @@ Or do it automatically based on existing git/data:
|
|||||||
go build -ldflags "-X 'github.com/version-go/ldflags.buildVersion=$(git describe --abbrev=0 --tags)' -X 'github.com/version-go/ldflags.buildHash=$(git rev-parse --short HEAD)' -X 'github.com/version-go/ldflags.buildTime=$(date)'" .
|
go build -ldflags "-X 'github.com/version-go/ldflags.buildVersion=$(git describe --abbrev=0 --tags)' -X 'github.com/version-go/ldflags.buildHash=$(git rev-parse --short HEAD)' -X 'github.com/version-go/ldflags.buildTime=$(date)'" .
|
||||||
```
|
```
|
||||||
will store current latest tag, commit hash and build time.
|
will store current latest tag, commit hash and build time.
|
||||||
|
|
||||||
|
|
||||||
|
## License
|
||||||
|
[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fversion-go%2Fldflags.svg?type=large)](https://app.fossa.com/projects/git%2Bgithub.com%2Fversion-go%2Fldflags?ref=badge_large)
|
Loading…
Reference in New Issue
Block a user