Place the full command to "cmd" package

This changed some variables access and the Makefile to build from
"./cmd" direcoty.
This commit is contained in:
2022-03-28 11:43:17 +02:00
parent e41d7b0c29
commit daf8907f14
6 changed files with 279 additions and 280 deletions

View File

@@ -2,15 +2,14 @@ package update
import (
"fmt"
"katenary/cmd"
"os"
"testing"
)
func TestDownloadLatestRelease(t *testing.T) {
// Change the cmd.Version to "v0.0.0" to test the fallback to the latest release
cmd.Version = "v0.0.0"
// Reset the version to test the latest release
Version = "0.0.0"
// change "exe" to /tmp/test-katenary
exe = "/tmp/test-katenary"