feat(projectdriver): dispatch class projects through verified drivers - #2849
Draft
joeykchen wants to merge 1 commit into
Draft
feat(projectdriver): dispatch class projects through verified drivers#2849joeykchen wants to merge 1 commit into
joeykchen wants to merge 1 commit into
Conversation
joeykchen
force-pushed
the
feat/xgo-project-driver-spx
branch
from
August 21, 2026 02:04
45dca11 to
0c1425e
Compare
joeykchen
force-pushed
the
feat/xgo-project-driver-spx
branch
from
August 21, 2026 06:20
0c1425e to
48c575c
Compare
joeykchen
force-pushed
the
feat/xgo-project-driver-spx
branch
from
August 21, 2026 10:28
48c575c to
6ded173
Compare
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Supersedes goplus/xgo#2847, which GitHub closed when its fork head branch was renamed.
This PR implements generic XGo Project Driver v1 dispatch for
xgo run,xgo build, andxgo install. XGo discovers a framework-declared driver from the application's effective Go graph and delegates through the driver-neutral contract in goplus/mod#165.XGo owns discovery, identity validation, process supervision, and output publication. It contains no SPX, Godot, Engine, PCK, or resource-format special cases.
Dispatch and protocol
GOWORK,-mod,-modfile, and supported graph flags.Project.Driver,driverprotocol, thexgo-driver-v1preamble,DriverPackage, andDriverOriginthroughoutcmd/internal/projectdriver.ErrNotHandledas the only result that permits ordinary-project fallback; every error after a driver match is terminal.xgorequirement and enforce the higher effective minimum.Trust and execution boundaries
GOOS/GOARCH, pack metadata, and argv/environment budgets.GOBIN, falling back tobinunder the firstGOPATHentry.XGO_DRIVER=offto disable project-driver dispatch.Compatibility
Ordinary projects continue through the existing GenGo implementation. Existing public
tool.RunDir,tool.BuildDir, andtool.InstallDirbehavior is unchanged; Project Driver dispatch is currently a CLI capability.Driver v1 is host-only. Multi-file targets, recursive patterns,
pkg@version, cross-compilation, and unsupported graph/build modes fail explicitly once a driver-backed target is identified.Verification
A local
go.workcontaining the Mod, XGo, and SPX checkouts was used until the companion Mod APIs are released.Host XGo and
CGO_ENABLED=0Linux/Windows amd64 builds also pass.Dependency and release order
This PR depends on goplus/mod#165. Mod must merge and release first, then this branch must update its
github.com/goplus/modrequirement before XGo is released; the currentv0.21.2requirement does not containdriverprotocol.Part of goplus/spx#1741.