Skip to content

Commit e6f7239

Browse files
committed
Run the command without a specified shell langugage
1 parent 709c321 commit e6f7239

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

.github/workflows/go.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,8 @@ jobs:
3030
make get
3131
- name: Lint Code
3232
run: |
33-
GOBIN=$PWD/bin go install golang.org/x/tools/cmd/goimports
34-
GOBIN=$PWD/bin go install golang.org/x/lint/golint
35-
export PATH=$PATH:$PWD/bin
33+
go install golang.org/x/tools/cmd/goimports
34+
go install golang.org/x/lint/golint
3635
make lint
3736
- name: Test
3837
run: |

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ get:
99
go get -v -t -d ./...
1010

1111
format-lint:
12-
errors=$$(gofmt -l .); if [ "$${errors}" != "" ]; then echo "Format Lint Error Files:\n$${errors}"; exit 1; fi
12+
gofmt -l -d .
1313

1414
import-lint:
15-
errors=$$(goimports -l .); if [ "$${errors}" != "" ]; then echo "Import Lint Error Files:\n$${errors}"; exit 1; fi
15+
goimports -l -d .
1616

1717
style-lint:
18-
errors=$$(golint ./...); if [ "$${errors}" != "" ]; then echo "Style Lint Error Files:\n$${errors}"; exit 1; fi
18+
golint ./...
1919

2020
lint: format-lint import-lint style-lint

0 commit comments

Comments
 (0)