Skip to content

Commit b744f63

Browse files
author
Vic Shóstak
committed
Add -ldflags to README
1 parent a8c6194 commit b744f63

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ security:
88
gosec -quiet ./...
99

1010
install: security test
11-
CGO_ENABLED=0 GOARCH=amd64 go build -ldflags="-s -w" -o $(GOPATH)/bin/cgapp main.go
11+
CGO_ENABLED=0 go build -ldflags="-s -w" -o $(GOPATH)/bin/cgapp main.go
1212

1313
build: security test
1414
goreleaser --snapshot --skip-publish --rm-dist

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ go get github.com/create-go-app/cli
1919
Installation is done by using the [`go build`](https://golang.org/cmd/go/#hdr-Compile_packages_and_dependencies) command with `$GOPATH/bin`:
2020

2121
```bash
22-
go build -i -o $GOPATH/bin/cgapp github.com/create-go-app/cli
22+
go build -ldflags="-s -w" -o $GOPATH/bin/cgapp github.com/create-go-app/cli
2323
```
2424

2525
Let's create a new project via **interactive console UI** (or **CUI** for short) into current folder:

0 commit comments

Comments
 (0)