Skip to content

Swift Package Registry Datasource

Table of values

Name Value Notes
Identifier swift-package-registry
Default versioning swift
Custom registry support Yes
Release timestamp support No
Source URL support No

Description

Swift Package Registry is the HTTP protocol SwiftPM uses to resolve identity-form dependencies declared as .package(id: "scope.name", …).

This datasource queries the SE-0292 "list package releases" endpoint:

GET <registry>/<scope>/<name>
Accept: application/vnd.swift.registry.v1+json

Registry URLs are auto-discovered by the swift manager from .swiftpm/configuration/registries.json in the same directory as the Package.swift. You can also set registryUrls or use hostRules to point Renovate at a specific registry.

Authentication

Configure authentication with a hostRules entry that sets hostType to swift-package-registry. Bearer-token registries and basic-auth registries are both supported:

{
  "hostRules": [
    {
      "hostType": "swift-package-registry",
      "matchHost": "registry.example.com",
      "token": "<bearer-token>"
    }
  ]
}

For basic auth, use username and password instead of token.