Skip to content

Commit

Permalink
fix(sage): remove usage of locally installed balena binary
Browse files Browse the repository at this point in the history
This override was added in 30ed5e9 to
be able to use balena in NixOS. However, the cost of supporting NixOS is
not worth the issues that arise when everyone potentially runs different
balenacli versions.

This commit removes the check if user already has balena CLI installed,
and will now always use the version specified in this file.
  • Loading branch information
ericwenn committed Aug 10, 2024
1 parent 540458d commit 808e930
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions tools/sgbalenacli/tools.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,6 @@ func Whoami(ctx context.Context) (WhoamiInfo, error) {
}

func PrepareCommand(ctx context.Context) error {
// Special case: use local balena CLI if available.
if binary, err := exec.LookPath("balena"); err == nil {
if _, err := sgtool.CreateSymlink(binary); err != nil {
return err
}
return nil
}
binDir := sg.FromToolsDir(toolName, version)
binary := filepath.Join(binDir, toolName, binaryName)
hostOS := runtime.GOOS
Expand Down

0 comments on commit 808e930

Please sign in to comment.