Skip to content

Swift updater fails when any package in dependency graph is on Swift 6.2 #13485

@sothebys-valdi

Description

@sothebys-valdi

Is there an existing issue for this?

  • I have searched the existing issues

Package ecosystem

Swift

Package manager version

6.2

Language version

Swift 6.2, 6.1, 6.0, 5.10

Manifest location and content before the Dependabot update

Package.swift file, but I renamed it to txt to be allowed to attach it to this report.
Swift62Package.txt
Swift510Package.txt

dependabot.yml content

dependabot.yml

Updated dependency

No response

What you expected to see, versus what you actually saw

I expected dependabot to successfully finish its update check, but instead they failed with a log message like:

error: package 'swift62package' is using Swift tools version 6.2.0 but the installed version is 6.1.2

Note, this Swift62Package is not specified as a target to monitor in the Dependabot config. This is a local package imported by a Swift 5.10 package that we are targeting with Dependabot.

It seems dependabot stopped posting PRs for Swift around the time we upgraded our first local package to 6.2. It continued to successfully create update PRs for other ecosystems.

It seems we have a related open issue from a year ago in #10754 about Dependabot only supporting up to Swift 5.10. I decided to create a new issue since it seems to now work for Swift 6.0, but fail for Swift 6.2.

Native package manager behavior

No response

Images of the diff or a link to the PR, issue, or logs

No response

Smallest manifest that reproduces the issue

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions