Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Releases: xhd2015/xgo

Xgo v1.2.0

04 Jun 18:32
@xhd2015 xhd2015

Choose a tag to compare

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

Contributors

Peyton-Spencer, dallion, and 2 other contributors
Assets 10
Loading

Xgo v1.1.14

26 Nov 16:43
@xhd2015 xhd2015

Choose a tag to compare

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

Loading

Xgo v1.1.13

26 Nov 16:20
@xhd2015 xhd2015

Choose a tag to compare

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

Loading

Xgo v1.1.12

26 Nov 12:45
@xhd2015 xhd2015

Choose a tag to compare

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

Contributors

xhd2015
Loading

Xgo v1.1.11

05 Nov 03:26
@xhd2015 xhd2015

Choose a tag to compare

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

Contributors

xhd2015
Loading

Xgo v1.1.10

01 Jul 07:08
@xhd2015 xhd2015

Choose a tag to compare

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

Contributors

xhd2015 and knaive913
Loading
dushaoshuai reacted with thumbs up emoji
1 person reacted

Xgo v1.1.9

22 Jun 15:01
@xhd2015 xhd2015

Choose a tag to compare

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

Contributors

xhd2015 and pspencer-arculus
Loading
dushaoshuai reacted with thumbs up emoji
1 person reacted

Xgo v1.1.8

19 Jun 06:51
@xhd2015 xhd2015

Choose a tag to compare

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

Contributors

xhd2015 and pspencer-arculus
Loading
dushaoshuai and pspencer-arculus reacted with thumbs up emoji
2 people reacted

Xgo v1.1.7

29 Apr 01:15
@xhd2015 xhd2015

Choose a tag to compare

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

Contributors

xhd2015
Loading

Xgo v1.1.6

28 Apr 05:13
@xhd2015 xhd2015

Choose a tag to compare

This release upgrades xgo from v1.1.5 to v1.1.6 with #349

Major improvements:

  • add --unified flag to xgo test, which significantly reduces link and runtime overhead from 10m to 30s on 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)

  • add --unified for xgo test to unify test togther and run by @xhd2015 in #349

Full Changelog: v1.1.5...v1.1.6

Contributors

xhd2015
Loading
Previous 1 3 4 5 6 7
Previous

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /