Skip to content

Update Makefile to copy WIT files from temporal-api - #305

Open
dplyukhin wants to merge 2 commits into
mainfrom
sync-wit
Open

Update Makefile to copy WIT files from temporal-api#305
dplyukhin wants to merge 2 commits into
mainfrom
sync-wit

Conversation

@dplyukhin

Copy link
Copy Markdown
Contributor

What changed?
Updated Makefile to copy WIT service definitions from temporal-api

Why?
So the Go SDK can use the files to generate system nexus APIs like SignalWithStartWorkflow.

How did you test it?
Tested locally

Potential risks

Comment thread Makefile

NEXUS_SCHEMA_ROOT := $(PROTO_ROOT)/nexus
NEXUS_PROTO_OUT := workflowservice/v1/workflowservicenexus
NEXUS_WIT_OUT := workflowservice/v1/systemnexus

@dplyukhin dplyukhin Jul 29, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does anyone have opinions on where we should put the WIT files?

Comment thread Makefile
Comment on lines +59 to +64
.PHONY: system-nexus
system-nexus:
printf $(COLOR) "Update system-nexus WIT files..."
rm -rf $(NEXUS_WIT_OUT)
mkdir -p $(NEXUS_WIT_OUT)
cp -R $(NEXUS_SCHEMA_ROOT)/workflow-service.wit $(NEXUS_SCHEMA_ROOT)/deps $(NEXUS_WIT_OUT)/

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tconley1428 Based on your plans for future WIT stuff, does this make sense for how to lay things out in the api-go directory? i.e., we copy XXX-service.wit into the XXXservice/v1/systemnexus directory, along with the entirety of deps/?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't really have any opinion on location here.

@dplyukhin
dplyukhin marked this pull request as ready for review July 29, 2026 16:17
@dplyukhin
dplyukhin requested review from a team as code owners July 29, 2026 16:17

@yuandrew yuandrew left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks reasonable to me, @Quinn-With-Two-Ns, not sure if you wanna also take a peak

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants