mirror of
https://github.com/mudler/luet.git
synced 2025-09-16 07:10:29 +00:00
Add compression to build CLI
Also handle how concurrency is set now. Adds also an accessor to compiler to set the desired compression type Refers to #33
This commit is contained in:
@@ -65,6 +65,10 @@ func (cs *LuetCompiler) SetConcurrency(i int) {
|
||||
cs.Concurrency = i
|
||||
}
|
||||
|
||||
func (cs *LuetCompiler) SetCompressionType(t CompressionImplementation) {
|
||||
cs.CompressionType = t
|
||||
}
|
||||
|
||||
func (cs *LuetCompiler) compilerWorker(i int, wg *sync.WaitGroup, cspecs chan CompilationSpec, a *[]Artifact, m *sync.Mutex, concurrency int, keepPermissions bool, errors chan error) {
|
||||
defer wg.Done()
|
||||
|
||||
|
@@ -30,6 +30,7 @@ type Compiler interface {
|
||||
|
||||
SetBackend(CompilerBackend)
|
||||
GetBackend() CompilerBackend
|
||||
SetCompressionType(t CompressionImplementation)
|
||||
}
|
||||
|
||||
type CompilerBackendOptions struct {
|
||||
|
Reference in New Issue
Block a user