You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Import an external package but give it a local name
Create an FTL type alias that uses a type from this external package
Expected result:
type alias of the widened external type works correctly
Actual result:
unsupported external type "[PATH]"; see FTL docs on using external types: tbd54566975.github.io/ftl/docs/reference/externaltypes/
[PATH]: unsupported type "[VAR NAME]"
fixes#2397
`pass.Pkg.Imports()` did not always* include the local name alias from
the import statement, so instead we need to do our checks via `PkgName`
which does include it.
*it includes it in the example in our tests, but didn't in the case that
our partner project was hitting...
I've added another test case that previously failed like theirs did.
fixes#2397
`pass.Pkg.Imports()` did not always* include the local name alias from
the import statement, so instead we need to do our checks via `PkgName`
which does include it.
*it includes it in the example in our tests, but didn't in the case that
our partner project was hitting...
I've added another test case that previously failed like theirs did.
Steps to reproduce:
Expected result:
Actual result:
Some digging shows that the problem starts around here: https://github.com/TBD54566975/ftl/blob/main/go-runtime/schema/typealias/analyzer.go#L54
The text was updated successfully, but these errors were encountered: