mirror of
https://github.com/foomo/sesamy-cli.git
synced 2025-10-16 12:35:36 +00:00
chore: add safe tag
This commit is contained in:
parent
36f9e0f81c
commit
9dc885eeb7
@ -16,6 +16,7 @@ builds:
|
|||||||
- '7'
|
- '7'
|
||||||
flags:
|
flags:
|
||||||
- -trimpath
|
- -trimpath
|
||||||
|
- -tags=safe
|
||||||
ldflags:
|
ldflags:
|
||||||
- -s -w -X github.com/foomo/sesamy-cli/cmd.version={{.Version}}
|
- -s -w -X github.com/foomo/sesamy-cli/cmd.version={{.Version}}
|
||||||
|
|
||||||
@ -23,10 +24,10 @@ release:
|
|||||||
prerelease: auto
|
prerelease: auto
|
||||||
|
|
||||||
archives:
|
archives:
|
||||||
- format: tar.gz
|
- formats: [ tar.gz ]
|
||||||
format_overrides:
|
format_overrides:
|
||||||
- goos: windows
|
- goos: windows
|
||||||
format: zip
|
formats: [ zip ]
|
||||||
|
|
||||||
changelog:
|
changelog:
|
||||||
use: github-native
|
use: github-native
|
||||||
@ -38,3 +39,5 @@ brews:
|
|||||||
caveats: "sesamy --help"
|
caveats: "sesamy --help"
|
||||||
homepage: "https://github.com/foomo/sesamy-cli"
|
homepage: "https://github.com/foomo/sesamy-cli"
|
||||||
description: "CLI utitlity to manage Server Side Tag Management"
|
description: "CLI utitlity to manage Server Side Tag Management"
|
||||||
|
test: |
|
||||||
|
system "#{bin}/sesamy --version"
|
||||||
|
|||||||
12
Makefile
12
Makefile
@ -1,10 +1,6 @@
|
|||||||
.DEFAULT_GOAL := help
|
.DEFAULT_GOAL := help
|
||||||
-include .makerc
|
-include .makerc
|
||||||
|
|
||||||
# --- Config -----------------------------------------------------------------
|
|
||||||
|
|
||||||
export PATH := bin:$(PATH)
|
|
||||||
|
|
||||||
# --- Targets -----------------------------------------------------------------
|
# --- Targets -----------------------------------------------------------------
|
||||||
|
|
||||||
# This allows us to accept extra arguments
|
# This allows us to accept extra arguments
|
||||||
@ -36,7 +32,7 @@ doc:
|
|||||||
.PHONY: test
|
.PHONY: test
|
||||||
## Run tests
|
## Run tests
|
||||||
test:
|
test:
|
||||||
@GO_TEST_TAGS=-skip go test -coverprofile=coverage.out -race -json ./... | gotestfmt
|
@GO_TEST_TAGS=-skip go test -tags=safe -coverprofile=coverage.out -race -json -v ./... 2>&1 | tee /tmp/gotest.log | gotestfmt
|
||||||
|
|
||||||
.PHONY: lint
|
.PHONY: lint
|
||||||
## Run linter
|
## Run linter
|
||||||
@ -62,17 +58,17 @@ outdated:
|
|||||||
## Build binary
|
## Build binary
|
||||||
build:
|
build:
|
||||||
@mkdir -p bin
|
@mkdir -p bin
|
||||||
@go build -o bin/sesamy main.go
|
@go build -tags=safe -o bin/sesamy main.go
|
||||||
|
|
||||||
.PHONY: install
|
.PHONY: install
|
||||||
## Install binary
|
## Install binary
|
||||||
install:
|
install:
|
||||||
@go build -o ${GOPATH}/bin/sesamy main.go
|
@go build -tags=safe -o ${GOPATH}/bin/sesamy main.go
|
||||||
|
|
||||||
.PHONY: install.debug
|
.PHONY: install.debug
|
||||||
## Install debug binary
|
## Install debug binary
|
||||||
install.debug:
|
install.debug:
|
||||||
@go build -gcflags "all=-N -l" -o ${GOPATH}/bin/sesamy main.go
|
@go build -tags=safe -gclags="all=-N -l" -o ${GOPATH}/bin/sesamy main.go
|
||||||
|
|
||||||
## === Utils ===
|
## === Utils ===
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user