-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
5 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,7 +54,7 @@ lintfix: $(BIN)/golangci-lint $(BIN)/buf ## Automatically fix some lint errors | |
.PHONY: generate | ||
generate: $(BIN)/buf $(BIN)/protoc-gen-go $(BIN)/protoc-gen-connect-go $(BIN)/license-header ## Regenerate code and licenses | ||
rm -rf internal/gen | ||
PATH=$(abspath $(BIN)) $(BIN)/buf generate | ||
PATH="$(abspath $(BIN))" $(BIN)/buf generate | ||
$(BIN)/license-header \ | ||
--license-type apache \ | ||
--copyright-holder "Buf Technologies, Inc." \ | ||
|
@@ -76,19 +76,19 @@ $(BIN)/protoc-gen-connect-go: | |
|
||
$(BIN)/buf: Makefile | ||
@mkdir -p $(@D) | ||
GOBIN=$(abspath $(@D)) $(GO) install github.com/bufbuild/buf/cmd/[email protected] | ||
GOBIN="$(abspath $(@D))" $(GO) install github.com/bufbuild/buf/cmd/[email protected] | ||
|
||
$(BIN)/license-header: Makefile | ||
@mkdir -p $(@D) | ||
GOBIN=$(abspath $(@D)) $(GO) install \ | ||
GOBIN="$(abspath $(@D))" $(GO) install \ | ||
github.com/bufbuild/buf/private/pkg/licenseheader/cmd/[email protected] | ||
|
||
$(BIN)/golangci-lint: Makefile | ||
@mkdir -p $(@D) | ||
GOBIN=$(abspath $(@D)) $(GO) install github.com/golangci/golangci-lint/cmd/[email protected] | ||
GOBIN="$(abspath $(@D))" $(GO) install github.com/golangci/golangci-lint/cmd/[email protected] | ||
|
||
$(BIN)/protoc-gen-go: Makefile go.mod | ||
@mkdir -p $(@D) | ||
@# The version of protoc-gen-go is determined by the version in go.mod | ||
GOBIN=$(abspath $(@D)) $(GO) install google.golang.org/protobuf/cmd/protoc-gen-go | ||
GOBIN="$(abspath $(@D))" $(GO) install google.golang.org/protobuf/cmd/protoc-gen-go | ||
|