Annotate artifact metadata after compiling

This commit is contained in:
Ettore Di Giacinto
2019-11-22 21:01:29 +01:00
parent d134690560
commit df78308e98
7 changed files with 69 additions and 10 deletions

View File

@@ -48,7 +48,7 @@ func (r *CompilerRecipe) Load(path string) error {
if r.Tree() == nil {
r.PackageTree = NewDefaultTree()
}
r.SourcePath = path
//tmpfile, err := ioutil.TempFile("", "luet")
//if err != nil {
// return err
@@ -106,5 +106,6 @@ func (r *CompilerRecipe) Load(path string) error {
return nil
}
func (r *CompilerRecipe) Tree() pkg.Tree { return r.PackageTree }
func (r *CompilerRecipe) WithTree(t pkg.Tree) { r.PackageTree = t }
func (r *CompilerRecipe) Tree() pkg.Tree { return r.PackageTree }
func (r *CompilerRecipe) WithTree(t pkg.Tree) { r.PackageTree = t }
func (r *CompilerRecipe) GetSourcePath() string { return r.SourcePath }