Skip to content

Commit

Permalink
set effective repo
Browse files Browse the repository at this point in the history
  • Loading branch information
mandelsoft committed Dec 19, 2024
1 parent 4a1ab6d commit 195b1ff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions api/ocm/internal/repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,8 @@ type ComponentVersionAccess interface {
ReadOnlyFeature

GetContext() Context
// Repository returns the backing repository object without an additional
// ref. It should not be closed.
Repository() Repository
GetDescriptor() *compdesc.ComponentDescriptor

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ func (h *TypeHandler) get(repo ocm.Repository, elemspec utils.ElemSpec) ([]outpu
s := spec
s.Version = &t
result = append(result, &Object{
Repository: repo,
Repository: v.Repository(),
Spec: s,
// Component: component,
ComponentVersion: v,
Expand Down

0 comments on commit 195b1ff

Please sign in to comment.