(MacOS) - Unable to execute kubectl commands inside wails app
#3961
Unanswered
abhijith-darshan
asked this question in
Q&A
Replies: 3 comments 3 replies
|
I'm not sure what this could be, but it's not a Wails bug. Moving to Q & A. |
1 reply
|
I meet the same problem it worked on dev stage on production , the applicaiton seems like can not get the os.Env func (a *App)OpenProject(filePath string){
cwd := filepath.Dir(filePath)
var cmd *exec.Cmd = exec.Command("marscode", "./")
cmd.Dir = cwd
cmd.Env = append(cmd.Env, os.Environ()...)
cmd.Run()
} |
0 replies
|
@leaanthony - it has been a while do you have any recommendations here?? |
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Description
In my application I am trying to use kubernetes
client-go, which works in dev mode when the kubeconfig has oidc enabled. But when packaged the application doesn't seem to have access tokubectlbinary.However when i run the app using
sudo open /path/to/appon the terminal, it seems to have access tokubectlbinary and client-go successfully initiates the oidc flow.To Reproduce
...
Expected behaviour
Packaged App should behave exactly like in dev mode
Screenshots
No response
Attempted Fixes
sudo open /path/to/appSystem Details
Wails Doctor # Wails Version | v2.9.2 # System ┌────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐ | OS | MacOS | | Version | 15.1.1 | | ID | 24B91 | | Go Version | go1.23.1 | | Platform | darwin | | Architecture | arm64 | | CPU | Apple M3 Pro | | GPU | Chipset Model: Apple M3 Pro Type: GPU Bus: Built-In Total Number of Cores: 18 Vendor: Apple (0x106b) Metal Support: Metal 3 | | Memory | 36GB | └────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ # Dependencies ┌────────────────────────────────────────────────────────────────┐ | Dependency | Package Name | Status | Version | | Xcode command line tools | N/A | Installed | 2409 | | Nodejs | N/A | Installed | 22.12.0 | | npm | N/A | Installed | 10.9.0 | | *Xcode | N/A | Available | | | *upx | N/A | Available | | | *nsis | N/A | Available | | └─────────────────── * - Optional Dependency ────────────────────┘ # Diagnosis Optional package(s) installation details: - Xcode: Available at https://apps.apple.com/us/app/xcode/id497799835 - upx : Available at https://upx.github.io/ - nsis : More info at https://wails.io/docs/guides/windows-installer/ SUCCESS Your system is ready for Wails development!Additional context
No response
All reactions