dependabot / dependabot-core

🤖 Dependabot's core logic for creating update PRs.
https://docs.github.com/en/code-security/dependabot
MIT License
4.74k stars 1.03k forks source link

Support Swift Packages requiring Swift 6.0 only #10754

Open mman opened 1 month ago

mman commented 1 month ago

Is there an existing issue for this?

Feature description

Currently dependabot runs the checks for swift based repositories with an image based on Swift 5.10.

Swift 6.0 has been released and brings many breaking changes, so for simplicity some packages may just opt in and specify version 6 as required version via:

// swift-tools-version:6.0

in their Package.swift. When dependabot is invoked against such package it fails with error:

error: 'repo': package 'repo' is using Swift tools version 6.0.0 but the installed version is 5.10.0

It would be cool if dependabot can use a swift 6 image to run the checks. It's backwards compatible with 5.10.

StuClift commented 1 month ago

New projects starting with Swift 6 are unable to use Dependabot for updates. It has been out for a month now. How cna we help this move forward?

mman commented 2 weeks ago

Looks like my Dependabot workflows started working again, thanks. Not sure IIUC but this issue may probably be closed.