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:
@@ -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"
|
||||
|
Reference in New Issue
Block a user