swift

package
v1.16.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 4, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParsePackageResolved

func ParsePackageResolved(pathToLockfile string) ([]extractor.PackageDetails, error)

ParsePackageResolved is a convenience function for testing.

Types

type PackageResolvedExtractor

type PackageResolvedExtractor struct {
	extractor.WithMatcher
}

PackageResolvedExtractor extracts dependencies from Swift Package.resolved files (v1, v2, v3).

func (PackageResolvedExtractor) Extract

func (PackageResolvedExtractor) IsOfficiallySupported

func (e PackageResolvedExtractor) IsOfficiallySupported() bool

func (PackageResolvedExtractor) PackageManager

func (e PackageResolvedExtractor) PackageManager() models.PackageManager

func (PackageResolvedExtractor) ShouldExtract

func (e PackageResolvedExtractor) ShouldExtract(path string) bool

type PackageSwiftMatcher

type PackageSwiftMatcher struct{}

PackageSwiftMatcher enriches packages extracted from Package.resolved with direct-dependency information from Package.swift.

func (PackageSwiftMatcher) GetSourceFile

GetSourceFile opens Package.swift from the same directory as the extractor.

Note: Xcode can write the active lockfile at .swiftpm/configuration/Package.resolved, which is two levels below Package.swift. In that case this lookup will fail and no manifest enrichment will happen. Upward directory search is not implemented yet. GetSourceFile opens Package.swift from the same directory as the extractor.

Note: Xcode can write the active lockfile at .swiftpm/configuration/Package.resolved, which is two levels below Package.swift. In that case this lookup will fail and no manifest enrichment will happen. Upward directory search is not implemented yet.

func (PackageSwiftMatcher) Match

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL