Carthage/Carthage

Carthage update could give different results per run with Swift 4.2

オープン

#2,487 opened on 2018/06/15

 (4 件のコメント) (0 件のリアクション) (0 人の担当者)Swift (1,544 件のフォーク)batch import
help wanted

Repository metrics

Stars
 (15,179 個のスター)
PR merge metrics
 (30d に merged PR はありません)

説明

It seems like the order in which dependencies are processed depends on the hash value of the dependency. Since hash values are stable with the current implementation of Swift and Carthage, this "undefined" order remains consistent across runs. However, Swift 4.2 will add random elements to default hashes, which means that the result of carthage update could be different across runs (see https://github.com/apple/swift-evolution/blob/master/proposals/0206-hashable-enhancements.md#proposed-solution).

A side benefit of providing a pre-defined order is it will be easier to create tests that exercise problems that will fail (or pass) consistently.

コントリビューターガイド