mirror of
https://github.com/mudler/luet.git
synced 2025-09-06 17:50:34 +00:00
Set abs path when returning artifact from yaml
This commit is contained in:
@@ -99,8 +99,13 @@ func LoadArtifactFromYaml(spec CompilationSpec) (Artifact, error) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, errors.Wrap(err, "Error reading file "+metaFile)
|
return nil, errors.Wrap(err, "Error reading file "+metaFile)
|
||||||
}
|
}
|
||||||
|
art, err := NewPackageArtifactFromYaml(dat)
|
||||||
return 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) {
|
func (a *PackageArtifact) SetCompressionType(t CompressionImplementation) {
|
||||||
|
Reference in New Issue
Block a user