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: check for invalid function calls into external modules (#1702)
Closes #1640 Checks for: - publishing directly to an external module's exported topic - directly calling an external module's verb, rather than using `ftl.Call(...)` - This already fails at runtime, but it's nice to have this as a compile error Both of these compile-time checks are not fool proof, any indirection will mean these checks don't catch it. But it is good to catch what we can. eg: ```go var extTopic = external.Topic extTopic.Publish(...) // compiler believes this is a local topic ``` Added a separate issue for this for pubsub as it may not be as high a priority: #1703
- Loading branch information
Showing
4 changed files
with
126 additions
and
52 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