-
Notifications
You must be signed in to change notification settings - Fork 7
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: use export annotation #1117
Conversation
f77ce4e
to
08cf1cc
Compare
sort of testing a hypothesis, but i suspect the build cache needs to be rebuilt against [this](#1117) branch in order for [this](https://github.com/TBD54566975/ftl/actions/runs/8370343139/job/22939654513) to pass if this fixes the problem, we should probably figure out a better approach to ensuring the kotlin-runtime JAR is up-to-date with the local Kotlin when running Go tests, now that Go tests also exercise Kotlin code
c3451a8
to
dda78bf
Compare
@@ -30,6 +30,9 @@ jobs: | |||
uses: cashapp/activate-hermit@v1 | |||
- name: Build Cache | |||
uses: ./.github/actions/build-cache | |||
# TODO: remove, testing this | |||
- name: Build Kotlin | |||
run: just build-kt-runtime |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there's an issue with caching happening; Test Go
fails without this step because buildengine
exercises Kotlin code in the Go tests now. the cached build uses a kotlin-runtime version that's missing the necessary local changes from this PR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As we discussed, this should stay here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm actually surprised the ftl
development build didn't do this automatically.
- Go: Replaces `ftl:verb` and `ftl:enum` with `ftl:export` - Kotlin: Replaces `@Verb` with `@Export` - Updates runtime schema extractors to pull standalone data decls annotated with `export` Design here: https://hackmd.io/i5COidF3SEynCab8VcJwng fixes #1114
dda78bf
to
65f7564
Compare
ftl:verb
andftl:enum
withftl:export
, removesftl:module <name>
annotation@Verb
with@Export
export
Design here: https://hackmd.io/i5COidF3SEynCab8VcJwng
fixes #1114