Skip to content

Commit

Permalink
fixes: #1235
Browse files Browse the repository at this point in the history
  • Loading branch information
hilmarf committed Jan 10, 2025
1 parent e318071 commit 2dc0134
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions api/ocm/extensions/repositories/genericocireg/component.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,10 @@ func (c *componentAccessImpl) HasVersion(vers string) (bool, error) {
}

func (c *componentAccessImpl) LookupVersion(version string) (*repocpi.ComponentVersionAccessInfo, error) {
// LookupVersion '0.0.1-20250108132333.build-af79499' would fail with:
// unable to unref last: unable to cleanup component version [%v] while unref last: closing component version [%v]: check failed: component version [%v] is invalid
// This is because the version comes from an artifact tag, which doesn't allow '+' characters, which we replace with '.build-' during the push
version = toVersion(version) // ensure the cv doesn't contain '.build-'
tag, err := toTag(version)
if err != nil {
return nil, err
Expand Down

0 comments on commit 2dc0134

Please sign in to comment.