Skip to content
This repository has been archived by the owner on May 26, 2023. It is now read-only.

Commit

Permalink
fix base url in generator
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Schrodi committed Mar 9, 2021
1 parent e5444eb commit 29c4195
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/componentarchive/archive.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ func (o *BuilderOptions) Build(fs vfs.FileSystem) (*ctf.ComponentArchive, error)
cd.ComponentSpec.Version = o.Version
cd.Provider = cdv2.InternalProvider
cd.RepositoryContexts = make([]cdv2.RepositoryContext, 0)
if len(o.BaseUrl) == 0 {
if len(o.BaseUrl) != 0 {
cd.RepositoryContexts = []cdv2.RepositoryContext{
{
Type: cdv2.OCIRegistryType,
Expand Down

0 comments on commit 29c4195

Please sign in to comment.