Skip to content

Commit

Permalink
Merge branch 'main' into chore/versioned-brew-no-goreleaser
Browse files Browse the repository at this point in the history
  • Loading branch information
jakobmoellerdev authored Nov 8, 2024
2 parents 7ac8605 + b711f7e commit a8a86b2
Show file tree
Hide file tree
Showing 8 changed files with 43 additions and 30 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.17.0-dev
0.18.0-dev
44 changes: 29 additions & 15 deletions api/oci/ref_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ package oci_test
import (
"strings"

"github.com/mandelsoft/goutils/generics"
. "github.com/mandelsoft/goutils/testutils"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"

"github.com/mandelsoft/goutils/generics"
godigest "github.com/opencontainers/go-digest"

"ocm.software/ocm/api/oci"
Expand Down Expand Up @@ -255,8 +255,10 @@ var _ = Describe("ref parsing", func() {
},
ArtSpec: oci.ArtSpec{
Repository: r,
ArtVersion: oci.ArtVersion{Tag: Pointer([]byte(uv)),
Digest: Dig([]byte(ud))},
ArtVersion: oci.ArtVersion{
Tag: Pointer([]byte(uv)),
Digest: Dig([]byte(ud)),
},
},
})
})
Expand Down Expand Up @@ -293,8 +295,10 @@ var _ = Describe("ref parsing", func() {
},
ArtSpec: oci.ArtSpec{
Repository: r,
ArtVersion: oci.ArtVersion{Tag: Pointer([]byte(uv)),
Digest: Dig([]byte(ud))},
ArtVersion: oci.ArtVersion{
Tag: Pointer([]byte(uv)),
Digest: Dig([]byte(ud)),
},
},
})
})
Expand Down Expand Up @@ -343,8 +347,10 @@ var _ = Describe("ref parsing", func() {
},
ArtSpec: oci.ArtSpec{
Repository: r,
ArtVersion: oci.ArtVersion{Tag: Pointer([]byte(uv)),
Digest: Dig([]byte(ud))},
ArtVersion: oci.ArtVersion{
Tag: Pointer([]byte(uv)),
Digest: Dig([]byte(ud)),
},
},
})
})
Expand Down Expand Up @@ -382,8 +388,10 @@ var _ = Describe("ref parsing", func() {
},
ArtSpec: oci.ArtSpec{
Repository: "library/" + r,
ArtVersion: oci.ArtVersion{Tag: Pointer([]byte(uv)),
Digest: Dig([]byte(ud))},
ArtVersion: oci.ArtVersion{
Tag: Pointer([]byte(uv)),
Digest: Dig([]byte(ud)),
},
},
})
})
Expand Down Expand Up @@ -418,8 +426,10 @@ var _ = Describe("ref parsing", func() {
},
ArtSpec: oci.ArtSpec{
Repository: r,
ArtVersion: oci.ArtVersion{Tag: Pointer([]byte(uv)),
Digest: Dig([]byte(ud))},
ArtVersion: oci.ArtVersion{
Tag: Pointer([]byte(uv)),
Digest: Dig([]byte(ud)),
},
},
})
})
Expand Down Expand Up @@ -596,8 +606,10 @@ var _ = Describe("ref parsing", func() {
},
ArtSpec: oci.ArtSpec{
Repository: "repo/repo",
ArtVersion: oci.ArtVersion{Tag: &tag,
Digest: &digest},
ArtVersion: oci.ArtVersion{
Tag: &tag,
Digest: &digest,
},
},
})
CheckRef("http://127.0.0.1:443/repo/repo:v1@"+digest.String(), &oci.RefSpec{
Expand All @@ -609,8 +621,10 @@ var _ = Describe("ref parsing", func() {
},
ArtSpec: oci.ArtSpec{
Repository: "repo/repo",
ArtVersion: oci.ArtVersion{Tag: &tag,
Digest: &digest},
ArtVersion: oci.ArtVersion{
Tag: &tag,
Digest: &digest,
},
},
})
CheckRef("directory::a/b", &oci.RefSpec{
Expand Down
5 changes: 2 additions & 3 deletions api/ocm/extensions/download/config/registration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,16 @@ import (
. "github.com/mandelsoft/goutils/testutils"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"

"ocm.software/ocm/api/ocm"
"ocm.software/ocm/api/ocm/extensions/download"
me "ocm.software/ocm/api/ocm/extensions/download/config"
"ocm.software/ocm/api/ocm/ocmutils"
"ocm.software/ocm/api/tech/helm"

me "ocm.software/ocm/api/ocm/extensions/download/config"
)

var _ = Describe("Download Handler regigistration", func() {
It("register by ocm config", func() {

ctx := ocm.New()

cfg := me.New()
Expand Down
2 changes: 1 addition & 1 deletion cmds/ocm/commands/verbs/install/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
// NewCommand creates a new command.
func NewCommand(ctx clictx.Context) *cobra.Command {
cmd := utils.MassageCommand(&cobra.Command{
Short: "Install elements.",
Short: "Install new OCM CLI components ",
}, verbs.Install)
cmd.AddCommand(plugins.NewCommand(ctx))
return cmd
Expand Down
2 changes: 1 addition & 1 deletion docs/reference/ocm.md
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ by a certificate delivered with the signature.
* [ocm <b>execute</b>](ocm_execute.md) &mdash; Execute an element.
* [ocm <b>get</b>](ocm_get.md) &mdash; Get information about artifacts and components
* [ocm <b>hash</b>](ocm_hash.md) &mdash; Hash and normalization operations
* [ocm <b>install</b>](ocm_install.md) &mdash; Install elements.
* [ocm <b>install</b>](ocm_install.md) &mdash; Install new OCM CLI components
* [ocm <b>list</b>](ocm_list.md) &mdash; List information about components
* [ocm <b>set</b>](ocm_set.md) &mdash; Set information about OCM repositories
* [ocm <b>show</b>](ocm_show.md) &mdash; Show tags or versions
Expand Down
2 changes: 1 addition & 1 deletion docs/reference/ocm_install.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## ocm install &mdash; Install Elements.
## ocm install &mdash; Install New OCM CLI Components

### Synopsis

Expand Down
2 changes: 1 addition & 1 deletion docs/reference/ocm_install_plugins.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,6 @@ $ ocm install plugin -r demo

#### Parents

* [ocm install](ocm_install.md) &mdash; Install elements.
* [ocm install](ocm_install.md) &mdash; Install new OCM CLI components
* [ocm](ocm.md) &mdash; Open Component Model command line client

14 changes: 7 additions & 7 deletions examples/lib/tour/01-getting-started/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,32 +168,32 @@ differ, because the code always describes the latest version):

```text
resources of the latest version:
version: 0.17.0
version: 0.18.0-rc.1
provider: ocm.software
1: name: ocmcli
extra identity: "architecture"="amd64","os"="linux"
resource type: executable
access: Local blob sha256:03a45dcde67ba565fe806cb5db67da3387f772f7c50af711a0edd6f802570c04[]
access: Local blob sha256:74fdf71c5467cacd1cb09d15d6ad4944d60cc8efa1d704a91c337e54dcd03fbc[]
2: name: ocmcli
extra identity: "architecture"="arm64","os"="linux"
resource type: executable
access: Local blob sha256:5a622634ae43cf03eac91079389d83266891d1f9b2d8a3884cef6fe639180324[]
access: Local blob sha256:d0022850cce685d48ca589b3b59913ecbc3572f7f5082bca5c086a4bf2b47c5a[]
3: name: ocmcli
extra identity: "architecture"="arm64","os"="darwin"
resource type: executable
access: Local blob sha256:1482fe5b764e3a86cf96704d7a839ad7e53dcbfd4f5fce5405abffb1962153dd[]
access: Local blob sha256:1161fc38d0fe78ba3be97783f8676a46afa2baf57c199f937798f791cc4961d3[]
4: name: ocmcli
extra identity: "architecture"="amd64","os"="darwin"
resource type: executable
access: Local blob sha256:805f181aff48511eea12c699ed1bbcee8bdc4c5168924e81058aff8715946875[]
access: Local blob sha256:33074ce5cc079ea4fc1dbcc7bd54c27cc93f0e188d9ad8c56ba642c4ba6744af[]
5: name: ocmcli
extra identity: "architecture"="amd64","os"="windows"
resource type: executable
access: Local blob sha256:20839c68bf0c4cf99444d78ebb93f53358fa9e95fe806f186220bd21d520efa7[]
access: Local blob sha256:2fbac39d7772ae1cf209aca5bb5efdbb6b91e83aede9464c52304c3ccebb4f67[]
6: name: ocmcli-image
extra identity:
resource type: ociImage
access: OCI artifact ghcr.io/open-component-model/ocm/ocm.software/ocmcli/ocmcli-image:0.17.0@sha256:16fb52a1cb11c867bd058f4124dea53fbab94229842cc14b52653c2e80b1cede
access: OCI artifact ghcr.io/open-component-model/ocm/ocm.software/ocmcli/ocmcli-image:0.18.0-rc.1@sha256:3ba3e8c075f7f91e851ec3ce53da2347fe464b3ac33c6d65cf89a459193bb5cb
```

Resources have some metadata, like their identity and a resource type.
Expand Down

0 comments on commit a8a86b2

Please sign in to comment.