sapling icon indicating copy to clipboard operation
sapling copied to clipboard

`0.2.20231113-145254-995db0d6` regression build failure

Open chenrui333 opened this issue 1 year ago • 4 comments

While upgrading rust to 1.75.0 on the homebrew side, we found some regression build failure as below:

error: failed to select a version for `hostcaps`.
    ... required by package `configloader v0.1.0 (/private/tmp/sapling-20240101-46281-v7po5z/sapling-0.2.20231113-145254-995db0d6/eden/scm/lib/config/loader)`
    ... which satisfies path dependency `configparser` of package `hgmain v0.1.0 (/private/tmp/sapling-20240101-46281-v7po5z/sapling-0.2.20231113-145254-995db0d6/eden/scm/exec/hgmain)`
versions that meet the requirements `^0.1.0` are: 0.1.0

the package `configloader` depends on `hostcaps`, with features: `fb` but `hostcaps` does not have these features.


failed to select a version for `hostcaps` which could resolve this conflict
error: compilation of Rust target 'hgmain' failed

some build log, https://github.com/chenrui333/github-action-test/actions/runs/7381916575/job/20081016400 relates to https://github.com/Homebrew/homebrew-core/pull/158492

chenrui333 avatar Jan 02 '24 03:01 chenrui333

@chenrui333 thanks for reporting the issue, taking a look

zzl0 avatar Jan 12 '24 21:01 zzl0

@zzl0 I can confirm that the build fails from source on Linux as well, with a similar error.

image

chrispaig3 avatar Jan 13 '24 06:01 chrispaig3

It was caused by this change https://github.com/facebookexperimental/rust-shed/commit/768f838ec06c38d198ac7a523b5ec521fff2429b, working on a fix

zzl0 avatar Jan 13 '24 16:01 zzl0

Fixed forward with https://github.com/Homebrew/homebrew-core/pull/160212#event-11517059847

We will fix the root cause separately: dependency backward incompatible change issue

zzl0 avatar Jan 18 '24 02:01 zzl0