From 1424b62bb008d8a19004248af5deb02b59b37aeb Mon Sep 17 00:00:00 2001 From: Tetsuro Mikami Date: Tue, 27 Oct 2026 07:26:19 +0900 Subject: [PATCH 1/4] refactor: change module path to github.com/proto-tap/sql-tap --- .golangci.yaml | 2 +- broker/broker.go | 2 +- broker/broker_test.go | 4 ++-- buf.gen.yaml | 2 +- ci/ci.go | 2 +- ci/ci_test.go | 10 +++++----- clipboard/clipboard_test.go | 2 +- cmd/sql-tapd/main.go | 22 +++++++++++----------- cmd/sql-tapd/main_test.go | 2 +- config/config_test.go | 2 +- detect/detect_test.go | 2 +- dsn/dsn_test.go | 2 +- explain/build_args_test.go | 2 +- explain/explain_test.go | 2 +- gen/tap/v1/tap.pb.go | 4 ++-- go.mod | 2 +- main.go | 4 ++-- proxy/mysql/conn.go | 2 +- proxy/mysql/proxy.go | 2 +- proxy/mysql/proxy_test.go | 4 ++-- proxy/postgres/conn.go | 2 +- proxy/postgres/conn_test.go | 2 +- proxy/postgres/export_test.go | 2 +- proxy/postgres/proxy.go | 2 +- proxy/postgres/proxy_test.go | 4 ++-- query/bind_test.go | 2 +- query/normalize_test.go | 2 +- server/server.go | 8 ++++---- server/server_test.go | 8 ++++---- tui/analytics.go | 4 ++-- tui/editor.go | 2 +- tui/explain.go | 8 ++++---- tui/export.go | 4 ++-- tui/export_test.go | 4 ++-- tui/filter.go | 4 ++-- tui/filter_test.go | 4 ++-- tui/format.go | 2 +- tui/inspector.go | 4 ++-- tui/list.go | 6 +++--- tui/model.go | 10 +++++----- tui/timeline.go | 4 ++-- web/web.go | 6 +++--- web/web_test.go | 6 +++--- 43 files changed, 88 insertions(+), 88 deletions(-) diff --git a/.golangci.yaml b/.golangci.yaml index 36a1f76..c939cd1 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -7,7 +7,7 @@ formatters: settings: goimports: local-prefixes: - - github.com/mickamy/sql-tap + - github.com/proto-tap/sql-tap linters: default: all diff --git a/broker/broker.go b/broker/broker.go index 26fb02f..bf29287 100644 --- a/broker/broker.go +++ b/broker/broker.go @@ -3,7 +3,7 @@ package broker import ( "sync" - "github.com/mickamy/sql-tap/proxy" + "github.com/proto-tap/sql-tap/proxy" ) // Broker implements a non-blocking fan-out pub/sub for proxy events. diff --git a/broker/broker_test.go b/broker/broker_test.go index 93cd695..aa53c72 100644 --- a/broker/broker_test.go +++ b/broker/broker_test.go @@ -5,8 +5,8 @@ import ( "testing" "time" - "github.com/mickamy/sql-tap/broker" - "github.com/mickamy/sql-tap/proxy" + "github.com/proto-tap/sql-tap/broker" + "github.com/proto-tap/sql-tap/proxy" ) func TestBroker_PublishSubscribe(t *testing.T) { diff --git a/buf.gen.yaml b/buf.gen.yaml index 6465b78..e7c8031 100644 --- a/buf.gen.yaml +++ b/buf.gen.yaml @@ -3,7 +3,7 @@ managed: enabled: true override: - file_option: go_package_prefix - value: github.com/mickamy/sql-tap/gen + value: github.com/proto-tap/sql-tap/gen plugins: - remote: buf.build/protocolbuffers/go out: gen diff --git a/ci/ci.go b/ci/ci.go index e06b311..13a9094 100644 --- a/ci/ci.go +++ b/ci/ci.go @@ -14,7 +14,7 @@ import ( "google.golang.org/grpc/credentials/insecure" "google.golang.org/grpc/status" - tapv1 "github.com/mickamy/sql-tap/gen/tap/v1" + tapv1 "github.com/proto-tap/sql-tap/gen/tap/v1" ) // Result holds the CI run outcome. diff --git a/ci/ci_test.go b/ci/ci_test.go index 0b0dd54..15d892c 100644 --- a/ci/ci_test.go +++ b/ci/ci_test.go @@ -8,11 +8,11 @@ import ( "google.golang.org/protobuf/types/known/durationpb" - "github.com/mickamy/sql-tap/broker" - "github.com/mickamy/sql-tap/ci" - tapv1 "github.com/mickamy/sql-tap/gen/tap/v1" - "github.com/mickamy/sql-tap/proxy" - "github.com/mickamy/sql-tap/server" + "github.com/proto-tap/sql-tap/broker" + "github.com/proto-tap/sql-tap/ci" + tapv1 "github.com/proto-tap/sql-tap/gen/tap/v1" + "github.com/proto-tap/sql-tap/proxy" + "github.com/proto-tap/sql-tap/server" ) func TestResult_HasProblems(t *testing.T) { diff --git a/clipboard/clipboard_test.go b/clipboard/clipboard_test.go index 7afc47d..fa5933b 100644 --- a/clipboard/clipboard_test.go +++ b/clipboard/clipboard_test.go @@ -5,7 +5,7 @@ import ( "runtime" "testing" - "github.com/mickamy/sql-tap/clipboard" + "github.com/proto-tap/sql-tap/clipboard" ) func TestCopy(t *testing.T) { diff --git a/cmd/sql-tapd/main.go b/cmd/sql-tapd/main.go index 743b833..1045b42 100644 --- a/cmd/sql-tapd/main.go +++ b/cmd/sql-tapd/main.go @@ -16,17 +16,17 @@ import ( _ "github.com/go-sql-driver/mysql" _ "github.com/jackc/pgx/v5/stdlib" - "github.com/mickamy/sql-tap/broker" - "github.com/mickamy/sql-tap/config" - "github.com/mickamy/sql-tap/detect" - "github.com/mickamy/sql-tap/dsn" - "github.com/mickamy/sql-tap/explain" - "github.com/mickamy/sql-tap/proxy" - "github.com/mickamy/sql-tap/proxy/mysql" - "github.com/mickamy/sql-tap/proxy/postgres" - "github.com/mickamy/sql-tap/query" - "github.com/mickamy/sql-tap/server" - "github.com/mickamy/sql-tap/web" + "github.com/proto-tap/sql-tap/broker" + "github.com/proto-tap/sql-tap/config" + "github.com/proto-tap/sql-tap/detect" + "github.com/proto-tap/sql-tap/dsn" + "github.com/proto-tap/sql-tap/explain" + "github.com/proto-tap/sql-tap/proxy" + "github.com/proto-tap/sql-tap/proxy/mysql" + "github.com/proto-tap/sql-tap/proxy/postgres" + "github.com/proto-tap/sql-tap/query" + "github.com/proto-tap/sql-tap/server" + "github.com/proto-tap/sql-tap/web" ) var version = "dev" diff --git a/cmd/sql-tapd/main_test.go b/cmd/sql-tapd/main_test.go index 280bb60..87196e0 100644 --- a/cmd/sql-tapd/main_test.go +++ b/cmd/sql-tapd/main_test.go @@ -3,7 +3,7 @@ package main import ( "testing" - "github.com/mickamy/sql-tap/proxy" + "github.com/proto-tap/sql-tap/proxy" ) func TestIsSelectQuery(t *testing.T) { diff --git a/config/config_test.go b/config/config_test.go index 8f47747..c4923b8 100644 --- a/config/config_test.go +++ b/config/config_test.go @@ -6,7 +6,7 @@ import ( "testing" "time" - "github.com/mickamy/sql-tap/config" + "github.com/proto-tap/sql-tap/config" ) func TestDefault(t *testing.T) { diff --git a/detect/detect_test.go b/detect/detect_test.go index 7232af8..2ae613d 100644 --- a/detect/detect_test.go +++ b/detect/detect_test.go @@ -4,7 +4,7 @@ import ( "testing" "time" - "github.com/mickamy/sql-tap/detect" + "github.com/proto-tap/sql-tap/detect" ) func TestBelowThreshold(t *testing.T) { diff --git a/dsn/dsn_test.go b/dsn/dsn_test.go index 34e3c7f..2afa6b2 100644 --- a/dsn/dsn_test.go +++ b/dsn/dsn_test.go @@ -3,7 +3,7 @@ package dsn_test import ( "testing" - "github.com/mickamy/sql-tap/dsn" + "github.com/proto-tap/sql-tap/dsn" ) func TestDetectDriver(t *testing.T) { diff --git a/explain/build_args_test.go b/explain/build_args_test.go index ffdd1c8..ec4a54f 100644 --- a/explain/build_args_test.go +++ b/explain/build_args_test.go @@ -4,7 +4,7 @@ import ( "testing" "time" - "github.com/mickamy/sql-tap/explain" + "github.com/proto-tap/sql-tap/explain" ) func TestParseTimestampParams(t *testing.T) { diff --git a/explain/explain_test.go b/explain/explain_test.go index 957fc85..54aa35c 100644 --- a/explain/explain_test.go +++ b/explain/explain_test.go @@ -3,7 +3,7 @@ package explain_test import ( "testing" - "github.com/mickamy/sql-tap/explain" + "github.com/proto-tap/sql-tap/explain" ) func TestMode_String(t *testing.T) { diff --git a/gen/tap/v1/tap.pb.go b/gen/tap/v1/tap.pb.go index d8c7172..bcc2771 100644 --- a/gen/tap/v1/tap.pb.go +++ b/gen/tap/v1/tap.pb.go @@ -373,9 +373,9 @@ const file_tap_v1_tap_proto_rawDesc = "" + "\n" + "TapService\x126\n" + "\x05Watch\x12\x14.tap.v1.WatchRequest\x1a\x15.tap.v1.WatchResponse0\x01\x12:\n" + - "\aExplain\x12\x16.tap.v1.ExplainRequest\x1a\x17.tap.v1.ExplainResponseB|\n" + + "\aExplain\x12\x16.tap.v1.ExplainRequest\x1a\x17.tap.v1.ExplainResponseB~\n" + "\n" + - "com.tap.v1B\bTapProtoP\x01Z+github.com/mickamy/sql-tap/gen/tap/v1;tapv1\xa2\x02\x03TXX\xaa\x02\x06Tap.V1\xca\x02\x06Tap\\V1\xe2\x02\x12Tap\\V1\\GPBMetadata\xea\x02\aTap::V1b\x06proto3" + "com.tap.v1B\bTapProtoP\x01Z-github.com/proto-tap/sql-tap/gen/tap/v1;tapv1\xa2\x02\x03TXX\xaa\x02\x06Tap.V1\xca\x02\x06Tap\\V1\xe2\x02\x12Tap\\V1\\GPBMetadata\xea\x02\aTap::V1b\x06proto3" var ( file_tap_v1_tap_proto_rawDescOnce sync.Once diff --git a/go.mod b/go.mod index 1ecc35d..551ca18 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/mickamy/sql-tap +module github.com/proto-tap/sql-tap go 1.26.1 diff --git a/main.go b/main.go index ebe138b..aa065f9 100644 --- a/main.go +++ b/main.go @@ -10,8 +10,8 @@ import ( tea "github.com/charmbracelet/bubbletea" - "github.com/mickamy/sql-tap/ci" - "github.com/mickamy/sql-tap/tui" + "github.com/proto-tap/sql-tap/ci" + "github.com/proto-tap/sql-tap/tui" ) var version = "dev" diff --git a/proxy/mysql/conn.go b/proxy/mysql/conn.go index e9f50f6..0355f89 100644 --- a/proxy/mysql/conn.go +++ b/proxy/mysql/conn.go @@ -16,7 +16,7 @@ import ( "github.com/google/uuid" - "github.com/mickamy/sql-tap/proxy" + "github.com/proto-tap/sql-tap/proxy" ) // MySQL binary protocol field types. diff --git a/proxy/mysql/proxy.go b/proxy/mysql/proxy.go index 90e0187..27d6b69 100644 --- a/proxy/mysql/proxy.go +++ b/proxy/mysql/proxy.go @@ -7,7 +7,7 @@ import ( "net" "sync" - "github.com/mickamy/sql-tap/proxy" + "github.com/proto-tap/sql-tap/proxy" ) var _ proxy.Proxy = (*Proxy)(nil) diff --git a/proxy/mysql/proxy_test.go b/proxy/mysql/proxy_test.go index 89af258..3f5495f 100644 --- a/proxy/mysql/proxy_test.go +++ b/proxy/mysql/proxy_test.go @@ -11,8 +11,8 @@ import ( _ "github.com/go-sql-driver/mysql" "github.com/testcontainers/testcontainers-go/modules/mysql" - "github.com/mickamy/sql-tap/proxy" - mproxy "github.com/mickamy/sql-tap/proxy/mysql" + "github.com/proto-tap/sql-tap/proxy" + mproxy "github.com/proto-tap/sql-tap/proxy/mysql" ) const ( diff --git a/proxy/postgres/conn.go b/proxy/postgres/conn.go index 05f23ef..e9f9171 100644 --- a/proxy/postgres/conn.go +++ b/proxy/postgres/conn.go @@ -15,7 +15,7 @@ import ( "github.com/google/uuid" pgproto "github.com/jackc/pgproto3/v2" - "github.com/mickamy/sql-tap/proxy" + "github.com/proto-tap/sql-tap/proxy" ) // encoder is satisfied by both FrontendMessage and BackendMessage. diff --git a/proxy/postgres/conn_test.go b/proxy/postgres/conn_test.go index 477643d..f61c91b 100644 --- a/proxy/postgres/conn_test.go +++ b/proxy/postgres/conn_test.go @@ -5,7 +5,7 @@ import ( "testing" "time" - pgproxy "github.com/mickamy/sql-tap/proxy/postgres" + pgproxy "github.com/proto-tap/sql-tap/proxy/postgres" ) // encodeMicros encodes microseconds as big-endian 8 bytes (PostgreSQL binary timestamp format). diff --git a/proxy/postgres/export_test.go b/proxy/postgres/export_test.go index c8d65ff..7f06588 100644 --- a/proxy/postgres/export_test.go +++ b/proxy/postgres/export_test.go @@ -3,7 +3,7 @@ package postgres import ( pgproto "github.com/jackc/pgproto3/v2" - "github.com/mickamy/sql-tap/proxy" + "github.com/proto-tap/sql-tap/proxy" ) // Exported wrappers for internal symbols used in package-external tests. diff --git a/proxy/postgres/proxy.go b/proxy/postgres/proxy.go index b5dd24b..d2b9c70 100644 --- a/proxy/postgres/proxy.go +++ b/proxy/postgres/proxy.go @@ -7,7 +7,7 @@ import ( "net" "sync" - "github.com/mickamy/sql-tap/proxy" + "github.com/proto-tap/sql-tap/proxy" ) var _ proxy.Proxy = (*Proxy)(nil) diff --git a/proxy/postgres/proxy_test.go b/proxy/postgres/proxy_test.go index 97292aa..5440624 100644 --- a/proxy/postgres/proxy_test.go +++ b/proxy/postgres/proxy_test.go @@ -12,8 +12,8 @@ import ( "github.com/testcontainers/testcontainers-go" "github.com/testcontainers/testcontainers-go/wait" - "github.com/mickamy/sql-tap/proxy" - pproxy "github.com/mickamy/sql-tap/proxy/postgres" + "github.com/proto-tap/sql-tap/proxy" + pproxy "github.com/proto-tap/sql-tap/proxy/postgres" ) const ( diff --git a/query/bind_test.go b/query/bind_test.go index a690476..ed3918d 100644 --- a/query/bind_test.go +++ b/query/bind_test.go @@ -3,7 +3,7 @@ package query_test import ( "testing" - "github.com/mickamy/sql-tap/query" + "github.com/proto-tap/sql-tap/query" ) func TestBind(t *testing.T) { diff --git a/query/normalize_test.go b/query/normalize_test.go index c0d3d7c..5d3602a 100644 --- a/query/normalize_test.go +++ b/query/normalize_test.go @@ -3,7 +3,7 @@ package query_test import ( "testing" - "github.com/mickamy/sql-tap/query" + "github.com/proto-tap/sql-tap/query" ) func TestNormalize(t *testing.T) { diff --git a/server/server.go b/server/server.go index 9497616..fc4ea2c 100644 --- a/server/server.go +++ b/server/server.go @@ -14,10 +14,10 @@ import ( "google.golang.org/protobuf/types/known/durationpb" "google.golang.org/protobuf/types/known/timestamppb" - "github.com/mickamy/sql-tap/broker" - "github.com/mickamy/sql-tap/explain" - tapv1 "github.com/mickamy/sql-tap/gen/tap/v1" - "github.com/mickamy/sql-tap/proxy" + "github.com/proto-tap/sql-tap/broker" + "github.com/proto-tap/sql-tap/explain" + tapv1 "github.com/proto-tap/sql-tap/gen/tap/v1" + "github.com/proto-tap/sql-tap/proxy" ) // Server exposes a gRPC TapService for TUI clients to connect to. diff --git a/server/server_test.go b/server/server_test.go index d20a326..42eccc1 100644 --- a/server/server_test.go +++ b/server/server_test.go @@ -10,10 +10,10 @@ import ( "google.golang.org/grpc/credentials/insecure" "google.golang.org/grpc/status" - "github.com/mickamy/sql-tap/broker" - tapv1 "github.com/mickamy/sql-tap/gen/tap/v1" - "github.com/mickamy/sql-tap/proxy" - "github.com/mickamy/sql-tap/server" + "github.com/proto-tap/sql-tap/broker" + tapv1 "github.com/proto-tap/sql-tap/gen/tap/v1" + "github.com/proto-tap/sql-tap/proxy" + "github.com/proto-tap/sql-tap/server" ) func startServer(t *testing.T, b *broker.Broker) tapv1.TapServiceClient { diff --git a/tui/analytics.go b/tui/analytics.go index 3008591..97cbba5 100644 --- a/tui/analytics.go +++ b/tui/analytics.go @@ -12,8 +12,8 @@ import ( tea "github.com/charmbracelet/bubbletea" "github.com/charmbracelet/lipgloss" - "github.com/mickamy/sql-tap/clipboard" - "github.com/mickamy/sql-tap/proxy" + "github.com/proto-tap/sql-tap/clipboard" + "github.com/proto-tap/sql-tap/proxy" ) type analyticsSortMode int diff --git a/tui/editor.go b/tui/editor.go index 6903629..5cb7609 100644 --- a/tui/editor.go +++ b/tui/editor.go @@ -9,7 +9,7 @@ import ( tea "github.com/charmbracelet/bubbletea" - "github.com/mickamy/sql-tap/explain" + "github.com/proto-tap/sql-tap/explain" ) type editorResultMsg struct { diff --git a/tui/explain.go b/tui/explain.go index b372881..3b8758e 100644 --- a/tui/explain.go +++ b/tui/explain.go @@ -8,10 +8,10 @@ import ( "github.com/charmbracelet/lipgloss" "github.com/charmbracelet/x/ansi" - "github.com/mickamy/sql-tap/clipboard" - "github.com/mickamy/sql-tap/explain" - tapv1 "github.com/mickamy/sql-tap/gen/tap/v1" - "github.com/mickamy/sql-tap/highlight" + "github.com/proto-tap/sql-tap/clipboard" + "github.com/proto-tap/sql-tap/explain" + tapv1 "github.com/proto-tap/sql-tap/gen/tap/v1" + "github.com/proto-tap/sql-tap/highlight" ) func (m Model) updateExplain(msg tea.KeyMsg) (tea.Model, tea.Cmd) { diff --git a/tui/export.go b/tui/export.go index be90f7b..c35e27f 100644 --- a/tui/export.go +++ b/tui/export.go @@ -10,8 +10,8 @@ import ( "strings" "time" - tapv1 "github.com/mickamy/sql-tap/gen/tap/v1" - "github.com/mickamy/sql-tap/proxy" + tapv1 "github.com/proto-tap/sql-tap/gen/tap/v1" + "github.com/proto-tap/sql-tap/proxy" ) type exportFormat int diff --git a/tui/export_test.go b/tui/export_test.go index fb45dba..cbac7bc 100644 --- a/tui/export_test.go +++ b/tui/export_test.go @@ -10,8 +10,8 @@ import ( "google.golang.org/protobuf/types/known/durationpb" "google.golang.org/protobuf/types/known/timestamppb" - tapv1 "github.com/mickamy/sql-tap/gen/tap/v1" - "github.com/mickamy/sql-tap/proxy" + tapv1 "github.com/proto-tap/sql-tap/gen/tap/v1" + "github.com/proto-tap/sql-tap/proxy" ) func makeExportEvent( diff --git a/tui/filter.go b/tui/filter.go index 1d847a3..d388c08 100644 --- a/tui/filter.go +++ b/tui/filter.go @@ -5,8 +5,8 @@ import ( "strings" "time" - tapv1 "github.com/mickamy/sql-tap/gen/tap/v1" - "github.com/mickamy/sql-tap/proxy" + tapv1 "github.com/proto-tap/sql-tap/gen/tap/v1" + "github.com/proto-tap/sql-tap/proxy" ) type filterKind int diff --git a/tui/filter_test.go b/tui/filter_test.go index 9d3a3c7..82d94e5 100644 --- a/tui/filter_test.go +++ b/tui/filter_test.go @@ -6,8 +6,8 @@ import ( "google.golang.org/protobuf/types/known/durationpb" - tapv1 "github.com/mickamy/sql-tap/gen/tap/v1" - "github.com/mickamy/sql-tap/proxy" + tapv1 "github.com/proto-tap/sql-tap/gen/tap/v1" + "github.com/proto-tap/sql-tap/proxy" ) func TestParseFilter(t *testing.T) { diff --git a/tui/format.go b/tui/format.go index f091c88..5447e02 100644 --- a/tui/format.go +++ b/tui/format.go @@ -11,7 +11,7 @@ import ( "google.golang.org/protobuf/types/known/durationpb" "google.golang.org/protobuf/types/known/timestamppb" - "github.com/mickamy/sql-tap/proxy" + "github.com/proto-tap/sql-tap/proxy" ) func formatTimeFull(t *timestamppb.Timestamp) string { diff --git a/tui/inspector.go b/tui/inspector.go index 1182aa6..66b4e51 100644 --- a/tui/inspector.go +++ b/tui/inspector.go @@ -7,8 +7,8 @@ import ( tea "github.com/charmbracelet/bubbletea" "github.com/charmbracelet/lipgloss" - "github.com/mickamy/sql-tap/explain" - "github.com/mickamy/sql-tap/highlight" + "github.com/proto-tap/sql-tap/explain" + "github.com/proto-tap/sql-tap/highlight" ) func (m Model) updateInspect(msg tea.KeyMsg) (tea.Model, tea.Cmd) { diff --git a/tui/list.go b/tui/list.go index c691ed2..10fac15 100644 --- a/tui/list.go +++ b/tui/list.go @@ -6,9 +6,9 @@ import ( "github.com/charmbracelet/lipgloss" - tapv1 "github.com/mickamy/sql-tap/gen/tap/v1" - "github.com/mickamy/sql-tap/highlight" - "github.com/mickamy/sql-tap/proxy" + tapv1 "github.com/proto-tap/sql-tap/gen/tap/v1" + "github.com/proto-tap/sql-tap/highlight" + "github.com/proto-tap/sql-tap/proxy" ) func eventStatus(ev *tapv1.QueryEvent) string { diff --git a/tui/model.go b/tui/model.go index 3ce9ac0..93c7210 100644 --- a/tui/model.go +++ b/tui/model.go @@ -12,11 +12,11 @@ import ( "google.golang.org/grpc" "google.golang.org/grpc/credentials/insecure" - "github.com/mickamy/sql-tap/clipboard" - "github.com/mickamy/sql-tap/explain" - tapv1 "github.com/mickamy/sql-tap/gen/tap/v1" - "github.com/mickamy/sql-tap/proxy" - "github.com/mickamy/sql-tap/query" + "github.com/proto-tap/sql-tap/clipboard" + "github.com/proto-tap/sql-tap/explain" + tapv1 "github.com/proto-tap/sql-tap/gen/tap/v1" + "github.com/proto-tap/sql-tap/proxy" + "github.com/proto-tap/sql-tap/query" ) type viewMode int diff --git a/tui/timeline.go b/tui/timeline.go index f4d5783..e99716a 100644 --- a/tui/timeline.go +++ b/tui/timeline.go @@ -9,8 +9,8 @@ import ( tea "github.com/charmbracelet/bubbletea" "github.com/charmbracelet/lipgloss" - tapv1 "github.com/mickamy/sql-tap/gen/tap/v1" - "github.com/mickamy/sql-tap/proxy" + tapv1 "github.com/proto-tap/sql-tap/gen/tap/v1" + "github.com/proto-tap/sql-tap/proxy" ) const tlLabelWidth = 40 diff --git a/web/web.go b/web/web.go index 0606a5b..4d42b66 100644 --- a/web/web.go +++ b/web/web.go @@ -10,9 +10,9 @@ import ( "net/http" "time" - "github.com/mickamy/sql-tap/broker" - "github.com/mickamy/sql-tap/explain" - "github.com/mickamy/sql-tap/proxy" + "github.com/proto-tap/sql-tap/broker" + "github.com/proto-tap/sql-tap/explain" + "github.com/proto-tap/sql-tap/proxy" ) //go:embed static diff --git a/web/web_test.go b/web/web_test.go index a855950..2b96a7d 100644 --- a/web/web_test.go +++ b/web/web_test.go @@ -10,9 +10,9 @@ import ( "testing" "time" - "github.com/mickamy/sql-tap/broker" - "github.com/mickamy/sql-tap/proxy" - "github.com/mickamy/sql-tap/web" + "github.com/proto-tap/sql-tap/broker" + "github.com/proto-tap/sql-tap/proxy" + "github.com/proto-tap/sql-tap/web" ) func TestStaticFiles(t *testing.T) { From 9fb4fe1f239708b4b5211bf5ea3198a077f891bd Mon Sep 17 00:00:00 2001 From: Tetsuro Mikami Date: Tue, 27 Oct 2026 07:30:38 +0900 Subject: [PATCH 2/4] build: publish homebrew cask to proto-tap/tap --- .github/workflows/release.yml | 1 + .goreleaser.yaml | 44 +++++++++++++++++++++-------------- 2 files changed, 28 insertions(+), 17 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 49e8bbf..37ada7f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -29,3 +29,4 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} TAP_GITHUB_TOKEN: ${{ secrets.TAP_GITHUB_TOKEN }} + MICKAMY_GITHUB_TOKEN: ${{ secrets.MICKAMY_GITHUB_TOKEN }} diff --git a/.goreleaser.yaml b/.goreleaser.yaml index b84d007..eef41ff 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -36,33 +36,43 @@ archives: - tar.gz name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}" -brews: +homebrew_casks: - name: sql-tap - homepage: https://github.com/mickamy/sql-tap + homepage: https://github.com/proto-tap/sql-tap description: Watch SQL traffic in real-time with a TUI - directory: Formula - install: | - bin.install "sql-tap" - bin.install "sql-tapd" + binaries: + - sql-tap + - sql-tapd + hooks: + post: + install_steps: | + on_macos do + run "/usr/bin/xattr", args: ["-dr", "com.apple.quarantine", "{{ .StagedPath }}"] + end repository: - owner: mickamy + owner: proto-tap name: homebrew-tap token: "{{ .Env.TAP_GITHUB_TOKEN }}" -nix: - # Publishes a Nix derivation that installs pre-built binaries to - # the mickamy/nur-packages repository on each release. - # Prerequisites: - # 1. Create the mickamy/nur-packages repository (NUR-compatible layout). - # 2. Add "install nix" step to the release workflow so nix-hash is available. +# Points existing mickamy/tap users to the cask. Remove after the migration release. +brews: - name: sql-tap - homepage: https://github.com/mickamy/sql-tap + homepage: https://github.com/proto-tap/sql-tap description: Watch SQL traffic in real-time with a TUI - license: mit + directory: Formula + install: | + bin.install "sql-tap" + bin.install "sql-tapd" + custom_block: | + disable! date: "2027-04-27", because: "has moved to the proto-tap/tap cask", replacement_cask: "proto-tap/tap/sql-tap" + caveats: | + sql-tap has moved to the proto-tap/tap cask. Switch with: + brew uninstall sql-tap + brew install --cask proto-tap/tap/sql-tap repository: owner: mickamy - name: nur-packages - token: "{{ .Env.TAP_GITHUB_TOKEN }}" + name: homebrew-tap + token: "{{ .Env.MICKAMY_GITHUB_TOKEN }}" changelog: sort: asc From 1e6819d01a9f1cb8b7954b2506fa0f026463ccea Mon Sep 17 00:00:00 2001 From: Tetsuro Mikami Date: Tue, 27 Oct 2026 07:33:27 +0900 Subject: [PATCH 3/4] docs: update install instructions for proto-tap --- README.md | 25 +++++++++++++++++-------- flake.nix | 2 +- 2 files changed, 18 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index bb0a636..43e6679 100644 --- a/README.md +++ b/README.md @@ -16,20 +16,29 @@ your application code. ### Homebrew ```bash -brew install mickamy/tap/sql-tap +brew install --cask proto-tap/tap/sql-tap ``` +> [!NOTE] +> sql-tap has moved from the `mickamy/tap` formula to the `proto-tap/tap` cask. If you installed it from `mickamy/tap`, +> switch with: +> +> ```bash +> brew uninstall sql-tap +> brew install --cask proto-tap/tap/sql-tap +> ``` + ### Go ```bash -go install github.com/mickamy/sql-tap@latest -go install github.com/mickamy/sql-tap/cmd/sql-tapd@latest +go install github.com/proto-tap/sql-tap@latest +go install github.com/proto-tap/sql-tap/cmd/sql-tapd@latest ``` ### Build from source ```bash -git clone https://github.com/mickamy/sql-tap.git +git clone https://github.com/proto-tap/sql-tap.git cd sql-tap make install ``` @@ -39,7 +48,7 @@ make install **Using the flake directly** ```bash -nix profile install github:mickamy/sql-tap +nix profile install github:proto-tap/sql-tap ``` **In a `devenv.sh` project** @@ -49,7 +58,7 @@ Add `sql-tap` as a flake input in `devenv.yaml`: ```yaml inputs: sql-tap: - url: github:mickamy/sql-tap + url: github:proto-tap/sql-tap ``` Then reference it in `devenv.nix`: @@ -69,7 +78,7 @@ Then reference it in `devenv.nix`: FROM alpine:3 ARG SQL_TAP_VERSION=0.0.1 ARG TARGETARCH -ADD https://github.com/mickamy/sql-tap/releases/download/v${SQL_TAP_VERSION}/sql-tap_${SQL_TAP_VERSION}_linux_${TARGETARCH}.tar.gz /tmp/sql-tap.tar.gz +ADD https://github.com/proto-tap/sql-tap/releases/download/v${SQL_TAP_VERSION}/sql-tap_${SQL_TAP_VERSION}_linux_${TARGETARCH}.tar.gz /tmp/sql-tap.tar.gz RUN tar -xzf /tmp/sql-tap.tar.gz -C /usr/local/bin sql-tapd && rm /tmp/sql-tap.tar.gz ENTRYPOINT ["sql-tapd"] ``` @@ -399,7 +408,7 @@ sql-tapd parses the database wire protocol (PostgreSQL, MySQL, or TiDB) to inter ## See also -- **[grpc-tap](https://github.com/mickamy/grpc-tap)** — Same concept for gRPC. Transparent HTTP/2 reverse proxy that +- **[grpc-tap](https://github.com/proto-tap/grpc-tap)** — Same concept for gRPC. Transparent HTTP/2 reverse proxy that captures every gRPC / gRPC-Web / Connect call with TUI + Web UI. ## License diff --git a/flake.nix b/flake.nix index f7d4e14..3db0971 100644 --- a/flake.nix +++ b/flake.nix @@ -44,7 +44,7 @@ view transactions, and run EXPLAIN — all without changing your application code. ''; - homepage = "https://github.com/mickamy/sql-tap"; + homepage = "https://github.com/proto-tap/sql-tap"; license = licenses.mit; maintainers = [ ]; mainProgram = "sql-tap"; From 8803d04ae10747539af5965d2fad9ec451c36669 Mon Sep 17 00:00:00 2001 From: Tetsuro Mikami Date: Tue, 27 Oct 2026 07:34:09 +0900 Subject: [PATCH 4/4] chore: remove FUNDING.yaml in favor of org-level config --- .github/FUNDING.yaml | 1 - 1 file changed, 1 deletion(-) delete mode 100644 .github/FUNDING.yaml diff --git a/.github/FUNDING.yaml b/.github/FUNDING.yaml deleted file mode 100644 index dc1db3a..0000000 --- a/.github/FUNDING.yaml +++ /dev/null @@ -1 +0,0 @@ -github: [mickamy]