Set abs path when returning artifact from yaml

This commit is contained in:
Ettore Di Giacinto
2020-01-05 15:51:48 +01:00
parent 6d745ef915
commit ee055e08b1

View File

@@ -99,8 +99,13 @@ func LoadArtifactFromYaml(spec CompilationSpec) (Artifact, error) {
if err != nil {
return nil, errors.Wrap(err, "Error reading file "+metaFile)
}
return NewPackageArtifactFromYaml(dat)
art, err := NewPackageArtifactFromYaml(dat)
if err != nil {
return nil, errors.Wrap(err, "Error writing file "+metaFile)
}
// It is relative, set it back to abs
art.SetPath(spec.Rel(art.GetPath()))
return art, nil
}
func (a *PackageArtifact) SetCompressionType(t CompressionImplementation) {