thebrowsercompany / swift-build

Swift toolchain builds by The Browser Company
351 stars 10 forks source link

Only register nuget package source if not already available #162

Closed z2oh closed 1 month ago

z2oh commented 1 month ago

The package source was added to support the Azure runners, but an alternate source is already available on the GitHub runners which caused a package lookup collision.

Example failure: https://github.com/thebrowsercompany/swift-build/actions/runs/9574916361/job/26400987045

This change only registers the package source if the default one on GitHub runners is not available (api.nuget.org).

Thanks @kendalharland for pairing on this with me.

z2oh commented 1 month ago

Tested here: https://github.com/thebrowsercompany/swift-build/actions/runs/9653985604/job/26629855137

All looks good! :shipit: