Skip to content

Releases: xhd2015/xgo

Xgo v1.2.1

Choose a tag to compare

@xhd2015 xhd2015 released this 08 Jul 10:04

This release upgrades xgo from v1.2.0 to v1.2.1

Major feature:

  • Support Go 1.26

To install xgo v1.2.1:

# upgrade xgo
go install github.com/xhd2015/xgo/cmd/xgo@v1.2.1

# update runtime
go get github.com/xhd2015/xgo/runtime@v1.2.1

For documentation, see https://github.com/xhd2015/xgo.

What's Changed(Auto generated)

Full Changelog: v1.2.0...v1.2.1

Xgo v1.2.0

Choose a tag to compare

@xhd2015 xhd2015 released this 04 Jun 18:32

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 by xgo 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-act utility scripts
  • Extensible test scanning with go-max version constraint
  • New func_names test suite for overlay stub naming across file counts
  • Development docs for overlay restriction, compiler debugging, patch checklists

Known Side Effects

  • Closure numbering in func_names shifts on Go 1.25 due to additional
    compiler-autogen stubs from because go1.25 forbids overlay in GOCACHE

Issues Resolved

  1. Runtime self-require: needLocalRuntime injected self-require when CI
    tests xgo/runtime itself. Fixed by skipping self-require when main module IS
    the runtime.

  2. Windows: stale .exe shadows new compiler: After GOROOT rebuild,
    compile.exe (old) shadowed compile (new) due to Windows PATHEXT priority.
    Fixed by adding .exe suffix to -o outputs on Windows.

  3. Windows: raw string position bug: \r bytes in raw string literals (from
    git core.autocrlf) caused ast.BasicLit.End() to return incorrect positions.
    Fixed by normalizing \r\n β†’ \n at file load.

  4. Windows: git core.autocrlf injects \r: Documented root cause and
    reproduction.

  5. go/scanner inconsistency (upstream): scanRawString() strips \r from
    value but not file position. xgo's \r\n normalization is the workaround.

  6. SelectorExpr panic: ParseReceiverType panicked on *otherpkg.Type
    receivers. Fixed by unwrapping *ast.SelectorExpr.

  7. LC_UUID on macOS 26+: Go <1.23 binaries lack LC_UUID, rejected by dyld.
    Fixed with -linkmode=external for 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

New Contributors

Full Changelog: v1.1.14...v1.2.0

Xgo v1.1.14

Choose a tag to compare

@xhd2015 xhd2015 released this 26 Nov 16:43

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

Xgo v1.1.13

Choose a tag to compare

@xhd2015 xhd2015 released this 26 Nov 16:20

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

Xgo v1.1.12

Choose a tag to compare

@xhd2015 xhd2015 released this 26 Nov 12:45

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

Xgo v1.1.11

Choose a tag to compare

@xhd2015 xhd2015 released this 05 Nov 03:26

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

Xgo v1.1.10

Choose a tag to compare

@xhd2015 xhd2015 released this 01 Jul 07:08

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

Xgo v1.1.9

Choose a tag to compare

@xhd2015 xhd2015 released this 22 Jun 15:01

This release upgrades xgo from v1.1.8 to v1.1.9 with #360

Minor improvements:

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

Xgo v1.1.8

Choose a tag to compare

@xhd2015 xhd2015 released this 19 Jun 06:51

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)

  • fix generic instance parsing and C import in vendir by @xhd2015 in #359

Credit given to @pspencer-arculus for reporting the 2 issues:

Full Changelog: v1.1.7...v1.1.8

Xgo v1.1.7

Choose a tag to compare

@xhd2015 xhd2015 released this 29 Apr 01:15

This release upgrades xgo from v1.1.6 to v1.1.7 with #353

Minor improvements:

  • fix trace unmarshal with big.Int that 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