From 808e9304416274c86c10b9045600a10045aa8827 Mon Sep 17 00:00:00 2001 From: Eric Wennerberg Date: Fri, 9 Aug 2024 17:07:47 +0200 Subject: [PATCH] fix(sage): remove usage of locally installed balena binary This override was added in 30ed5e9fe2890ca5ca12eaaf85cc0afb551b0918 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. --- tools/sgbalenacli/tools.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/tools/sgbalenacli/tools.go b/tools/sgbalenacli/tools.go index 289dc1b6..7254915a 100644 --- a/tools/sgbalenacli/tools.go +++ b/tools/sgbalenacli/tools.go @@ -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