From 0e5956f57dfd7426e56246331e1680cf2c697754 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 2 Apr 2026 16:53:35 +0100 Subject: [PATCH] ax(node): replace path with filepath for filesystem path joining The "path" package uses forward-slash separators and is intended for URL paths; filesystem paths require "path/filepath" for OS-correct behaviour. Fixes worker.go handleDeploy to use filepath.Join when constructing the miners installation directory. 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 f5f85b8..4d1a220 100644 --- a/pkg/node/worker.go +++ b/pkg/node/worker.go @@ -2,7 +2,7 @@ package node import ( "encoding/base64" - "path" + "path/filepath" "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 := path.Join(xdg.DataHome, "lethean-desktop", "miners") - installDir := path.Join(minersDir, payload.Name) + minersDir := filepath.Join(xdg.DataHome, "lethean-desktop", "miners") + installDir := filepath.Join(minersDir, payload.Name) logging.Info("deploying miner bundle", logging.Fields{ "name": payload.Name,