generated from TBD54566975/tbd-project-template
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: external_module.go with sinks/sources build failures (#1132)
Fixes #1095 Sink & Source verbs would have a schema like ``` verb returnsUser(Unit) two.UserResponse ``` but the scaffolded `external_module.go` version of it would be: ``` func ReturnsUser(ctx context.Context) (UserResponse, error) ``` When generating imports, we were finding `schema.Unit` in the verb which triggered an inclusion of ftl This caused the exernal module to fail to build because ftl was not being used by the generated code. This fix now skips any unit in the schema if the parent is a verb
- Loading branch information
Showing
4 changed files
with
10 additions
and
5 deletions.
There are no files selected for viewing
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
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
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
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