mirror of
https://github.com/mudler/luet.git
synced 2025-09-03 08:14:46 +00:00
Add IsVirtual() to compile spec
This commit is contained in:
@@ -522,9 +522,9 @@ func (cs *LuetCompiler) compileWithImage(image, buildertaggedImage, packageImage
|
||||
p CompilationSpec, generateArtifact bool) (Artifact, error) {
|
||||
|
||||
// If it is a virtual, check if we have to generate an empty artifact or not.
|
||||
if generateArtifact && p.EmptyPackage() && !p.HasImageSource() {
|
||||
if generateArtifact && p.IsVirtual() {
|
||||
return cs.genArtifact(p, CompilerBackendOptions{}, CompilerBackendOptions{}, concurrency, keepPermissions)
|
||||
} else if p.EmptyPackage() && !p.HasImageSource() {
|
||||
} else if p.IsVirtual() {
|
||||
return &PackageArtifact{}, nil
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user