You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If we install the flux binary with brew (the first recommended install method in the flux docs), the GitOps extension cannot find it. The tool should either:
Be able to find it, or
Allow the user to set the location
Actual behaviour
/bin/sh: 1: flux: not found
Steps to reproduce
brew install fluxcd/tap/flux
Right click a workload in GitOps -> press reconcile with source:
Output:
> flux reconcile helmrelease somerelease -n somenamespace --with-source
/bin/sh: 1: flux: not found
Versions
kubectl version: 1.26.0
Flux version: 2.1.0
Git version: 2.34.1
Azure version: N/A
Extension version: 0.25.3
VSCode version: 1.82.2
Operating System (OS) and its version: Ubuntu 20.04 (WSL2)
The text was updated successfully, but these errors were encountered:
I've not been able to reproduce the bug on my OS X system. I'm using bash and my homebrew is configured in ~/.profile. Are you using a different shell in your terminal than system default?
The extension copies the PATH variable from the parent VSCode process environment. VSCode uses SHELL env variable to determine which profile files to load (~/.bash_profile, ~/.zprofile or others). If flux command is available in your terminal but not in VSCode it might be because VSCode is not loading the right profile.
If you haven't already can you try running flux in VSCode terminal? If that doesn't work then comparing PATH in your terminal and VSCode terminal can help find why VSCode doesn't have the homebrew PATH. Does the problem persist starting code from the terminal?
Expected behaviour
If we install the flux binary with brew (the first recommended install method in the flux docs), the GitOps extension cannot find it. The tool should either:
Actual behaviour
/bin/sh: 1: flux: not found
Steps to reproduce
brew install fluxcd/tap/flux
Right click a workload in GitOps -> press reconcile with source:
Output:
Versions
kubectl version: 1.26.0
Flux version: 2.1.0
Git version: 2.34.1
Azure version: N/A
Extension version: 0.25.3
VSCode version: 1.82.2
Operating System (OS) and its version: Ubuntu 20.04 (WSL2)
The text was updated successfully, but these errors were encountered: