change build interface

This commit is contained in:
Asim Aslam
2020-10-18 09:51:11 +01:00
parent 48de9f25a8
commit 04b5fc19c2
4 changed files with 9 additions and 4 deletions

View File

@@ -10,7 +10,8 @@ import (
type tarBuild struct{}
func (t *tarBuild) Package(name string, src *build.Source) (*build.Package, error) {
func (t *tarBuild) Package(src *build.Source) (*build.Package, error) {
name := src.Name
pkg := name + ".tar.gz"
// path to the tarball
path := filepath.Join(os.TempDir(), src.Path, pkg)