Skip to content

Commit 5435bae

Browse files
authored
feat: import model spec repo for building (#30)
Signed-off-by: Gaius <[email protected]>
1 parent 25cc1de commit 5435bae

File tree

16 files changed

+18
-91
lines changed

16 files changed

+18
-91
lines changed

go.mod

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
module github.com/CloudNativeAI/modctl
22

3-
go 1.23.0
3+
go 1.23.3
44

55
require (
6+
github.com/CloudNativeAI/model-spec v0.0.0-20241121031550-59ad02d4a225
67
github.com/distribution/reference v0.6.0
78
github.com/dustin/go-humanize v1.0.1
89
github.com/emirpasic/gods v1.18.1
@@ -15,11 +16,9 @@ require (
1516
github.com/vbauerster/mpb/v8 v8.8.3
1617
golang.org/x/crypto v0.29.0
1718
oras.land/oras-go/v2 v2.5.0
18-
zotregistry.dev/zot v1.4.3
19+
zotregistry.dev/zot v1.4.4-0.20241020091450-edb549142830
1920
)
2021

21-
replace zotregistry.dev/zot v1.4.3 => zotregistry.dev/zot v1.4.4-0.20241020091450-edb549142830
22-
2322
require (
2423
github.com/VividCortex/ewma v1.2.0 // indirect
2524
github.com/acarl005/stripansi v0.0.0-20180116102854-5a71ef0e047d // indirect

go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2 h1:XHOnouVk1mx
5555
github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2/go.mod h1:wP83P5OoQ5p6ip3ScPr0BAq0BvuPAvacpEuSzyouqAI=
5656
github.com/BurntSushi/toml v1.4.0 h1:kuoIxZQy2WRRk1pttg9asf+WVv6tWQuBNVmK8+nqPr0=
5757
github.com/BurntSushi/toml v1.4.0/go.mod h1:ukJfTF/6rtPPRCnwkur4qwRxa8vTRFBF0uk2lLoLwho=
58+
github.com/CloudNativeAI/model-spec v0.0.0-20241121031550-59ad02d4a225 h1:/wakwn9KDTKnVSlg+H12XxsGSVSNs0XK/j9UjUw3vUs=
59+
github.com/CloudNativeAI/model-spec v0.0.0-20241121031550-59ad02d4a225/go.mod h1:/wGtOmyHRaxmWGWguc1oh7pcYbWyiuXG+VkAV8vmOTI=
5860
github.com/CycloneDX/cyclonedx-go v0.9.0 h1:inaif7qD8bivyxp7XLgxUYtOXWtDez7+j72qKTMQTb8=
5961
github.com/CycloneDX/cyclonedx-go v0.9.0/go.mod h1:NE/EWvzELOFlG6+ljX/QeMlVt9VKcTwu8u0ccsACEsw=
6062
github.com/GoogleCloudPlatform/docker-credential-gcr v2.0.5+incompatible h1:juIaKLLVhqzP55d8x4cSVgwyQv76Z55/fRv/UBr2KkQ=

pkg/backend/build.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import (
2626
"github.com/CloudNativeAI/modctl/pkg/backend/build"
2727
"github.com/CloudNativeAI/modctl/pkg/backend/processor"
2828
"github.com/CloudNativeAI/modctl/pkg/modelfile"
29-
modelspec "github.com/CloudNativeAI/modctl/pkg/spec"
29+
modelspec "github.com/CloudNativeAI/model-spec/specs-go/v1"
3030

3131
humanize "github.com/dustin/go-humanize"
3232
ocispec "github.com/opencontainers/image-spec/specs-go/v1"

pkg/backend/build/build.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import (
2424
"path/filepath"
2525
"time"
2626

27-
modelspec "github.com/CloudNativeAI/modctl/pkg/spec"
27+
modelspec "github.com/CloudNativeAI/model-spec/specs-go/v1"
2828
"github.com/CloudNativeAI/modctl/pkg/storage"
2929

3030
godigest "github.com/opencontainers/go-digest"

pkg/backend/build_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import (
2020
"testing"
2121
"time"
2222

23-
modelspec "github.com/CloudNativeAI/modctl/pkg/spec"
23+
modelspec "github.com/CloudNativeAI/model-spec/specs-go/v1"
2424
"github.com/CloudNativeAI/modctl/test/mocks/modelfile"
2525

2626
"github.com/stretchr/testify/assert"

pkg/backend/inspect.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import (
2121
"encoding/json"
2222
"fmt"
2323

24-
modelspec "github.com/CloudNativeAI/modctl/pkg/spec"
24+
modelspec "github.com/CloudNativeAI/model-spec/specs-go/v1"
2525
ocispec "github.com/opencontainers/image-spec/specs-go/v1"
2626
)
2727

pkg/backend/list.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import (
2323
"sort"
2424
"time"
2525

26-
modelspec "github.com/CloudNativeAI/modctl/pkg/spec"
26+
modelspec "github.com/CloudNativeAI/model-spec/specs-go/v1"
2727

2828
ocispec "github.com/opencontainers/image-spec/specs-go/v1"
2929
)

pkg/backend/processor/license.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import (
2121
"os"
2222

2323
"github.com/CloudNativeAI/modctl/pkg/backend/build"
24-
modelspec "github.com/CloudNativeAI/modctl/pkg/spec"
24+
modelspec "github.com/CloudNativeAI/model-spec/specs-go/v1"
2525
"github.com/CloudNativeAI/modctl/pkg/storage"
2626

2727
ocispec "github.com/opencontainers/image-spec/specs-go/v1"

pkg/backend/processor/license_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import (
2121
"testing"
2222
"testing/fstest"
2323

24-
modelspec "github.com/CloudNativeAI/modctl/pkg/spec"
24+
modelspec "github.com/CloudNativeAI/model-spec/specs-go/v1"
2525
"github.com/CloudNativeAI/modctl/test/mocks/storage"
2626

2727
"github.com/stretchr/testify/assert"

pkg/backend/processor/model.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import (
2222
"regexp"
2323

2424
"github.com/CloudNativeAI/modctl/pkg/backend/build"
25-
modelspec "github.com/CloudNativeAI/modctl/pkg/spec"
25+
modelspec "github.com/CloudNativeAI/model-spec/specs-go/v1"
2626
"github.com/CloudNativeAI/modctl/pkg/storage"
2727

2828
ocispec "github.com/opencontainers/image-spec/specs-go/v1"

0 commit comments

Comments
 (0)