Skip to content

fix(BREV-1623): minor fixes for makefile targets#30

Merged
drewmalin merged 5 commits intomainfrom
BREV-1623
Aug 28, 2025
Merged

fix(BREV-1623): minor fixes for makefile targets#30
drewmalin merged 5 commits intomainfrom
BREV-1623

Conversation

@drewmalin
Copy link
Contributor

No description provided.

Comment on lines +30 to +31
ARTIFACT_GOLINT=github.com/golangci/golangci-lint/cmd/golangci-lint@v1.64.8
ARTIFACT_GOSEC=github.com/securego/gosec/v2/cmd/gosec@v2.22.8
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pinning these to make the associated targets run much faster -- though we should consider upgrading golangci-lint to v2.

Comment on lines -107 to -112
@if command -v $(GOLINT) > /dev/null; then \
$(GOLINT) run ./...; \
else \
echo "golangci-lint not found. Installing..."; \
go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest; \
$(GOLINT) run ./...; \
Copy link
Contributor Author

@drewmalin drewmalin Aug 26, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Simplifies the logic down to one GOLINT call

Makefile Outdated
.PHONY: fmt-check
fmt-check:
@echo "Checking code formatting..."
@if [ "$$(gofmt -s -l . | wc -l)" -gt 0 ]; then \
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Simplifies the logic down to one GOFMT call

Comment on lines -143 to -145
@if command -v $(GOSEC) > /dev/null; then \
$(GOSEC) ./...; \
else \
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Simplifies the logic down to one GOSEC call

.PHONY: deps-update
deps-update:
@echo "Updating dependencies..."
$(GOMOD) get -u ./...
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

go mod get is not a command -- this was intended to be go get

Comment on lines +194 to +197
$(GOINSTALL) $(ARTIFACT_GOLINT)
$(GOINSTALL) $(ARTIFACT_GOSEC)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reference the tooling as variables

@drewmalin drewmalin merged commit 67b32a1 into main Aug 28, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant