Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/ContainerRegistry/ImageContainerRegistry.swift
Original file line number Diff line number Diff line change
Expand Up @@ -301,13 +301,13 @@ class ImageContainerRegistry: @unchecked Sendable {

// Set total size and file count
let totalFiles = manifest.layers.filter { $0.mediaType != "application/vnd.oci.empty.v1+json" }.count
await progress.setTotal(
manifest.layers.reduce(0) { $0 + Int64($1.size) },
files: totalFiles
)
let totalSize = manifest.layers.reduce(0) { $0 + Int64($1.size) }
Logger.info("Total download size: \(ByteCountFormatter.string(fromByteCount: totalSize, countStyle: .file))")
await progress.setTotal(totalSize, files: totalFiles)

// Process layers with limited concurrency
Logger.info("Processing Image layers")
Logger.info("This may take several minutes depending on the image size and your internet connection. Please wait...")
var diskParts: [(Int, URL)] = []
var totalParts = 0
let maxConcurrentTasks = 5
Expand Down
2 changes: 1 addition & 1 deletion src/Main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ struct Lume: AsyncParsableCommand {
// MARK: - Version Management
extension Lume {
enum Version {
static let current: String = "0.1.5"
static let current: String = "0.1.6"
}
}

Expand Down