File tree Expand file tree Collapse file tree 2 files changed +0
-23
lines changed Expand file tree Collapse file tree 2 files changed +0
-23
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,6 @@ import (
39
39
"k8s.io/kube-openapi/pkg/util/sets"
40
40
41
41
"cloud.google.com/go/storage"
42
- "github.com/go-git/go-git/v5"
43
42
"github.com/yookoala/realpath"
44
43
"github.com/zealic/xignore"
45
44
"google.golang.org/api/iterator"
@@ -540,26 +539,6 @@ func WithPackageCacheDir(apkCacheDir string) Option {
540
539
}
541
540
}
542
541
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
-
563
542
// BuildGuest invokes apko to build the guest environment.
564
543
func (b * Build ) BuildGuest (ctx context.Context ) error {
565
544
ctx , span := otel .Tracer ("melange" ).Start (ctx , "BuildGuest" )
Original file line number Diff line number Diff line change @@ -196,8 +196,6 @@ type Pipeline struct {
196
196
WorkDir string `yaml:"working-directory,omitempty"`
197
197
// Optional: Configuration for the generated SBOM
198
198
SBOM SBOM `yaml:"sbom,omitempty"`
199
-
200
- steps int
201
199
}
202
200
203
201
type Subpackage struct {
You can’t perform that action at this time.
0 commit comments