Skip to content
Merged
Show file tree
Hide file tree
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
10 changes: 8 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ GOLINT := golangci-lint
# Binary name
BINARY_NAME := flashduty-runner

# Go source files to format. Prune .claude/ so the filesystem-walking formatters
# (gofumpt, gci) never reach git worktrees of other branches living under
# .claude/worktrees/. go mod tidy and golangci-lint are module-aware and skip
# those nested modules on their own.
GO_SRC := $(shell find . -path ./.claude -prune -o -name '*.go' -print)

all: fmt lint test build

# Build the binary
Expand Down Expand Up @@ -57,14 +63,14 @@ lint:
# Format code
fmt:
@echo "Formatting code..."
gofumpt -l -w .
gofumpt -l -w $(GO_SRC)
gci write --skip-generated \
--section standard \
--section default \
--section "prefix(github.com/flashcat)" \
--section alias \
--section blank \
.
$(GO_SRC)
$(GOMOD) tidy

# Tidy dependencies
Expand Down
4 changes: 0 additions & 4 deletions environment/broker_other.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,3 @@ var errBrokerUnsupportedPlatform = errors.New("broker not supported on this plat
func setupBrokerForCmd(*exec.Cmd, *protocol.BashCredential) (func(), []string, error) {
return nil, nil, errBrokerUnsupportedPlatform
}

func serveBrokerControl(int, string, string) (func(), error) {
return func() {}, errBrokerUnsupportedPlatform
}
Loading