Skip to content

Commit

Permalink
anaconda: implement getostreecommitsources
Browse files Browse the repository at this point in the history
  • Loading branch information
supakeen committed Dec 20, 2023
1 parent 6dedab4 commit d31ea31
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pkg/manifest/anaconda_installer_iso_tree.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,15 @@ func (p *AnacondaInstallerISOTree) getOSTreeCommits() []ostree.CommitSpec {
return []ostree.CommitSpec{*p.commitSpec}
}

func (p *AnacondaInstallerISOTree) getOSTreeCommitSources() []ostree.CommitSpec {
if p.CommitSource == nil {
return []ostree.SourceSpec{}

Check failure on line 92 in pkg/manifest/anaconda_installer_iso_tree.go

View workflow job for this annotation

GitHub Actions / ⌨ Lint

cannot use []ostree.SourceSpec{} (value of type []ostree.SourceSpec) as type []ostree.CommitSpec in return statement

Check failure on line 92 in pkg/manifest/anaconda_installer_iso_tree.go

View workflow job for this annotation

GitHub Actions / ⌨ Lint

cannot use []ostree.SourceSpec{} (value of type []ostree.SourceSpec) as type []ostree.CommitSpec in return statement
}
return []ostree.SourceSpec{

Check failure on line 94 in pkg/manifest/anaconda_installer_iso_tree.go

View workflow job for this annotation

GitHub Actions / ⌨ Lint

cannot use []ostree.SourceSpec{…} (value of type []ostree.SourceSpec) as type []ostree.CommitSpec in return statement) (typecheck)
*p.CommitSource,
}
}

func (p *AnacondaInstallerISOTree) getContainerSpecs() []container.Spec {
if p.containerSpec == nil {
return []container.Spec{}
Expand Down

0 comments on commit d31ea31

Please sign in to comment.