-
Notifications
You must be signed in to change notification settings - Fork 263
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
Plugins can't be executed on Windows #737
Comments
We can refer to |
Cool, thanks ! I'll assign the issue to you /assign MIBc |
Fixes knative#737 * Use exec.Command instend of syscall.Exec for windows. * Fix a bug in plugin handler test when running it on windows. * Fix typo.
Fixes knative#737 * Use exec.Command instend of syscall.Exec for windows. * Fix a bug in plugin handler test when running it on windows. * Fix typo.
I also wonder if there is a way to extend PROW to support any platform specific e2e tests execution? Would be useful for this issue (Windows) and the small differences between Mac OSX and Linux. For instance this issue Mac OS X-specific issue #733 will require a Mac to test. I am going to open an issue to capture this problem. It’s not high-priority since we can trust the various contributors have done the tests but that clearly will not be a long term solution for automated CI. |
Fixes knative#737 * Use exec.Command instend of syscall.Exec for windows. * Fix a bug in plugin handler test when running it on windows. * Fix typo.
Fixes knative#737 * Use exec.Command instend of syscall.Exec for windows. * Fix a bug in plugin handler test when running it on windows. * Fix typo.
Fixes #737 * Use exec.Command instend of syscall.Exec for windows. * Fix a bug in plugin handler test when running it on windows. * Fix typo.
Fixes knative#737 * Use exec.Command instend of syscall.Exec for windows. * Fix a bug in plugin handler test when running it on windows. * Fix typo.
* fix(trigger): Make --filter flag truly optional (#745) * fix(trigger): Make --filter flag truly optional * fix(trigger): Update trigger docs * chore: Update changelog * fix(trigger): Fix filter delete for trigger update (#746) * chore: Update changelog * Fix plugin execution for Windows (#738) Fixes #737 * Use exec.Command instend of syscall.Exec for windows. * Fix a bug in plugin handler test when running it on windows. * Fix typo. * fix: Fix default config path on Windows (#752) Co-authored-by: Lv Jiawei <[email protected]>
* [release-v0.22.0] Update func to v0.16.0 * [release-v0.22.0] Update func to latest release
Bug report
We use
syscall.Exec()
as underlying mechanism to execute plugins locally. However,syscall
doesn't support Windows as target platform.The very same problem resolved in kubectl.
client/pkg/kn/commands/plugin/handler.go
Lines 94 to 97 in db569fa
Expected behavior
kn
plugins are executable on Windows.kn version
HEAD
/kind good-first-issue
The text was updated successfully, but these errors were encountered: