From 0e0ddeaf4e9144427fa0c0a13f5926b00faae110 Mon Sep 17 00:00:00 2001 From: TomVasile <43349666+TomVasile@users.noreply.github.com> Date: Tue, 21 Apr 2020 19:24:41 +0000 Subject: [PATCH] fix build dependencies; look for dist in nested dir; --- plugin.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugin.go b/plugin.go index 796ccf3..c98f2b0 100644 --- a/plugin.go +++ b/plugin.go @@ -3,6 +3,7 @@ package main import ( "log" "os/exec" + "path/filepath" "github.com/pkg/errors" ) @@ -40,7 +41,7 @@ func (p Plugin) uploadCommand() *exec.Cmd { args = append(args, p.Username) args = append(args, "--password") args = append(args, p.Password) - args = append(args, "dist/*") + args = append(args, filepath.Join(filepath.Dir(p.SetupFile), "dist/*")) return exec.Command("twine", args...) }