Seems like this is a bug in the current "stable" SPM which has been fixed upstream in the meantime.
Package.swift