From 6c6a6ff59e28f6789a8e72373dee449b7f8a39cf Mon Sep 17 00:00:00 2001 From: Rahul Bansal Date: Fri, 6 Feb 2026 12:31:21 +0530 Subject: [PATCH] fix: correct Makefile module path, remove dead formatTimestamp - Fix Makefile ldflags: github.com/rbansal42/bb -> github.com/rbansal42/bitbucket-cli - Remove unused formatTimestamp function from pipeline/view.go - Clean up unused time import --- Makefile | 2 +- internal/cmd/pipeline/view.go | 9 --------- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/Makefile b/Makefile index 8fa6661..cf029ad 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ VERSION ?= $(shell git describe --tags --always --dirty 2>/dev/null || echo "dev") BUILD_DATE ?= $(shell date -u +"%Y-%m-%dT%H:%M:%SZ") -LDFLAGS := -ldflags "-X github.com/rbansal42/bb/internal/cmd.Version=$(VERSION) -X github.com/rbansal42/bb/internal/cmd.BuildDate=$(BUILD_DATE)" +LDFLAGS := -ldflags "-X github.com/rbansal42/bitbucket-cli/internal/cmd.Version=$(VERSION) -X github.com/rbansal42/bitbucket-cli/internal/cmd.BuildDate=$(BUILD_DATE)" build: go build $(LDFLAGS) -o bin/bb ./cmd/bb diff --git a/internal/cmd/pipeline/view.go b/internal/cmd/pipeline/view.go index cb7eed8..a7da2dc 100644 --- a/internal/cmd/pipeline/view.go +++ b/internal/cmd/pipeline/view.go @@ -4,7 +4,6 @@ import ( "context" "encoding/json" "fmt" - "time" "github.com/spf13/cobra" @@ -300,11 +299,3 @@ func capitalize(s string) string { } return string(s[0]-32) + s[1:] } - -// formatTimestamp formats a time as a readable timestamp -func formatTimestamp(t time.Time) string { - if t.IsZero() { - return "-" - } - return t.Format("Jan 2, 2006 15:04:05") -}