Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove tctl code #2461

Merged
merged 1 commit into from
Mar 22, 2022
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
22 changes: 0 additions & 22 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ archives:
- id: default
builds:
- temporal-server
- tctl
- temporal-cassandra-tool
- temporal-sql-tool
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
Expand All @@ -20,7 +19,6 @@ archives:
- id: no-cgo
builds:
- temporal-server-no-cgo
- tctl-no-cgo
- temporal-cassandra-tool-no-cgo
- temporal-sql-tool-no-cgo
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}_no_cgo"
Expand Down Expand Up @@ -51,26 +49,6 @@ builds:
goarch:
- amd64
- arm64
- id: tctl
dir: cmd/tools/cli
binary: tctl
goos:
- linux
- darwin
- windows
goarch:
- amd64
- arm64
- id: tctl-no-cgo
dir: cmd/tools/cli
binary: tctl
env:
- CGO_ENABLED=0
goos:
- linux
goarch:
- amd64
- arm64
- id: temporal-cassandra-tool
dir: cmd/tools/cassandra
binary: temporal-cassandra-tool
Expand Down
14 changes: 2 additions & 12 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
# Install all tools and builds binaries.
install: update-tools bins

# Rebuild binaries (used for docker builds).
bins: clean-bins temporal-server tctl plugins temporal-cassandra-tool temporal-sql-tool
# Rebuild binaries (used by Dockerfile).
bins: clean-bins temporal-server temporal-cassandra-tool temporal-sql-tool

# Install all tools, recompile proto files, run all possible checks and tests (long but comprehensive).
all: update-tools clean proto bins check test
Expand Down Expand Up @@ -171,8 +171,6 @@ copyright-proto:
##### Binaries #####
clean-bins:
@printf $(COLOR) "Delete old binaries..."
@rm -f tctl
@rm -f tctl-authorization-plugin
@rm -f temporal-server
@rm -f temporal-cassandra-tool
@rm -f temporal-sql-tool
Expand All @@ -182,14 +180,6 @@ temporal-server:
@./develop/scripts/create_build_info_data.sh
go build -o temporal-server ./cmd/server

tctl:
@printf $(COLOR) "Build tctl with CGO_ENABLED=$(CGO_ENABLED) for $(GOOS)/$(GOARCH)..."
go build -o tctl ./cmd/tools/cli

plugins:
@printf $(COLOR) "Build tctl-authorization-plugin with CGO_ENABLED=$(CGO_ENABLED) for $(GOOS)/$(GOARCH)..."
go build -o tctl-authorization-plugin ./cmd/tools/cli/plugins/authorization

temporal-cassandra-tool:
@printf $(COLOR) "Build temporal-cassandra-tool with CGO_ENABLED=$(CGO_ENABLED) for $(GOOS)/$(GOARCH)..."
go build -o temporal-cassandra-tool ./cmd/tools/cassandra
Expand Down
38 changes: 0 additions & 38 deletions cmd/tools/cli/main.go

This file was deleted.

63 changes: 0 additions & 63 deletions cmd/tools/cli/plugins/authorization/main.go

This file was deleted.

12 changes: 0 additions & 12 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,17 @@ require (
github.com/cactus/go-statsd-client/statsd v0.0.0-20200423205355-cb0885a1018c
github.com/dgryski/go-farm v0.0.0-20200201041132-a6ae2369ad13
github.com/emirpasic/gods v1.12.0
github.com/fatih/color v1.13.0
github.com/go-sql-driver/mysql v1.5.0
github.com/gocql/gocql v0.0.0-20211222173705-d73e6b1002a7
github.com/gogo/protobuf v1.3.2
github.com/gogo/status v1.1.0
github.com/golang/mock v1.6.0
github.com/google/uuid v1.3.0
github.com/gorilla/websocket v1.4.2
github.com/hashicorp/go-hclog v1.1.0
github.com/hashicorp/go-plugin v1.4.3
github.com/iancoleman/strcase v0.2.0
github.com/jmoiron/sqlx v1.3.4
github.com/jonboulle/clockwork v0.2.2
github.com/lib/pq v1.10.4
github.com/mattn/go-sqlite3 v1.14.11
github.com/olekukonko/tablewriter v0.0.5
github.com/olivere/elastic v6.2.37+incompatible
github.com/olivere/elastic/v7 v7.0.31
github.com/pborman/uuid v1.2.1
Expand Down Expand Up @@ -83,24 +78,17 @@ require (
github.com/googleapis/gax-go/v2 v2.1.1 // indirect
github.com/grpc-ecosystem/go-grpc-middleware v1.3.0 // indirect
github.com/hailocab/go-hostpool v0.0.0-20160125115350-e80d13ce29ed // indirect
github.com/hashicorp/yamux v0.0.0-20211028200310-0bc27b27de87 // indirect
github.com/jmespath/go-jmespath v0.4.0 // indirect
github.com/josharian/intern v1.0.0 // indirect
github.com/mailru/easyjson v0.7.7 // indirect
github.com/mattn/go-colorable v0.1.12 // indirect
github.com/mattn/go-isatty v0.0.14 // indirect
github.com/mattn/go-runewidth v0.0.13 // indirect
github.com/matttproud/golang_protobuf_extensions v1.0.1 // indirect
github.com/mitchellh/go-testing-interface v1.14.1 // indirect
github.com/oklog/run v1.1.0 // indirect
github.com/opentracing/opentracing-go v1.2.0 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/prometheus/client_model v0.2.0 // indirect
github.com/prometheus/common v0.32.1 // indirect
github.com/prometheus/procfs v0.7.3 // indirect
github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 // indirect
github.com/rivo/uniseg v0.2.0 // indirect
github.com/robfig/cron v1.2.0 // indirect
github.com/russross/blackfriday/v2 v2.1.0 // indirect
github.com/sirupsen/logrus v1.8.1 // indirect
Expand Down
Loading