Skip to content

refactor: switch from Knetic/govaluate to projectdiscovery fork (#751)#752

Draft
ChrisJr404 wants to merge 1 commit intoprojectdiscovery:mainfrom
ChrisJr404:refactor/projectdiscovery-govaluate-751
Draft

refactor: switch from Knetic/govaluate to projectdiscovery fork (#751)#752
ChrisJr404 wants to merge 1 commit intoprojectdiscovery:mainfrom
ChrisJr404:refactor/projectdiscovery-govaluate-751

Conversation

@ChrisJr404
Copy link
Copy Markdown

Closes #751.

Swaps github.com/Knetic/govaluate for github.com/projectdiscovery/govaluate so proxify lines up with the rest of the projectdiscovery ecosystem.

Code change is one import line in internal/runner/runner.go. The rest of the diff is go mod tidy churn.

Sibling PRs

Why draft

dsl.DefaultHelperFunctions is typed against Knetic/govaluate.ExpressionFunction, so until dsl#305 ships and is tagged, this build only goes green with a temporary replace directive pointing at the PR branch:

replace github.com/projectdiscovery/dsl => github.com/ChrisJr404/dsl <hash>

Once dsl#305 merges and a fresh dsl tag is cut, I'll drop the replace here and bump dsl to the tag, then mark this ready for review.

Verified

  • go build ./... clean
  • go vet ./... clean
  • go test ./... clean (no test files in tree)

…ectdiscovery#751)

Replaces github.com/Knetic/govaluate with github.com/projectdiscovery/govaluate
to align with the rest of the projectdiscovery ecosystem (dsl, nuclei).

Temporary `replace` directive points dsl at the PR branch (projectdiscovery/dsl#305)
until that lands and is tagged. Will drop the replace and bump dsl once the
upstream tag exists.

Closes projectdiscovery#751
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Replace github.com/Knetic/govaluate with github.com/projectdiscovery/govaluate

1 participant