Skip to content

Commit

Permalink
Merge pull request #66 from ekristen/beta-fix-run
Browse files Browse the repository at this point in the history
fix: do not re-run source run
  • Loading branch information
ekristen authored Nov 10, 2024
2 parents 5befb5d + 0bb3379 commit 7070fb9
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 20 deletions.
4 changes: 0 additions & 4 deletions pkg/source/github.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,6 @@ func (s *GitHub) PreRun(ctx context.Context) error {

// Run - run the source
func (s *GitHub) Run(ctx context.Context) error {
if err := s.sourceRun(ctx); err != nil {
return err
}

// this is from the Provider struct
if err := s.Discover([]string{s.Repo}, s.Version); err != nil {
return err
Expand Down
4 changes: 0 additions & 4 deletions pkg/source/gitlab.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,6 @@ func (s *GitLab) PreRun(ctx context.Context) error {
}

func (s *GitLab) Run(ctx context.Context) error {
if err := s.sourceRun(ctx); err != nil {
return err
}

if err := s.Discover([]string{s.Repo}, s.Version); err != nil {
return err
}
Expand Down
4 changes: 0 additions & 4 deletions pkg/source/hashicorp.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,6 @@ func (s *Hashicorp) PreRun(ctx context.Context) error {
}

func (s *Hashicorp) Run(ctx context.Context) error {
if err := s.sourceRun(ctx); err != nil {
return err
}

if err := s.Discover([]string{s.Repo}, s.Version); err != nil {
return err
}
Expand Down
4 changes: 0 additions & 4 deletions pkg/source/homebrew.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,6 @@ func (s *Homebrew) PreRun(ctx context.Context) error {
}

func (s *Homebrew) Run(ctx context.Context) error {
if err := s.sourceRun(ctx); err != nil {
return err
}

if err := s.Discover([]string{s.Formula}, s.Version); err != nil {
return err
}
Expand Down
4 changes: 0 additions & 4 deletions pkg/source/kubernetes.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,6 @@ func (s *Kubernetes) PreRun(ctx context.Context) error {
}

func (s *Kubernetes) Run(ctx context.Context) error {
if err := s.sourceRun(ctx); err != nil {
return err
}

// this is from the Provider struct
if err := s.Discover([]string{s.Repo}, s.Version); err != nil {
return err
Expand Down

0 comments on commit 7070fb9

Please sign in to comment.