diff --git a/.goreleaser.yml b/.goreleaser.yml index 19e6330..2a4f3f6 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -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 diff --git a/pkg/ffuf/const.go b/pkg/ffuf/const.go deleted file mode 100644 index fa761be..0000000 --- a/pkg/ffuf/const.go +++ /dev/null @@ -1,7 +0,0 @@ -package ffuf - -const ( - //VERSION holds the current version number - VERSION = "1.3.0-git" - VERSION_APPENDIX = "" -) diff --git a/pkg/ffuf/version.go b/pkg/ffuf/version.go new file mode 100644 index 0000000..81503e8 --- /dev/null +++ b/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" +)