Skip to content

Commit 4867aa2

Browse files
authored
refactor: rename to goto (#2)
chore: change odpf references to goto
1 parent 5d3d7ad commit 4867aa2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

97 files changed

+12081
-361
lines changed

.golangci.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -112,12 +112,12 @@ linters-settings:
112112
checks:
113113
- "all"
114114
goimports:
115-
local-prefixes: github.com/odpf/entropy
115+
local-prefixes: github.com/goto/entropy
116116
gci:
117117
sections:
118118
- standard # Captures all standard packages if they do not match another section.
119119
- default # Contains all imports that could not be matched to another section type.
120-
- prefix(github.com/odpf/entropy) # Groups all imports with the specified Prefix.
120+
- prefix(github.com/goto/entropy) # Groups all imports with the specified Prefix.
121121
gocritic:
122122
disabled-checks:
123123
- ifElseChain

.goreleaser.yml

+7-7
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ builds:
1010
binary: entropy
1111
flags: [-a]
1212
ldflags:
13-
- -X github.com/odpf/entropy/pkg/version.Version={{.Tag}}
14-
- -X github.com/odpf/entropy/pkg/version.Commit={{.FullCommit}}
15-
- -X github.com/odpf/entropy/pkg/version.BuildTime={{.Date}}
13+
- -X github.com/goto/entropy/pkg/version.Version={{.Tag}}
14+
- -X github.com/goto/entropy/pkg/version.Commit={{.FullCommit}}
15+
- -X github.com/goto/entropy/pkg/version.BuildTime={{.Date}}
1616
goos:
1717
- darwin
1818
- linux
@@ -58,13 +58,13 @@ dockers:
5858
- entropy
5959
dockerfile: Dockerfile
6060
image_templates:
61-
- 'docker.io/odpf/{{.ProjectName}}:latest'
62-
- 'docker.io/odpf/{{.ProjectName}}:{{ .Version }}'
63-
- 'docker.io/odpf/{{.ProjectName}}:{{ .Version }}-amd64'
61+
- 'docker.io/gotocompany/{{.ProjectName}}:latest'
62+
- 'docker.io/gotocompany/{{.ProjectName}}:{{ .Version }}'
63+
- 'docker.io/gotocompany/{{.ProjectName}}:{{ .Version }}-amd64'
6464

6565
brews:
6666
- name: entropy
67-
homepage: "https://github.com/odpf/entropy"
67+
homepage: "https://github.com/goto/entropy"
6868
description: "Infrastructure orchestration tool."
6969
tap:
7070
owner: odpf

Makefile

+21-5
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,31 @@
1-
NAME=github.com/odpf/entropy
1+
NAME=github.com/goto/entropy
22
VERSION=$(shell git describe --tags --always --first-parent 2>/dev/null)
33
COMMIT=$(shell git rev-parse --short HEAD)
4+
PROTON_COMMIT="5b5dc727b525925bcec025b355983ca61d7ccf68"
45
BUILD_TIME=$(shell date)
56
COVERAGE_DIR=coverage
67
BUILD_DIR=dist
78
EXE=entropy
89

9-
.PHONY: all build clean tidy format test test-coverage
10+
.PHONY: all build clean tidy format test test-coverage proto
1011

1112
all: clean test build format lint
1213

1314
tidy:
1415
@echo "Tidy up go.mod..."
1516
@go mod tidy -v
1617

17-
install:
18-
@echo "Installing Entropy to ${GOBIN}..."
19-
@go install
18+
install: ## install required dependencies
19+
@echo "> installing dependencies"
20+
go get -d github.com/vektra/mockery/[email protected]
21+
go get -d google.golang.org/protobuf/cmd/[email protected]
22+
go get google.golang.org/protobuf/[email protected]
23+
go get google.golang.org/[email protected]
24+
go get -d google.golang.org/grpc/cmd/[email protected]
25+
go get -d github.com/grpc-ecosystem/grpc-gateway/v2/[email protected]
26+
go get -d github.com/grpc-ecosystem/grpc-gateway/v2/[email protected]
27+
go get -d github.com/bufbuild/buf/cmd/[email protected]
28+
go get github.com/envoyproxy/[email protected]
2029

2130
format:
2231
@echo "Running gofumpt..."
@@ -46,6 +55,13 @@ build: clean
4655
@echo "Running build for '${VERSION}' in '${BUILD_DIR}/'..."
4756
@CGO_ENABLED=0 go build -ldflags '-X "${NAME}/pkg/version.Version=${VERSION}" -X "${NAME}/pkg/version.Commit=${COMMIT}" -X "${NAME}/pkg/version.BuildTime=${BUILD_TIME}"' -o ${BUILD_DIR}/${EXE}
4857

58+
proto: ## Generate the protobuf files
59+
@echo " > generating protobuf from goto/proton"
60+
@echo " > [info] make sure correct version of dependencies are installed using 'make install'"
61+
@rm -rf ./proto
62+
@buf generate https://github.com/goto/proton/archive/${PROTON_COMMIT}.zip#strip_components=1 --template buf.gen.yaml --path gotocompany/entropy --path gotocompany/common
63+
@echo " > protobuf compilation finished"
64+
4965
download:
5066
@go mod download
5167

README.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Entropy
22

3-
![test workflow](https://github.com/odpf/entropy/actions/workflows/test.yml/badge.svg)
4-
[![Go Report Card](https://goreportcard.com/badge/github.com/odpf/entropy)](https://goreportcard.com/report/github.com/odpf/entropy)
5-
[![Version](https://img.shields.io/github/v/release/odpf/entropy?logo=semantic-release)](Version)
3+
![test workflow](https://github.com/goto/entropy/actions/workflows/test.yml/badge.svg)
4+
[![Go Report Card](https://goreportcard.com/badge/github.com/goto/entropy)](https://goreportcard.com/report/github.com/goto/entropy)
5+
[![Version](https://img.shields.io/github/v/release/goto/entropy?logo=semantic-release)](Version)
66
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg?logo=apache)](LICENSE)
77

88
Entropy is an extensible infrastructure orchestration and application deployment tool. Entropy provides features
@@ -23,7 +23,7 @@ Install Entropy on macOS, Windows, Linux, OpenBSD, FreeBSD, and on any machine.
2323

2424
#### Binary (Cross-platform)
2525

26-
Download the appropriate version for your platform from [releases](https://github.com/odpf/entropy/releases) page. Once
26+
Download the appropriate version for your platform from [releases](https://github.com/goto/entropy/releases) page. Once
2727
downloaded, the binary can be run from anywhere. You don’t need to install it into a global location. This works well
2828
for shared hosts and other systems where you don’t have a privileged account. Ideally, you should install it somewhere
2929
in your PATH for easy use. `/usr/local/bin` is the most probable location.
@@ -58,7 +58,7 @@ $ entropy serve --config ./my_config.yaml
5858

5959
```sh
6060
# Clone the repo
61-
$ git clone https://github.com/odpf/entropy.git
61+
$ git clone https://github.com/goto/entropy.git
6262

6363
# Build entropy binary file
6464
$ make build
@@ -87,10 +87,10 @@ Read our [contributing guide](https://odpf.github.io/entropy/docs/contribute/con
8787
development process, how to propose bugfixes and improvements, and how to build and test your changes to Entropy.
8888

8989
To help you get your feet wet and get you familiar with our contribution process, we have a list
90-
of [good first issues](https://github.com/odpf/entropy/labels/good%20first%20issue) that contain bugs which have a
90+
of [good first issues](https://github.com/goto/entropy/labels/good%20first%20issue) that contain bugs which have a
9191
relatively limited scope. This is a great place to get started.
9292

93-
This project exists thanks to all the [contributors](https://github.com/odpf/entropy/graphs/contributors).
93+
This project exists thanks to all the [contributors](https://github.com/goto/entropy/graphs/contributors).
9494

9595
## License
9696

buf.gen.yaml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
version: v1
2+
plugins:
3+
- remote: "buf.build/library/plugins/go:v1.27.1-1"
4+
out: proto
5+
opt: paths=source_relative
6+
- remote: "buf.build/library/plugins/go-grpc:v1.1.0-2"
7+
out: proto
8+
opt: paths=source_relative,require_unimplemented_servers=true
9+
- remote: buf.build/odpf/plugins/validate
10+
out: "proto"
11+
opt: "paths=source_relative,lang=go"
12+
- remote: "buf.build/grpc-ecosystem/plugins/grpc-gateway:v2.11.3-1"
13+
out: proto
14+
opt:
15+
- paths=source_relative
16+
- allow_repeated_fields_in_body=true
17+
- remote: "buf.build/grpc-ecosystem/plugins/openapiv2:v2.11.3-1"
18+
out: proto
19+
opt:
20+
- allow_repeated_fields_in_body=true
21+
- output_format=yaml
22+
- allow_merge=true
23+
- merge_file_name=entropy
24+
- openapi_naming_strategy=simple
25+
- json_names_for_fields=false

cli/action.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ import (
44
"fmt"
55

66
"github.com/MakeNowJust/heredoc"
7-
"github.com/odpf/salt/printer"
8-
"github.com/odpf/salt/term"
7+
entropyv1beta1 "github.com/goto/entropy/proto/gotocompany/entropy/v1beta1"
8+
"github.com/goto/salt/printer"
9+
"github.com/goto/salt/term"
910
"github.com/spf13/cobra"
10-
entropyv1beta1 "go.buf.build/odpf/gwv/odpf/proton/odpf/entropy/v1beta1"
1111
"google.golang.org/protobuf/types/known/structpb"
1212
)
1313

cli/cli.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package cli
33
import (
44
"context"
55

6-
"github.com/odpf/salt/cmdx"
6+
"github.com/goto/salt/cmdx"
77
"github.com/spf13/cobra"
88
)
99

cli/client.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import (
55
"strconv"
66
"time"
77

8+
entropyv1beta1 "github.com/goto/entropy/proto/gotocompany/entropy/v1beta1"
89
"github.com/spf13/cobra"
9-
entropyv1beta1 "go.buf.build/odpf/gwv/odpf/proton/odpf/entropy/v1beta1"
1010
"google.golang.org/grpc"
1111
"google.golang.org/grpc/credentials/insecure"
1212
)

cli/config.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ import (
66
"os"
77
"time"
88

9-
"github.com/odpf/salt/config"
9+
"github.com/goto/salt/config"
1010
"github.com/spf13/cobra"
1111
"gopkg.in/yaml.v2"
1212

13-
"github.com/odpf/entropy/pkg/errors"
14-
"github.com/odpf/entropy/pkg/logger"
15-
"github.com/odpf/entropy/pkg/telemetry"
13+
"github.com/goto/entropy/pkg/errors"
14+
"github.com/goto/entropy/pkg/logger"
15+
"github.com/goto/entropy/pkg/telemetry"
1616
)
1717

1818
const configFlag = "config"

cli/logs.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ import (
77
"log"
88
"strings"
99

10-
"github.com/odpf/salt/term" // nolint
11-
entropyv1beta1 "go.buf.build/odpf/gwv/odpf/proton/odpf/entropy/v1beta1"
10+
entropyv1beta1 "github.com/goto/entropy/proto/gotocompany/entropy/v1beta1"
11+
"github.com/goto/salt/term" // nolint
1212

1313
"github.com/MakeNowJust/heredoc"
14-
"github.com/odpf/salt/printer"
14+
"github.com/goto/salt/printer"
1515
"github.com/spf13/cobra"
1616
)
1717

cli/migrate.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"github.com/spf13/cobra"
77
"go.uber.org/zap"
88

9-
"github.com/odpf/entropy/pkg/logger"
9+
"github.com/goto/entropy/pkg/logger"
1010
)
1111

1212
func cmdMigrate() *cobra.Command {

cli/resource.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ import (
44
"fmt"
55
"os"
66

7-
"github.com/odpf/salt/term" // nolint
8-
entropyv1beta1 "go.buf.build/odpf/gwv/odpf/proton/odpf/entropy/v1beta1"
7+
entropyv1beta1 "github.com/goto/entropy/proto/gotocompany/entropy/v1beta1"
8+
"github.com/goto/salt/term" // nolint
99

1010
"github.com/MakeNowJust/heredoc"
11-
"github.com/odpf/salt/printer"
11+
"github.com/goto/salt/printer"
1212
"github.com/spf13/cobra"
1313
)
1414

cli/serve.go

+11-11
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,17 @@ import (
88
"github.com/spf13/cobra"
99
"go.uber.org/zap"
1010

11-
"github.com/odpf/entropy/core"
12-
"github.com/odpf/entropy/core/module"
13-
entropyserver "github.com/odpf/entropy/internal/server"
14-
"github.com/odpf/entropy/internal/store/postgres"
15-
"github.com/odpf/entropy/modules"
16-
"github.com/odpf/entropy/modules/firehose"
17-
"github.com/odpf/entropy/modules/kubernetes"
18-
"github.com/odpf/entropy/pkg/logger"
19-
"github.com/odpf/entropy/pkg/telemetry"
20-
"github.com/odpf/entropy/pkg/worker"
21-
"github.com/odpf/entropy/pkg/worker/pgq"
11+
"github.com/goto/entropy/core"
12+
"github.com/goto/entropy/core/module"
13+
entropyserver "github.com/goto/entropy/internal/server"
14+
"github.com/goto/entropy/internal/store/postgres"
15+
"github.com/goto/entropy/modules"
16+
"github.com/goto/entropy/modules/firehose"
17+
"github.com/goto/entropy/modules/kubernetes"
18+
"github.com/goto/entropy/pkg/logger"
19+
"github.com/goto/entropy/pkg/telemetry"
20+
"github.com/goto/entropy/pkg/worker"
21+
"github.com/goto/entropy/pkg/worker/pgq"
2222
)
2323

2424
func cmdServe() *cobra.Command {

cli/version.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package cli
33
import (
44
"github.com/spf13/cobra"
55

6-
v "github.com/odpf/entropy/pkg/version"
6+
v "github.com/goto/entropy/pkg/version"
77
)
88

99
func cmdVersion() *cobra.Command {

core/core.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ import (
1010

1111
"go.uber.org/zap"
1212

13-
"github.com/odpf/entropy/core/module"
14-
"github.com/odpf/entropy/core/resource"
15-
"github.com/odpf/entropy/pkg/errors"
16-
"github.com/odpf/entropy/pkg/worker"
13+
"github.com/goto/entropy/core/module"
14+
"github.com/goto/entropy/core/resource"
15+
"github.com/goto/entropy/pkg/errors"
16+
"github.com/goto/entropy/pkg/worker"
1717
)
1818

1919
type Service struct {

core/core_test.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ import (
66

77
"github.com/stretchr/testify/assert"
88

9-
"github.com/odpf/entropy/core"
10-
"github.com/odpf/entropy/core/mocks"
11-
"github.com/odpf/entropy/core/resource"
9+
"github.com/goto/entropy/core"
10+
"github.com/goto/entropy/core/mocks"
11+
"github.com/goto/entropy/core/resource"
1212
)
1313

1414
var (

core/mocks/async_worker.go

+17-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

core/mocks/driver.go

+18-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)