Skip to content

Commit

Permalink
fix build refs to backend/schema
Browse files Browse the repository at this point in the history
  • Loading branch information
matt2e committed Oct 2, 2024
1 parent e0f4ef3 commit 7784ab8
Show file tree
Hide file tree
Showing 13 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .go-arch-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ components:
internal: { in: internal/** }
dal: { in: backend/dal/** }
protos: { in: backend/protos/** }
schema: { in: backend/schema/** }
schema: { in: internal/schema/** }
ftl: { in: . }
ftl-cmd: { in: frontend/cli/ftl/** }
go-runtime: { in: go-runtime/** }
Expand Down
4 changes: 2 additions & 2 deletions Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ generate-kube-migrations:

# Run "go generate" on all packages
build-generate:
@mk backend/schema/aliaskind_enumer.go : backend/schema/metadataalias.go -- go generate -x ./backend/schema
@mk internal/schema/aliaskind_enumer.go : internal/schema/metadataalias.go -- go generate -x ./internal/schema
@mk internal/log/log_level_string.go : internal/log/api.go -- go generate -x ./internal/log

# Build command-line tools
Expand Down Expand Up @@ -129,7 +129,7 @@ pnpm-install:

# Regenerate protos
build-protos: pnpm-install
@mk {{SCHEMA_OUT}} : backend/schema -- "ftl-schema > {{SCHEMA_OUT}} && buf format -w && buf lint"
@mk {{SCHEMA_OUT}} : internal/schema -- "ftl-schema > {{SCHEMA_OUT}} && buf format -w && buf lint"
@mk {{PROTOS_OUT}} : {{PROTOS_IN}} -- "cd backend/protos && buf generate"

# Unconditionally rebuild protos
Expand Down
2 changes: 1 addition & 1 deletion backend/controller/cronjobs/internal/sql/models.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion backend/controller/dal/internal/sql/models.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion backend/controller/dal/internal/sql/querier.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion backend/controller/dal/internal/sql/queries.sql.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion backend/controller/pubsub/internal/sql/queries.sql.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion backend/protos/xyz/block/ftl/v1/schema/schema.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion backend/protos/xyz/block/ftl/v1/schema/schema.proto
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
syntax = "proto3";

// This file is generated by github.com/TBD54566975/ftl/backend/schema/protobuf.go, DO NOT MODIFY
// This file is generated by github.com/TBD54566975/ftl/internal/schema/protobuf.go, DO NOT MODIFY
package xyz.block.ftl.v1.schema;

import "xyz/block/ftl/v1/schema/runtime.proto";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export const declTypeMultiselectOpts = [
},
]

// Keep these in sync with backend/schema/module.go#L86-L95
// Keep these in sync with internal/schema/module.go#L86-L95
const skipNewLineDeclTypes = ['config', 'secret', 'database', 'topic', 'subscription', 'typealias']
const skipGapAfterTypes: { [key: string]: string[] } = {
secret: ['config'],
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion internal/schema/protobuf.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func ProtobufSchema() string {
w := &strings.Builder{}
fmt.Fprintf(w, `syntax = "proto3";
// This file is generated by github.com/TBD54566975/ftl/backend/schema/protobuf.go, DO NOT MODIFY
// This file is generated by github.com/TBD54566975/ftl/internal/schema/protobuf.go, DO NOT MODIFY
package xyz.block.ftl.v1.schema;
import "xyz/block/ftl/v1/schema/runtime.proto";
Expand Down
4 changes: 2 additions & 2 deletions sqlc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ sql:
go_type:
type: "optional.Option[sqltypes.Duration]"
- db_type: "module_schema_pb"
go_type: "*github.com/TBD54566975/ftl/backend/schema.Module"
go_type: "*github.com/TBD54566975/ftl/internal/schema.Module"
- db_type: "timestamptz"
nullable: true
go_type: "github.com/TBD54566975/ftl/backend/controller/sql/sqltypes.OptionalTime"
Expand All @@ -50,7 +50,7 @@ sql:
go_type:
type: "optional.Option[model.RunnerKey]"
- db_type: "schema_ref"
go_type: "github.com/TBD54566975/ftl/backend/schema.RefKey"
go_type: "github.com/TBD54566975/ftl/internal/schema.RefKey"
- db_type: "schema_ref"
nullable: true
go_type:
Expand Down

0 comments on commit 7784ab8

Please sign in to comment.