From 409345289e9c3224ac7a31e1b92c118f7f390d72 Mon Sep 17 00:00:00 2001 From: VetheonGames Date: Mon, 8 Jan 2024 15:37:27 -0700 Subject: [PATCH] Still trying to get Makepkg to stop yelling about root perms it doesn't really have --- cmd/.version | 2 +- pkg/packagemanager/install.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/.version b/cmd/.version index 48a8907..669f27a 100644 --- a/cmd/.version +++ b/cmd/.version @@ -1 +1 @@ -AllPac V0.9.4 +AllPac V0.9.5 diff --git a/pkg/packagemanager/install.go b/pkg/packagemanager/install.go index 48c1199..173979b 100644 --- a/pkg/packagemanager/install.go +++ b/pkg/packagemanager/install.go @@ -167,7 +167,7 @@ func CloneAndInstallFromAUR(repoURL string, skipConfirmation bool) (string, erro // Build the package using makepkg as the non-root user cmdMakePkg := exec.Command("makepkg", "-si", "--noconfirm") - cmdMakePkg.Env = []string{"HOME=" + usr.HomeDir, "USER=" + usr.Username, "LOGNAME=" + usr.Username} + cmdMakePkg.Env = []string{"PATH=" + os.Getenv("PATH")} if output, err := cmdMakePkg.CombinedOutput(); err != nil { logger.Errorf("error building package with makepkg: %s, %v", output, err) return "", fmt.Errorf("error building package with makepkg: %s, %v", output, err)