Skip to content

Commit 8211abc

Browse files
committed
Appease the golangci-lint Gods
Signed-off-by: Elizabeth Myers <[email protected]>
1 parent 10c0296 commit 8211abc

File tree

2 files changed

+0
-23
lines changed

2 files changed

+0
-23
lines changed

pkg/build/build.go

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ import (
3939
"k8s.io/kube-openapi/pkg/util/sets"
4040

4141
"cloud.google.com/go/storage"
42-
"github.com/go-git/go-git/v5"
4342
"github.com/yookoala/realpath"
4443
"github.com/zealic/xignore"
4544
"google.golang.org/api/iterator"
@@ -540,26 +539,6 @@ func WithPackageCacheDir(apkCacheDir string) Option {
540539
}
541540
}
542541

543-
func detectCommit(dirPath string, logger apko_log.Logger) string {
544-
// Best-effort detection of current commit, to be used when not specified in the config file
545-
546-
// TODO: figure out how to use an abstract FS
547-
repo, err := git.PlainOpen(dirPath)
548-
if err != nil {
549-
logger.Printf("unable to detect git commit for build configuration: %v", err)
550-
return ""
551-
}
552-
553-
head, err := repo.Head()
554-
if err != nil {
555-
return ""
556-
}
557-
558-
commit := head.Hash().String()
559-
logger.Printf("detected git commit for build configuration: %s", commit)
560-
return commit
561-
}
562-
563542
// BuildGuest invokes apko to build the guest environment.
564543
func (b *Build) BuildGuest(ctx context.Context) error {
565544
ctx, span := otel.Tracer("melange").Start(ctx, "BuildGuest")

pkg/config/config.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,8 +196,6 @@ type Pipeline struct {
196196
WorkDir string `yaml:"working-directory,omitempty"`
197197
// Optional: Configuration for the generated SBOM
198198
SBOM SBOM `yaml:"sbom,omitempty"`
199-
200-
steps int
201199
}
202200

203201
type Subpackage struct {

0 commit comments

Comments
 (0)