mirror of
https://github.com/renovatebot/renovate.git
synced 2026-10-25 15:01:49 +00:00
8a378fc5b4
For exact (single-version) specs, only update a pin whose current version matches the version being upgraded from. This prevents the repo-wide Package.resolved sweep from rewriting a same-named transitive pin in an unrelated package to a version that package's constraints don't allow. Co-authored-by: Jamie Tanna <jamie.tanna@mend.io>
Anything other than .exact(<...>) or exact:<...> will be treated as range with respect to Swift specific.
Because of this, some PR descriptions will look like from: <...> => <...>.
Examples:
package(name: "<...>", .exact("1.2.3")) // => 1.2.3
package(name: "<...>", exact: "1.2.3") // => 1.2.3
package(name: "<...>", from: "1.2.3") // => from: "2.0.0"
package(name: "<...>", "1.2.3"...) // => "2.0.0"...
package(name: "<...>", "1.2.3"..."1.3.0") // => "1.2.3"..."2.0.0"
package(name: "<...>", "1.2.3"..<"1.3.0") // => "1.2.3"..<"2.0.0"
package(name: "<...>", ..."1.2.3") // => ..."2.0.0"
package(name: "<...>", ..<"1.2.3") // => ..<"2.0.0"