Skip to content

Commit

Permalink
remove objectivec extractor and keep swiftutils podfilelock extractor
Browse files Browse the repository at this point in the history
Octaviusss committed Jan 17, 2025
1 parent d189c56 commit ca86884
Showing 7 changed files with 3 additions and 456 deletions.
162 changes: 0 additions & 162 deletions extractor/filesystem/language/objectivec/podfilelock/podfilelock.go

This file was deleted.

This file was deleted.

Empty file.

This file was deleted.

This file was deleted.

9 changes: 3 additions & 6 deletions extractor/filesystem/language/swift/swiftutils/podfilelock.go
Original file line number Diff line number Diff line change
@@ -23,11 +23,8 @@ import (
)

// PodfileLock represents the structure of a Podfile.lock file.
type PodfileLock struct {
Pods []interface{} `yaml:"PODS"`
SpecChecksums map[string]string `yaml:"SPEC CHECKSUMS"`
PodfileChecksum string `yaml:"PODFILE CHECKSUM"`
Cocopods string `yaml:"COCOAPODS"`
type podfileLock struct {
Pods []interface{} `yaml:"PODS"`
}

// Package represents a single package parsed from Podfile.lock.
@@ -48,7 +45,7 @@ func ParsePodfileLock(reader io.Reader) ([]Package, error) {
return nil, fmt.Errorf("file is empty")
}

var podfile PodfileLock
var podfile podfileLock
if err = yaml.Unmarshal(bytes, &podfile); err != nil {
return nil, fmt.Errorf("unable to parse YAML: %w", err)
}
5 changes: 0 additions & 5 deletions extractor/filesystem/list/list.go
Original file line number Diff line number Diff line change
@@ -45,7 +45,6 @@ import (
"github.com/google/osv-scalibr/extractor/filesystem/language/javascript/packagelockjson"
"github.com/google/osv-scalibr/extractor/filesystem/language/javascript/pnpmlock"
"github.com/google/osv-scalibr/extractor/filesystem/language/javascript/yarnlock"
podfilelock "github.com/google/osv-scalibr/extractor/filesystem/language/objectivec/podfilelock"
"github.com/google/osv-scalibr/extractor/filesystem/language/php/composerlock"
"github.com/google/osv-scalibr/extractor/filesystem/language/python/condameta"
"github.com/google/osv-scalibr/extractor/filesystem/language/python/pdmlock"
@@ -133,8 +132,6 @@ var (
}
// PHP extractors.
PHP []filesystem.Extractor = []filesystem.Extractor{&composerlock.Extractor{}}
// ObjectiveC extractors.
ObjectiveC []filesystem.Extractor = []filesystem.Extractor{podfilelock.Extractor{}}
// Containers extractors.
Containers []filesystem.Extractor = []filesystem.Extractor{containerd.New(containerd.DefaultConfig())}

@@ -175,7 +172,6 @@ var (
Rust,
Dotnet,
SBOM,
ObjectiveC,
OS,
Containers,
)
@@ -198,7 +194,6 @@ var (
"rust": Rust,

"sbom": SBOM,
"objectivec": ObjectiveC,
"os": OS,
"containers": Containers,

0 comments on commit ca86884

Please sign in to comment.