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

Language plugins #2785

Closed
wants to merge 10 commits into from
Closed

Language plugins #2785

wants to merge 10 commits into from

Conversation

matt2e
Copy link
Collaborator

@matt2e matt2e commented Sep 23, 2024

Very early (and messy) WIP...

# Conflicts:
#	Justfile
#	frontend/cli/cmd_box.go
#	frontend/cli/cmd_box_run.go
#	frontend/cli/cmd_build.go
#	frontend/cli/cmd_deploy.go
#	frontend/cli/cmd_dev.go
#	frontend/cli/cmd_serve.go
#	go-runtime/compile/build.go
#	internal/bind/bind_allocator.go
#	internal/buildengine/build.go
#	internal/buildengine/build_go.go
#	internal/buildengine/engine.go
@ftl-robot ftl-robot mentioned this pull request Sep 23, 2024
Copy link
Collaborator

@alecthomas alecthomas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe separate the PosFromProto change from everything else? It touches a lot of files.

shopt -s extglob

if [ "${FTL_DEBUG:-}" = "true" ]; then
go build -o "{{RELEASE}}/ftl-language-go" -tags release -gcflags=all="-N -l" -ldflags "-X github.com/TBD54566975/ftl.Version={{VERSION}} -X github.com/TBD54566975/ftl.Timestamp={{TIMESTAMP}}" "./go-runtime/plugin"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's name go-runtime/plugin -> go-runtime/cmd/ftl-language-go so it's more idiomatic.

Comment on lines +25 to +33
message Pair {
string key = 1;
string value = 2;
}
// Universal metadata
string name = 1;

// Language metadata contains any metadata specific to a specific language.
repeated Pair LanguageMetadata = 2;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure what's going into this or where it's ending up, but we should probably be using google.protobuf.Any instead of a bag of values.

@matt2e
Copy link
Collaborator Author

matt2e commented Sep 24, 2024

Maybe separate the PosFromProto change from everything else? It touches a lot of files.

👍 will do. I think this PR will need to be split up more regardless... it's pretty hairy atm

@matt2e matt2e mentioned this pull request Sep 30, 2024
38 tasks
@matt2e matt2e closed this Oct 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants