small fix
This commit is contained in:
parent
b7d9477263
commit
f4fcf6f7c4
2 changed files with 4 additions and 2 deletions
|
|
@ -60,8 +60,8 @@ func DownloadTemplate(outPath string) {
|
||||||
process.SetWorkingDir(newDir)
|
process.SetWorkingDir(newDir)
|
||||||
|
|
||||||
commands := [][]string{
|
commands := [][]string{
|
||||||
{"go", "get", "github.com/maddalax/htmgo/framework"},
|
{"go", "get", "github.com/maddalax/htmgo/framework@latest"},
|
||||||
{"go", "get", "github.com/maddalax/htmgo/framework-ui"},
|
{"go", "get", "github.com/maddalax/htmgo/framework-ui@latest"},
|
||||||
{"git", "init"},
|
{"git", "init"},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,12 +2,14 @@ package module
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"github.com/maddalax/htmgo/cli/htmgo/tasks/process"
|
||||||
"os/exec"
|
"os/exec"
|
||||||
"strings"
|
"strings"
|
||||||
)
|
)
|
||||||
|
|
||||||
func GetDependencyPath(dep string) string {
|
func GetDependencyPath(dep string) string {
|
||||||
cmd := exec.Command("go", "list", "-m", "-f", "{{.Dir}}", dep)
|
cmd := exec.Command("go", "list", "-m", "-f", "{{.Dir}}", dep)
|
||||||
|
cmd.Dir = process.GetWorkingDir()
|
||||||
// Run the command and capture the output
|
// Run the command and capture the output
|
||||||
output, err := cmd.CombinedOutput() // Use CombinedOutput to capture both stdout and stderr
|
output, err := cmd.CombinedOutput() // Use CombinedOutput to capture both stdout and stderr
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue