Skip to content

Commit 013b9d8

Browse files
committed
refactor: move proto/gen to top-level gen directory
Remove the proto/ wrapper directory — generated code now lives directly at gen/ (gen/raystack/compass/v1beta1/, gen/buf/validate/).
1 parent 3cd0e79 commit 013b9d8

31 files changed

Lines changed: 34 additions & 34 deletions

buf.gen.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
version: v2
22
# Proto source lives in the proton repo (../proton).
33
# After running `buf generate`, remove unwanted generated files:
4-
# find proto/gen/raystack -mindepth 1 -maxdepth 1 ! -name compass -exec rm -rf {} +
4+
# find gen/raystack -mindepth 1 -maxdepth 1 ! -name compass -exec rm -rf {} +
55
inputs:
66
- directory: ../proton
77
- module: buf.build/bufbuild/protovalidate
@@ -10,13 +10,13 @@ managed:
1010
override:
1111
- file_option: go_package
1212
path: raystack/compass/v1beta1/service.proto
13-
value: github.com/raystack/compass/proto/gen/raystack/compass/v1beta1;compassv1beta1
13+
value: github.com/raystack/compass/gen/raystack/compass/v1beta1;compassv1beta1
1414
plugins:
1515
- remote: buf.build/protocolbuffers/go:v1.36.11
16-
out: proto/gen
16+
out: gen
1717
opt:
1818
- paths=source_relative
1919
- remote: buf.build/connectrpc/go:v1.18.1
20-
out: proto/gen
20+
out: gen
2121
opt:
2222
- paths=source_relative

cli/assets.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"github.com/MakeNowJust/heredoc"
88
"github.com/raystack/compass/core/namespace"
99
"github.com/raystack/compass/internal/client"
10-
compassv1beta1 "github.com/raystack/compass/proto/gen/raystack/compass/v1beta1"
10+
compassv1beta1 "github.com/raystack/compass/gen/raystack/compass/v1beta1"
1111
"github.com/raystack/salt/cli/printer"
1212
"github.com/spf13/cobra"
1313
)

cli/discussions.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"github.com/MakeNowJust/heredoc"
88
"github.com/raystack/compass/core/namespace"
99
"github.com/raystack/compass/internal/client"
10-
compassv1beta1 "github.com/raystack/compass/proto/gen/raystack/compass/v1beta1"
10+
compassv1beta1 "github.com/raystack/compass/gen/raystack/compass/v1beta1"
1111
"github.com/raystack/salt/cli/printer"
1212
"github.com/spf13/cobra"
1313
)

cli/lineage.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"github.com/MakeNowJust/heredoc"
77
"github.com/raystack/compass/core/namespace"
88
"github.com/raystack/compass/internal/client"
9-
compassv1beta1 "github.com/raystack/compass/proto/gen/raystack/compass/v1beta1"
9+
compassv1beta1 "github.com/raystack/compass/gen/raystack/compass/v1beta1"
1010
"github.com/raystack/salt/cli/printer"
1111
"github.com/spf13/cobra"
1212
)

cli/namespace.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"github.com/MakeNowJust/heredoc"
1010
"github.com/raystack/compass/core/namespace"
1111
"github.com/raystack/compass/internal/client"
12-
compassv1beta1 "github.com/raystack/compass/proto/gen/raystack/compass/v1beta1"
12+
compassv1beta1 "github.com/raystack/compass/gen/raystack/compass/v1beta1"
1313
"github.com/raystack/salt/cli/printer"
1414
"github.com/spf13/cobra"
1515
)

cli/search.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"github.com/MakeNowJust/heredoc"
77
"github.com/raystack/compass/core/namespace"
88
"github.com/raystack/compass/internal/client"
9-
compassv1beta1 "github.com/raystack/compass/proto/gen/raystack/compass/v1beta1"
9+
compassv1beta1 "github.com/raystack/compass/gen/raystack/compass/v1beta1"
1010
"github.com/raystack/salt/cli/printer"
1111
"github.com/spf13/cobra"
1212
)

proto/gen/raystack/compass/v1beta1/compassv1beta1connect/service.connect.go renamed to gen/raystack/compass/v1beta1/compassv1beta1connect/service.connect.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

proto/gen/raystack/compass/v1beta1/service.pb.go renamed to gen/raystack/compass/v1beta1/service.pb.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

handler/asset.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414
"github.com/raystack/compass/core/star"
1515
"github.com/raystack/compass/core/user"
1616
"github.com/raystack/compass/internal/middleware"
17-
compassv1beta1 "github.com/raystack/compass/proto/gen/raystack/compass/v1beta1"
17+
compassv1beta1 "github.com/raystack/compass/gen/raystack/compass/v1beta1"
1818
"google.golang.org/protobuf/types/known/structpb"
1919
"google.golang.org/protobuf/types/known/timestamppb"
2020
)

0 commit comments

Comments
 (0)