Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces significant changes to the
modctl
package, focusing on replacing thearchiver
package with a newcodec
package for encoding and decoding files. Additionally, it updates themodel-spec
dependency and refactors various functions to integrate the new codec system.Dependency updates:
github.com/CloudNativeAI/model-spec
from v0.0.2 to v0.0.3 ingo.mod
.Refactoring and integration of codec package:
archiver
package withcodec
package inpkg/backend/build/builder.go
. TheOutputLayer
method signature and theBuildLayer
function were updated to use the new codec system for encoding files. [1] [2] [3] [4]OutputLayer
method inpkg/backend/build/local.go
to use the new codec system.OutputLayer
method inpkg/backend/build/remote.go
to use the new codec system. [1] [2]archiver
package withcodec
package inpkg/backend/extract.go
and refactored theexportModelArtifact
function to use the new codec system for extracting layers. [1] [2]archiver
package withcodec
package inpkg/backend/pull.go
and updated thepullAndExtractFromRemote
function to use the new codec system for extracting layers. [1] [2]Introduction of codec package:
codec
package withCodec
,RawCodec
, andTarCodec
implementations for encoding and decoding files. [1] [2] [3]