Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use ./... alias instead of PACKAGE_NAMES #949

Merged
merged 1 commit into from
Aug 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
PACKAGE_NAMES := github.com/mozilla-services/autograph github.com/mozilla-services/autograph/database github.com/mozilla-services/autograph/formats github.com/mozilla-services/autograph/signer github.com/mozilla-services/autograph/signer/apk2 github.com/mozilla-services/autograph/signer/contentsignature github.com/mozilla-services/autograph/signer/contentsignaturepki github.com/mozilla-services/autograph/signer/genericrsa github.com/mozilla-services/autograph/signer/gpg2 github.com/mozilla-services/autograph/signer/mar github.com/mozilla-services/autograph/signer/xpi github.com/mozilla-services/autograph/verifier/contentsignature github.com/mozilla-services/autograph/tools/autograph-monitor

# The GOPATH isn't always on the path.
GOPATH := $(shell go env GOPATH)
Expand Down Expand Up @@ -42,13 +41,13 @@ lint:
golangci-lint run

vet:
go vet $(PACKAGE_NAMES)
go vet ./...

fmt-diff:
gofmt -d *.go database/ signer/ tools/autograph-client/ tools/autograph-monitor tools/softhsm/ tools/hawk-token-maker/ tools/make-hsm-ee/ tools/makecsr/ tools/genpki/

fmt-fix:
go fmt $(PACKAGE_NAMES)
go fmt ./...
gofmt -w tools/autograph-client/ tools/softhsm/ tools/hawk-token-maker/ tools/make-hsm-ee/ tools/makecsr/ tools/genpki/

benchmarkxpi:
Expand All @@ -58,10 +57,10 @@ showbenchmarkxpi:
go tool pprof -web cpu.out

race:
go test -race -covermode=atomic -count=1 $(PACKAGE_NAMES)
go test -race -covermode=atomic -count=1 ./...

test:
go test -v -coverprofile coverage.out -covermode=count -count=1 $(PACKAGE_NAMES)
go test -v -coverprofile coverage.out -covermode=count -count=1 ./...

test-in-docker:
$(SHELL) -c " \
Expand Down