Skip to content

Commit

Permalink
SeaweedFS.hs: add kubectl binary to PATH
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasjm committed Sep 25, 2024
1 parent 737573d commit cbdc4fd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ withSeaweedFS' kcc@(KubernetesClusterContext {kubernetesClusterKubeConfigPath})
info [i|Built Nix environment for operator builds: #{nixEnvPath}|]

let originalSearchPathParts = maybe [] splitSearchPath (L.lookup "PATH" baseEnv)
let finalPath = (nixEnvPath </> "bin") : originalSearchPathParts
let finalPath = (nixEnvPath </> "bin") : takeDirectory kubectlBinary : originalSearchPathParts
& fmap toText
& T.intercalate (toText [searchPathSeparator])
& toString
Expand Down

0 comments on commit cbdc4fd

Please sign in to comment.