feat: add the codec support #127
Merged
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
modctlpackage, focusing on replacing thearchiverpackage with a newcodecpackage for encoding and decoding files. Additionally, it updates themodel-specdependency and refactors various functions to integrate the new codec system.Dependency updates:
github.com/CloudNativeAI/model-specfrom v0.0.2 to v0.0.3 ingo.mod.Refactoring and integration of codec package:
archiverpackage withcodecpackage inpkg/backend/build/builder.go. TheOutputLayermethod signature and theBuildLayerfunction were updated to use the new codec system for encoding files. [1] [2] [3] [4]OutputLayermethod inpkg/backend/build/local.goto use the new codec system.OutputLayermethod inpkg/backend/build/remote.goto use the new codec system. [1] [2]archiverpackage withcodecpackage inpkg/backend/extract.goand refactored theexportModelArtifactfunction to use the new codec system for extracting layers. [1] [2]archiverpackage withcodecpackage inpkg/backend/pull.goand updated thepullAndExtractFromRemotefunction to use the new codec system for extracting layers. [1] [2]Introduction of codec package:
codecpackage withCodec,RawCodec, andTarCodecimplementations for encoding and decoding files. [1] [2] [3]