generated from TBD54566975/tbd-project-template
-
Notifications
You must be signed in to change notification settings - Fork 8
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
feat: make ftl build
et al work with Go
#775
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- `ftl-go` has been deleted. - There must be a 1:1 mapping between FTL modules and Go modules. - Updated `ftl init go` to generate a valid module. - Updated all of the Go examples, including online-boutique, which can now be trivially started with `ftl dev ./examples/online-boutique` - The tooling is quite restrictive about code layout at the moment, but we can come back to that later. eg. Create, deploy and call a new module. ``` 🐚 ~/dev/ftl $ ftl init go examples echo2 info: Initializing FTL Go module echo2 in examples info: Running go mod tidy 🐚 ~/dev/ftl $ ftl deploy examples/echo2 info: Creating deployment for module echo2 info: Building Go module 'echo2' info: Generating external modules info: Extracting schema info: Generating main module info: Compiling info: Uploading 1/1 files info: Uploaded examples/echo2/_ftl/main as ba6f7f20ee5dac4e97197633348b5bb41e68e63c7e2d9b1da614d0a011b83872:main info: Created deployment echo2-0a1cebbfcc 🐚 ~/dev/ftl $ ftl call echo2.echo {"message":"Hello, anonymous!"} ```
alecthomas
changed the title
feat: make
feat: make Jan 14, 2024
ftl build
work with Goftl build
et al work with Go
alecthomas
added a commit
that referenced
this pull request
Jan 14, 2024
- `ftl-go` has been deleted. - There must be a 1:1 mapping between FTL modules and Go modules. - Updated `ftl init go` to generate a valid module. - Updated all of the Go examples, including online-boutique, which can now be trivially started with `ftl dev ./examples/online-boutique` - The tooling is quite restrictive about code layout at the moment, but we can come back to that later. eg. Create, deploy and call a new module. ``` 🐚 ~/dev/ftl $ ftl init go examples echo2 info: Initializing FTL Go module echo2 in examples info: Running go mod tidy 🐚 ~/dev/ftl $ ftl deploy examples/echo2 info: Creating deployment for module echo2 info: Building Go module 'echo2' info: Generating external modules info: Extracting schema info: Generating main module info: Compiling info: Uploading 1/1 files info: Uploaded examples/echo2/_ftl/main as ba6f7f20ee5dac4e97197633348b5bb41e68e63c7e2d9b1da614d0a011b83872:main info: Created deployment echo2-0a1cebbfcc 🐚 ~/dev/ftl $ ftl call echo2.echo {"message":"Hello, anonymous!"} ``` --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
alecthomas
added a commit
that referenced
this pull request
Jan 14, 2024
- `ftl-go` has been deleted. - There must be a 1:1 mapping between FTL modules and Go modules. - Updated `ftl init go` to generate a valid module. - Updated all of the Go examples, including online-boutique, which can now be trivially started with `ftl dev ./examples/online-boutique` - The tooling is quite restrictive about code layout at the moment, but we can come back to that later. eg. Create, deploy and call a new module. ``` 🐚 ~/dev/ftl $ ftl init go examples echo2 info: Initializing FTL Go module echo2 in examples info: Running go mod tidy 🐚 ~/dev/ftl $ ftl deploy examples/echo2 info: Creating deployment for module echo2 info: Building Go module 'echo2' info: Generating external modules info: Extracting schema info: Generating main module info: Compiling info: Uploading 1/1 files info: Uploaded examples/echo2/_ftl/main as ba6f7f20ee5dac4e97197633348b5bb41e68e63c7e2d9b1da614d0a011b83872:main info: Created deployment echo2-0a1cebbfcc 🐚 ~/dev/ftl $ ftl call echo2.echo {"message":"Hello, anonymous!"} ``` --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
alecthomas
added a commit
that referenced
this pull request
Jan 14, 2024
- `ftl-go` has been deleted. - There must be a 1:1 mapping between FTL modules and Go modules. - Updated `ftl init go` to generate a valid module. - Updated all of the Go examples, including online-boutique, which can now be trivially started with `ftl dev ./examples/online-boutique` - The tooling is quite restrictive about code layout at the moment, but we can come back to that later. eg. Create, deploy and call a new module. ``` 🐚 ~/dev/ftl $ ftl init go examples echo2 info: Initializing FTL Go module echo2 in examples info: Running go mod tidy 🐚 ~/dev/ftl $ ftl deploy examples/echo2 info: Creating deployment for module echo2 info: Building Go module 'echo2' info: Generating external modules info: Extracting schema info: Generating main module info: Compiling info: Uploading 1/1 files info: Uploaded examples/echo2/_ftl/main as ba6f7f20ee5dac4e97197633348b5bb41e68e63c7e2d9b1da614d0a011b83872:main info: Created deployment echo2-0a1cebbfcc 🐚 ~/dev/ftl $ ftl call echo2.echo {"message":"Hello, anonymous!"} ``` --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
alecthomas
added a commit
that referenced
this pull request
Jan 14, 2024
- `ftl-go` has been deleted. - There must be a 1:1 mapping between FTL modules and Go modules. - Updated `ftl init go` to generate a valid module. - Updated all of the Go examples, including online-boutique, which can now be trivially started with `ftl dev ./examples/online-boutique` - The tooling is quite restrictive about code layout at the moment, but we can come back to that later. eg. Create, deploy and call a new module. ``` 🐚 ~/dev/ftl $ ftl init go examples echo2 info: Initializing FTL Go module echo2 in examples info: Running go mod tidy 🐚 ~/dev/ftl $ ftl deploy examples/echo2 info: Creating deployment for module echo2 info: Building Go module 'echo2' info: Generating external modules info: Extracting schema info: Generating main module info: Compiling info: Uploading 1/1 files info: Uploaded examples/echo2/_ftl/main as ba6f7f20ee5dac4e97197633348b5bb41e68e63c7e2d9b1da614d0a011b83872:main info: Created deployment echo2-0a1cebbfcc 🐚 ~/dev/ftl $ ftl call echo2.echo {"message":"Hello, anonymous!"} ``` --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
ftl-go
has been deleted.ftl init go
to generate a valid module.ftl dev ./examples/online-boutique
eg. Create, deploy and call a new module.