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

check abi versions #45

Merged
merged 2 commits into from
Feb 12, 2021

Conversation

srenatus
Copy link
Contributor

In open-policy-agent/opa#3142, we'll be introducing an ABI version.

This change checks that the version is what we currently expect. Also serves as an example on how to use the global variable in nodejs.

@srenatus srenatus force-pushed the sr/check-abi-versions branch from 3940710 to 80ad533 Compare February 11, 2021 14:39
Signed-off-by: Stephan Renatus <stephan.renatus@gmail.com>
Variables starting with an underscore indicate that they're not used.
So, we use it for ctx (unused), and don't use it for _1, _2, ... args.

Also renames policy_wasm -> policyWasm.

Signed-off-by: Stephan Renatus <stephan.renatus@gmail.com>
@srenatus srenatus force-pushed the sr/check-abi-versions branch from 80ad533 to 9394232 Compare February 11, 2021 14:48
@srenatus srenatus marked this pull request as ready for review February 12, 2021 14:52
Copy link
Member

@anderseknert anderseknert left a comment

Choose a reason for hiding this comment

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

LGTM

@srenatus srenatus merged commit 999b043 into open-policy-agent:master Feb 12, 2021
@srenatus srenatus deleted the sr/check-abi-versions branch February 12, 2021 16:35
@aron aron mentioned this pull request Dec 19, 2021
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.

2 participants