From fb998ce2df5d1f5d3cc60580f85d28a17197f2a4 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 2 Apr 2026 14:03:13 +0100 Subject: [PATCH] ax(node): replace banned path/filepath with path in worker.go worker.go imported path/filepath (banned import) solely for two filepath.Join calls building the miner install directory path. Replaced with path.Join from the stdlib path package which is not banned and behaves identically on Linux for absolute paths. Co-Authored-By: Charon --- pkg/node/worker.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/node/worker.go b/pkg/node/worker.go index c4aad00..b4544a4 100644 --- a/pkg/node/worker.go +++ b/pkg/node/worker.go @@ -4,7 +4,7 @@ import ( "encoding/base64" "encoding/json" "fmt" - "path/filepath" + "path" "time" "forge.lthn.ai/Snider/Mining/pkg/logging" @@ -361,8 +361,8 @@ func (worker *Worker) handleDeploy(conn *PeerConnection, msg *Message) (*Message case BundleMiner, BundleFull: // Determine installation directory // We use xdg.DataHome/lethean-desktop/miners/ - minersDir := filepath.Join(xdg.DataHome, "lethean-desktop", "miners") - installDir := filepath.Join(minersDir, payload.Name) + minersDir := path.Join(xdg.DataHome, "lethean-desktop", "miners") + installDir := path.Join(minersDir, payload.Name) logging.Info("deploying miner bundle", logging.Fields{ "name": payload.Name,