Skip to content

Commit

Permalink
Adding make fmt support in go-ipfix (#335)
Browse files Browse the repository at this point in the history
Signed-off-by: Tushar Tathgur <tathgurt@tathgurtPNQHP.vmware.com>
Co-authored-by: Tushar Tathgur <tathgurt@tathgurtPNQHP.vmware.com>
  • Loading branch information
2 people authored and heanlan committed Dec 7, 2023
1 parent 8372c3f commit 4100e5b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ PROTOC_GEN_GO_VERSION := v1.28.1
GOLANGCI_LINT_VERSION := v1.54.2
GOLANGCI_LINT_BINDIR := .golangci-bin
GOLANGCI_LINT_BIN := $(GOLANGCI_LINT_BINDIR)/$(GOLANGCI_LINT_VERSION)/golangci-lint
GO_FILES := $(shell find . -type d -name '.cache' -prune -o -type f -name '*.go' -print)

.PHONY: all
all: collector consumer
Expand Down Expand Up @@ -82,6 +83,12 @@ manifest:
@echo "===> Generating dev manifest for Go-ipfix <==="
$(CURDIR)/hack/generate-manifest-collector.sh --mode dev > build/yamls/ipfix-collector.yaml

.PHONY: fmt
fmt:
@echo
@echo "===> Formatting Go files <==="
@gofmt -s -l -w $(GO_FILES)

.PHONY: clean
clean:
@rm -rf $(BINDIR)
Expand Down
1 change: 1 addition & 0 deletions pkg/registry/build_registry/build_registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//go:build ignore
// +build ignore

package main
Expand Down

0 comments on commit 4100e5b

Please sign in to comment.