-
Notifications
You must be signed in to change notification settings - Fork 31
Releases: xhd2015/xgo
Xgo v1.2.0
This release upgrades xgo from v1.1.14 to v1.2.0
Major feature:
- Support Go 1.25
- New DSL Patching Syntax That Is More AI Friendly
To install xgo v1.2.0:
# upgrade xgo go install github.com/xhd2015/xgo/cmd/xgo@v1.2.0 # update runtime go get github.com/xhd2015/xgo/runtime@v1.2.0
Additional Notes
CLI Update:
--use-file-patchesβ force file-based patches--patch-goroot-in-placeβ skip GOROOT copy (used byxgo setup)
Patch DSL:
Declarative, AST-aware patch language (instrument/patch/apply_engine.go) for
.xgo.patch files. Commands: goto, match, find_for_replace,
insert_before, insert_after, insert_after_line, replace,
replace_directive, copy_func, newline. Patches are idempotent: named
blocks clear previous edits before re-applying.
Other Improvements
- Per-version CI workflows (go1.17βgo1.25)
script/go-patch-diff,script/run-github-workflow-via-actutility scripts- Extensible test scanning with
go-maxversion constraint - New
func_namestest suite for overlay stub naming across file counts - Development docs for overlay restriction, compiler debugging, patch checklists
Known Side Effects
- Closure numbering in
func_namesshifts on Go 1.25 due to additional
compiler-autogen stubs from because go1.25 forbids overlay in GOCACHE
Issues Resolved
-
Runtime self-require:
needLocalRuntimeinjected self-require when CI
tests xgo/runtime itself. Fixed by skipping self-require when main module IS
the runtime. -
Windows: stale
.exeshadows new compiler: After GOROOT rebuild,
compile.exe(old) shadowedcompile(new) due to Windows PATHEXT priority.
Fixed by adding.exesuffix to-ooutputs on Windows. -
Windows: raw string position bug:
\rbytes in raw string literals (from
gitcore.autocrlf) causedast.BasicLit.End()to return incorrect positions.
Fixed by normalizing\r\nβ\nat file load. -
Windows: git
core.autocrlfinjects\r: Documented root cause and
reproduction. -
go/scanner inconsistency (upstream):
scanRawString()strips\rfrom
value but not file position. xgo's\r\nnormalization is the workaround. -
SelectorExpr panic:
ParseReceiverTypepanicked on*otherpkg.Type
receivers. Fixed by unwrapping*ast.SelectorExpr. -
LC_UUID on macOS 26+: Go <1.23 binaries lack
LC_UUID, rejected by dyld.
Fixed with-linkmode=externalfor darwin/arm64 hosts on Go <1.23.
For documentation, see https://github.com/xhd2015/xgo.
What's Changed(Auto generated)
Full Changelog: v1.1.14...v1.2.0
What's Changed
- fix windows suffix error by @dallion in #386
- fix: interceptor func context interface conversion failed by @cchenggit in #380
- feat: add Go 1.25 support by @Peyton-Spencer in #379
- Add go-patch-diff tool for downloading and applying Go patches by @xhd2015 in #385
New Contributors
- @dallion made their first contribution in #386
- @cchenggit made their first contribution in #380
- @Peyton-Spencer made their first contribution in #379
Full Changelog: v1.1.14...v1.2.0
Contributors
Assets 10
Xgo v1.1.14
This release upgrades xgo from v1.1.13 to v1.1.14
Minor improvements:
- check trace filter for var
To install xgo v1.1.14:
# upgrade xgo go install github.com/xhd2015/xgo/cmd/xgo@v1.1.14 # update runtime go get github.com/xhd2015/xgo/runtime@v1.1.14
For documentation, see https://github.com/xhd2015/xgo.
What's Changed(Auto generated)
Full Changelog: v1.1.13...v1.1.14
Assets 10
Xgo v1.1.13
This release upgrades xgo from v1.1.12 to v1.1.13
Minor improvements:
- inherit trace filter when creating new goroutine
To install xgo v1.1.13:
# upgrade xgo go install github.com/xhd2015/xgo/cmd/xgo@v1.1.13 # update runtime go get github.com/xhd2015/xgo/runtime@v1.1.13
For documentation, see https://github.com/xhd2015/xgo.
What's Changed(Auto generated)
Full Changelog: v1.1.12...v1.1.13
Assets 10
Xgo v1.1.12
This release upgrades xgo from v1.1.11 to v1.1.12 with #375
Minor improvements:
- allow filter on stack entry to reduce stack size, see #375
To install xgo v1.1.12:
# upgrade xgo go install github.com/xhd2015/xgo/cmd/xgo@v1.1.12 # update runtime go get github.com/xhd2015/xgo/runtime@v1.1.12
For documentation, see https://github.com/xhd2015/xgo.
What's Changed(Auto generated)
Full Changelog: v1.1.11...v1.1.12
Assets 10
Xgo v1.1.11
This release upgrades xgo from v1.1.10 to v1.1.11 with #372
Minor improvements:
- fix ptr field rewriting, see #371
To install xgo v1.1.11:
# upgrade xgo go install github.com/xhd2015/xgo/cmd/xgo@v1.1.11 # no need to update runtime
For documentation, see https://github.com/xhd2015/xgo.
What's Changed(Auto generated)
Full Changelog: v1.1.10...v1.1.11
Assets 10
Xgo v1.1.10
This release upgrades xgo from v1.1.9 to v1.1.10 with #363
Minor improvements:
- fixed untyped string resolving, thanks to @knaive913
To install xgo v1.1.10:
# upgrade xgo go install github.com/xhd2015/xgo/cmd/xgo@v1.1.10 # update runtime go get github.com/xhd2015/xgo/runtime@v1.1.10
For documentation, see https://github.com/xhd2015/xgo.
What's Changed(Auto generated)
Full Changelog: v1.1.9...v1.1.10
Assets 10
Xgo v1.1.9
This release upgrades xgo from v1.1.8 to v1.1.9 with #360
Minor improvements:
- fixed import rewritting, thanks to @pspencer-arculus
To install xgo v1.1.9:
# upgrade xgo go install github.com/xhd2015/xgo/cmd/xgo@v1.1.9 # update runtime go get github.com/xhd2015/xgo/runtime@v1.1.9
For documentation, see https://github.com/xhd2015/xgo.
What's Changed(Auto generated)
Full Changelog: v1.1.8...v1.1.9
Assets 10
Xgo v1.1.8
This release upgrades xgo from v1.1.7 to v1.1.8 with #359
Minor improvements:
- fixed generic instance parsing
- fixed vendir C import path
To install xgo v1.1.8:
# update xgo go install github.com/xhd2015/xgo/cmd/xgo@v1.1.8 # no need to update runtime
For documentation, see https://github.com/xhd2015/xgo.
What's Changed(Auto generated)
Credit given to @pspencer-arculus for reporting the 2 issues:
Full Changelog: v1.1.7...v1.1.8
Assets 10
Xgo v1.1.7
This release upgrades xgo from v1.1.6 to v1.1.7 with #353
Minor improvements:
- fix trace unmarshal with
big.Intthat overflows float64 - limit single param size to 1M by default
- add unit test for
--unified
To install xgo v1.1.7:
# update xgo go install github.com/xhd2015/xgo/cmd/xgo@v1.1.7 # no need to update runtime
For documentation, see https://github.com/xhd2015/xgo.
What's Changed(Auto generated)
Full Changelog: v1.1.6...v1.1.7
Assets 10
Xgo v1.1.6
This release upgrades xgo from v1.1.5 to v1.1.6 with #349
Major improvements:
- add
--unifiedflag toxgo test, which significantly reduces link and runtime overhead from10mto30son large projects
To install xgo v1.1.6:
# update xgo go install github.com/xhd2015/xgo/cmd/xgo@v1.1.6 # no need to update runtime
For documentation, see https://github.com/xhd2015/xgo.
What's Changed(Auto generated)
Full Changelog: v1.1.5...v1.1.6