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

Add WASM support #1

Merged
merged 1 commit into from Nov 20, 2023
Merged

Add WASM support #1

merged 1 commit into from Nov 20, 2023

Conversation

swenson
Copy link

@swenson swenson commented Nov 20, 2023

Moved some functions and constants around so common ones are in ui_common.js.

ui_js.go Mostly contains a basic call out to prompt() to ask for input. It's not perfect, but it works and is simple.

Moved some functions and constants around so common ones are in
`ui_common.js`.

`ui_js.go` Mostly contains a basic call out to `prompt()` to ask for
input. It's not perfect, but it works and is simple.
Copy link

@dekimsey dekimsey left a comment

Choose a reason for hiding this comment

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

LGTM, left a minor question about go versions in use.

@@ -4,7 +4,7 @@ jobs:
test:
strategy:
matrix:
go-version: [1.18.x]
go-version: [1.21.x]

Choose a reason for hiding this comment

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

Just confirming, we are setting go.mod to 1.20, but here we are testing with the newest stable intentionally.

Given it's a library and not a cli, I don't think they are required to match. Just wanted to confirm intent and not a typo.

Copy link
Author

Choose a reason for hiding this comment

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

Correct, this is intentional. Updating go.mod to >= 1.21.0 means that the library requires that version as a minimum. But, that seems a bit overreaching. So, we keep it back to 1.20 so we aren't forcing users of this library to upgrade.

Copy link
Author

Choose a reason for hiding this comment

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

@swenson
Copy link
Author

swenson commented Nov 20, 2023

Thanks!

@swenson swenson merged commit d1b0d03 into hashicorp:main Nov 20, 2023
2 checks passed
@swenson swenson deleted the wasm branch November 20, 2023 21:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants