Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Go Matching error for chained function calls #530

Open
morgante opened this issue Oct 2, 2024 · 1 comment
Open

Go Matching error for chained function calls #530

morgante opened this issue Oct 2, 2024 · 1 comment
Labels

Comments

@morgante
Copy link
Contributor

morgante commented Oct 2, 2024

This should match:

language go

`WithExec($x)`
func myFunc() {
  return t.Base(image).
        WithMountedFile("/sss/"+imageRef, ctr.AsTarball()).
        WithExec([]string{"some", "op"}).Stdout(ctx)
}
@morgante
Copy link
Contributor Author

morgante commented Oct 2, 2024

This isn't straightforward to solve with a context string, because the t.WithExec part is actually in the source separate from the args.

We probably need equivalence classes of some sort for this.

@morgante morgante added the Go label Oct 2, 2024
@morgante morgante changed the title Matching error Go Matching error for chained function calls Oct 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant