This repository was archived by the owner on Nov 18, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 1
- # generate-version
1
+ # git-describe
2
2
3
3
* Runs ` git describe --abbrev=7 --dirty `
4
4
* Generates .go file containing binary version.
10
10
## How to use
11
11
12
12
```
13
- go run github.com/thatInfrastructureGuy/generate-version @latest && go build <<your-program>>
13
+ go run github.com/thatInfrastructureGuy/git-describe @latest && go build <<your-program>>
14
14
```
15
15
16
16
Probably you should put it in your tools.go file.
17
17
18
18
### What happens on running this program?
19
19
20
20
```
21
- go run github.com/thatInfrastructureGuy/generate-version @latest
21
+ go run github.com/thatInfrastructureGuy/git-describe @latest
22
22
```
23
23
24
24
A new file gets created ` version/const.go ` with following contents:
@@ -49,7 +49,7 @@ const Version = "v0.0.1"
49
49
</summary >
50
50
51
51
```
52
- go run github.com/thatInfrastructureGuy/generate-version @latest \
52
+ go run github.com/thatInfrastructureGuy/git-describe @latest \
53
53
--filepath=version/version.go --package=version --variable=VERSION
54
54
```
55
55
</details >
Original file line number Diff line number Diff line change 1
- module github.com/thatInfrastructureGuy/generate-version
1
+ module github.com/thatInfrastructureGuy/git-describe
2
2
3
3
go 1.18
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ import (
27
27
"text/template"
28
28
"time"
29
29
30
- "github.com/thatInfrastructureGuy/generate-version /version"
30
+ "github.com/thatInfrastructureGuy/git-describe /version"
31
31
)
32
32
33
33
const (
You can’t perform that action at this time.
0 commit comments