Skip to content

Commit

Permalink
Rename te executable
Browse files Browse the repository at this point in the history
Some tools built ginkgo-linter and other ginkgolinter (because go does
not allow package names with '-').

Now the name is `ginkgolinter` from all the tools.
  • Loading branch information
nunnatsa committed Jul 17, 2022
1 parent aad96ff commit 94e4f88
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/sanity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ jobs:

- name: Functional Test
run: |-
cp ginkgo-linter testdata/src/a
cp ginkgolinter testdata/src/a
cd testdata/src/a
[[ $(./ginkgo-linter ./... 2>&1 | wc -l) == 1969 ]]
[[ $(./ginkgo-linter --suppress-len-assertion=true ./... 2>&1 | wc -l) == 1355 ]]
[[ $(./ginkgo-linter --suppress-nil-assertion=true ./... 2>&1 | wc -l) == 614 ]]
[[ $(./ginkgo-linter --suppress-nil-assertion=true --suppress-len-assertion=true ./... 2>&1 | wc -l) == 0 ]]
[[ $(./ginkgolinter ./... 2>&1 | wc -l) == 1969 ]]
[[ $(./ginkgolinter --suppress-len-assertion=true ./... 2>&1 | wc -l) == 1355 ]]
[[ $(./ginkgolinter --suppress-nil-assertion=true ./... 2>&1 | wc -l) == 614 ]]
[[ $(./ginkgolinter --suppress-nil-assertion=true --suppress-len-assertion=true ./... 2>&1 | wc -l) == 0 ]]
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
build:
go build -o ginkgo-linter ./cmd/ginkgolinter
go build -o ginkgolinter ./cmd/ginkgolinter

build-for-windows:
GOOS=windows GOARCH=amd64 go build -o bin/ginkgo-linter-amd64.exe ./cmd/ginkgolinter
GOOS=windows GOARCH=amd64 go build -o bin/ginkgolinter-amd64.exe ./cmd/ginkgolinter

build-for-mac:
GOOS=darwin GOARCH=amd64 go build -o bin/ginkgo-linter-amd64-darwin ./cmd/ginkgolinter
GOOS=darwin GOARCH=amd64 go build -o bin/ginkgolinter-amd64-darwin ./cmd/ginkgolinter

build-for-linux:
GOOS=linux GOARCH=amd64 go build -o bin/ginkgo-linter-amd64-linux ./cmd/ginkgolinter
GOOS=linux GOARCH=386 go build -o bin/ginkgo-linter-386-linux ./cmd/ginkgolinter
GOOS=linux GOARCH=amd64 go build -o bin/ginkgolinter-amd64-linux ./cmd/ginkgolinter
GOOS=linux GOARCH=386 go build -o bin/ginkgolinter-386-linux ./cmd/ginkgolinter

build-all: build build-for-linux build-for-mac build-for-windows
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Then add the new executable to your PATH.

## usage
```shell
ginkgo-linter [-fix] .
ginkgolinter [-fix] ./...
```
Use the `-fix` flag to apply the fix suggestions to the source code.

Expand Down

0 comments on commit 94e4f88

Please sign in to comment.