mirror of https://github.com/cheat/cheat.git
3.3.2 (#530)
* chore: trivial Makefile changes Trivial `Makefile` changes regarding file pathing. * chore: build flags - Passes `-trimpath` flag to build tasks - Creates `make ci` task and modifies `travis.yml` to use it - Bumps version to `3.3.2`
This commit is contained in:
parent
3786ac96a5
commit
e3764b81e7
|
@ -2,3 +2,10 @@ language: go
|
||||||
|
|
||||||
go:
|
go:
|
||||||
- 1.13.x
|
- 1.13.x
|
||||||
|
|
||||||
|
env:
|
||||||
|
- GO111MODULE=on
|
||||||
|
|
||||||
|
install: true
|
||||||
|
|
||||||
|
script: make ci
|
||||||
|
|
10
Makefile
10
Makefile
|
@ -19,7 +19,7 @@ SORT := sort
|
||||||
ZIP := zip -m
|
ZIP := zip -m
|
||||||
|
|
||||||
# build flags
|
# build flags
|
||||||
BUILD_FLAGS := -ldflags="-s -w" -mod vendor
|
BUILD_FLAGS := -ldflags="-s -w" -mod vendor -trimpath
|
||||||
GOBIN :=
|
GOBIN :=
|
||||||
|
|
||||||
# release binaries
|
# release binaries
|
||||||
|
@ -40,6 +40,10 @@ build: $(dist_dir)
|
||||||
.PHONY: build-release
|
.PHONY: build-release
|
||||||
build-release: $(releases)
|
build-release: $(releases)
|
||||||
|
|
||||||
|
## ci: builds a "release" executable for the current architecture (used in ci)
|
||||||
|
.PHONY: ci
|
||||||
|
ci: | setup prepare build
|
||||||
|
|
||||||
# cheat-darwin-amd64
|
# cheat-darwin-amd64
|
||||||
$(dist_dir)/cheat-darwin-amd64: prepare
|
$(dist_dir)/cheat-darwin-amd64: prepare
|
||||||
GOARCH=amd64 GOOS=darwin \
|
GOARCH=amd64 GOOS=darwin \
|
||||||
|
@ -91,7 +95,7 @@ clean: $(dist_dir)
|
||||||
## distclean: removes the tags file
|
## distclean: removes the tags file
|
||||||
.PHONY: distclean
|
.PHONY: distclean
|
||||||
distclean:
|
distclean:
|
||||||
$(RM) ./tags
|
$(RM) tags
|
||||||
|
|
||||||
## setup: installs revive (linter) and scc (sloc tool)
|
## setup: installs revive (linter) and scc (sloc tool)
|
||||||
.PHONY: setup
|
.PHONY: setup
|
||||||
|
@ -106,7 +110,7 @@ sloc:
|
||||||
## tags: builds a tags file
|
## tags: builds a tags file
|
||||||
.PHONY: tags
|
.PHONY: tags
|
||||||
tags:
|
tags:
|
||||||
$(CTAGS) -R . --exclude=./vendor
|
$(CTAGS) -R . --exclude=vendor
|
||||||
|
|
||||||
## vendor: downloads, tidies, and verifies dependencies
|
## vendor: downloads, tidies, and verifies dependencies
|
||||||
.PHONY: vendor
|
.PHONY: vendor
|
||||||
|
|
|
@ -13,7 +13,7 @@ import (
|
||||||
"github.com/cheat/cheat/internal/config"
|
"github.com/cheat/cheat/internal/config"
|
||||||
)
|
)
|
||||||
|
|
||||||
const version = "3.3.1"
|
const version = "3.3.2"
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue