From 0bb33795ece1db576666de7e47f944e49e67fe52 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Sat, 9 Nov 2024 23:01:16 -0700 Subject: [PATCH] fix: do not re-run source run --- pkg/source/github.go | 4 ---- pkg/source/gitlab.go | 4 ---- pkg/source/hashicorp.go | 4 ---- pkg/source/homebrew.go | 4 ---- pkg/source/kubernetes.go | 4 ---- 5 files changed, 20 deletions(-) diff --git a/pkg/source/github.go b/pkg/source/github.go index 28a0506..1d82876 100644 --- a/pkg/source/github.go +++ b/pkg/source/github.go @@ -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 diff --git a/pkg/source/gitlab.go b/pkg/source/gitlab.go index 0a4852c..f863de2 100644 --- a/pkg/source/gitlab.go +++ b/pkg/source/gitlab.go @@ -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 } diff --git a/pkg/source/hashicorp.go b/pkg/source/hashicorp.go index cc1e5b8..2436385 100644 --- a/pkg/source/hashicorp.go +++ b/pkg/source/hashicorp.go @@ -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 } diff --git a/pkg/source/homebrew.go b/pkg/source/homebrew.go index 2eae519..9918aa7 100644 --- a/pkg/source/homebrew.go +++ b/pkg/source/homebrew.go @@ -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 } diff --git a/pkg/source/kubernetes.go b/pkg/source/kubernetes.go index c94a1df..ca9cd5d 100644 --- a/pkg/source/kubernetes.go +++ b/pkg/source/kubernetes.go @@ -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