Skip to content

Commit 6d1486b

Browse files
committed
Modify make pretty
1 parent 8811ce4 commit 6d1486b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
Version := $(shell git describe --tags --dirty --always)
22
GitCommit := $(shell git rev-parse HEAD)
33
LDFLAGS := "-s -w -X awssh/cmd.Version=$(Version) -X awssh/cmd.GitCommit=$(GitCommit)"
4+
SOURCE_DIRS = cmd config internal main.go
45
OUTDIR := bin
56

67
GOLANGCI_VERSION = 1.31.0
@@ -16,7 +17,7 @@ tidy:
1617
go mod tidy
1718

1819
pretty:
19-
gofmt -s -w **/*.go
20+
gofmt -l -s -w $(SOURCE_DIRS)
2021

2122
build:
2223
CGO_ENABLED=0 go build -ldflags $(LDFLAGS) -o awssh

0 commit comments

Comments
 (0)