Skip to content

[BREAKING] [dependency] Replace unmaintained library govaluate with expr#126

Merged
cendhu merged 2 commits into
hyperledger:mainfrom
liran-funaro:replace-govaluate
Jul 2, 2026
Merged

[BREAKING] [dependency] Replace unmaintained library govaluate with expr#126
cendhu merged 2 commits into
hyperledger:mainfrom
liran-funaro:replace-govaluate

Conversation

@liran-funaro

@liran-funaro liran-funaro commented Jun 21, 2026

Copy link
Copy Markdown
Contributor

Type of change

  • Improvement (improvement to code, performance, etc)
  • Breaking change

Description

  • Replace unmaintained library github.com/Knetic/govaluate with a maintained version github.com/expr-lang/expr
  • Reduce to a single compile iteration instead of 3 iterations
  • Add ID deduplication
  • Use case-insensitive gates and roles

Related issues

@liran-funaro liran-funaro requested a review from cendhu June 21, 2026 16:00
@liran-funaro liran-funaro added the dependencies Pull requests that update a dependency file label Jun 21, 2026
@liran-funaro liran-funaro force-pushed the replace-govaluate branch 3 times, most recently from 608ed5c to ec91d70 Compare June 21, 2026 16:18
@coveralls

coveralls commented Jun 21, 2026

Copy link
Copy Markdown

Coverage Status

coverage: 82.468% (-0.07%) from 82.542% — liran-funaro:replace-govaluate into hyperledger:main

@liran-funaro liran-funaro force-pushed the replace-govaluate branch 4 times, most recently from 056a0d8 to 5055a89 Compare June 30, 2026 13:18
Signed-off-by: Liran Funaro <liran.funaro@gmail.com>
Comment thread common/policydsl/policyparser.go
Comment thread common/policydsl/policyparser.go Outdated
Comment thread common/policydsl/policyparser.go
Comment thread common/policydsl/policyparser.go Outdated
Signed-off-by: Liran Funaro <liran.funaro@gmail.com>
@adecaro

adecaro commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

I'm good with this but I think it introduces a breaking change because we cannot guarantee the two libraries agree on all inputs.

@liran-funaro liran-funaro changed the title [dependency] Replace unmaintained library govaluate with expr [BREAKING] [dependency] Replace unmaintained library govaluate with expr Jul 2, 2026
@liran-funaro liran-funaro requested a review from cendhu July 2, 2026 11:17

@cendhu cendhu left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@cendhu cendhu merged commit b8f8586 into hyperledger:main Jul 2, 2026
6 checks passed
@liran-funaro liran-funaro deleted the replace-govaluate branch July 2, 2026 14:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[dependency] unmaintained library github.com/Knetic/govaluate

4 participants