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

Release both statically linked without wasm and dynamically linked with wasm #3893

Merged
merged 1 commit into from
Mar 27, 2023

Conversation

mortent
Copy link
Contributor

@mortent mortent commented Mar 23, 2023

Fully functional statically linked binaries with WASM support doesn't seem to be possible, so for now we should just remove WASM support in the regular kpt releases. If there is sufficient demand, we can create dynamically linked binaries of kpt with WASM support for the most common Unix variants.
More details in #3892 (comment)

Fixes: #3892

@mortent mortent requested a review from a team as a code owner March 23, 2023 03:42
@wleese
Copy link
Contributor

wleese commented Mar 23, 2023

How do I register my company as a WASM user? =)

@mortent
Copy link
Contributor Author

mortent commented Mar 23, 2023

@wleese Point taken, I'll talk with others on the team on our options here.

Do you know if kpt binaries with WASM support that is dynamically linked to glibc is useful for you?

@wleese
Copy link
Contributor

wleese commented Mar 23, 2023

For exactly the reasons stated in the issue, we have found ourselves switching between alpine and debian. I believe we‘re now on debian, so dynamically linked would be fine

}

func (f *WasmtimeFn) Run(r io.Reader, w io.Writer) error {
return fmt.Errorf("wasmtime support is not compiled into binary (check cgo settings)")
return fmt.Errorf("wasmtime support is not compiled into binary (build kpt from source for wasm support)")
Copy link
Contributor

Choose a reason for hiding this comment

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

should these error messages be changed with your most recent push? Maybe something along the lines of please download the kpt binary with wasm support instead ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, I've updated the language.

Copy link
Contributor

@natasha41575 natasha41575 Mar 25, 2023

Choose a reason for hiding this comment

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

I still see the old error message ‘build kpt from source for wasm support’ and your last force push didn’t appear to have any changes, did you intend to commit something?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, I thought I had committed the change, but just noticed it wasn't included in my commit. It is updated now.

@mortent mortent changed the title Disable WASM for kpt releases so we can compile without cgo Release both statically linked without wasm and dynamically linked with wasm Mar 24, 2023
@mortent mortent merged commit 0151360 into kptdev:main Mar 27, 2023
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.

SIGSEGV during kpt live install-resource-group
3 participants