9 Commits
Author SHA1 Message Date
zeekay 3cfebaa7bd fix(go.mod): declare module path github.com/hanzoai/expr
Go 1.21+ rejects 'replace X => Y vN' when Y's go.mod declares a module
path other than Y. The prior v1.17.8 kept 'module github.com/expr-lang/expr'
while being hosted+required at github.com/hanzoai/expr, so consumers on
Go 1.26 fail with:

  module declares its path as: github.com/expr-lang/expr
          but was required as: github.com/hanzoai/expr

Rehome the declared module path to github.com/hanzoai/expr and repath all
internal imports to match. Consumers keep 'require github.com/expr-lang/expr'
and 'replace github.com/expr-lang/expr => github.com/hanzoai/expr vX' — the
standard renaming-fork pattern that Go's replace path-check accepts.
2026-06-30 20:12:29 -07:00
zeekay 961d4a47d0 fork: keep upstream module path github.com/expr-lang/expr (consumed via replace), rehome to hanzoai/expr 2026-06-30 17:46:21 -07:00
zeekay 1e8be921d2 fork: rename module to github.com/hanzoai/expr 2026-06-30 17:34:46 -07:00
f99e1bad97 Separate patching phases for patchers that require multiple passes. (#659)
* Reset tracking of applied operator overloads before every walk of the ast tree.

* Remove limit on operator overload resolution

* Do separate patcher phase for those that require multiple passes (Currently only need for Operator overloading). This patcher phase is run after other patchers.

* Add test to track how many times a patcher is run. Used to detect if patching phases is erroneously applying the patcher multiple times.

---------

Co-authored-by: Anton Medvedev <[email protected]>
2025-03-07 15:27:19 +01:00
Anton MedvedevandGitHub 68e3148c1f Vendor testify (#642) 2024-05-08 00:24:35 +02:00
Anton Medvedev 1c71bad386 Add change ident patcher test 2023-12-26 16:24:00 +01:00
Anton Medvedev 551d2a7e0f Use expr-lang/expr 2023-12-03 21:53:01 +01:00
Anton Medvedev 3274bda123 Do not copy node type in ast.Patch
Fixes #468
2023-11-16 15:41:43 +01:00
Anton Medvedev 8177d8bd9f Add OpCallBuiltin opcode to avoid an extra allocation 2023-08-14 11:50:42 +02:00