Skip to content

Commit

Permalink
More convenient version string handling (#411)
Browse files Browse the repository at this point in the history
  • Loading branch information
joohoi committed Mar 15, 2021
1 parent fb1be90 commit ac63d53
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
6 changes: 3 additions & 3 deletions .goreleaser.yml
Expand Up @@ -6,11 +6,11 @@ builds:
env:
- CGO_ENABLED=0
asmflags:
- all=-trimpath={{.Env.GOPATH}}
- all=-trimpath
gcflags:
- all=-trimpath={{.Env.GOPATH}}
- all=-trimpath
ldflags: |
-s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.CommitDate}} -extldflags '-static'
-s -w -X github.com/ffuf/ffuf/pkg/ffuf.VERSION_APPENDIX= -extldflags '-static'
goos:
- linux
- windows
Expand Down
7 changes: 0 additions & 7 deletions pkg/ffuf/const.go

This file was deleted.

8 changes: 8 additions & 0 deletions pkg/ffuf/version.go
@@ -0,0 +1,8 @@
package ffuf

var (
//VERSION holds the current version number
VERSION = "1.3.0"
//VERSION_APPENDIX holds additional version definition
VERSION_APPENDIX = "-dev"
)

0 comments on commit ac63d53

Please sign in to comment.