Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails to build after previously working #1217

Closed
leighmcculloch opened this issue Feb 26, 2024 · 2 comments
Closed

Fails to build after previously working #1217

leighmcculloch opened this issue Feb 26, 2024 · 2 comments

Comments

@leighmcculloch
Copy link
Member

leighmcculloch commented Feb 26, 2024

The gix-ref dependency has started to fail when building.

The failure is seen on CI and locally (macos).

I'm seeing it on Rust v1.74.0, 1.74.1, 1.75.0, and 1.76.0, so I don't think this isn't due to a Rust version release, unless I have a wicked caching issue across these tests.

   Compiling gix-ref v0.41.0
   Compiling gix-index v0.29.0
   Compiling rustls v0.22.2
   Compiling gix-refspec v0.22.1
   Compiling gix-odb v0.57.0
   Compiling openssl v0.10.55
   Compiling openssl-sys v0.9.101
   Compiling gix-negotiate v0.12.0
error[E0599]: the method `context` exists for fn item `fn(&mut &[u8]) -> Result<SignatureRef<'_>, ErrMode<_>> {decode::<'_, _>}`, but its trait bounds were not satisfied
   --> /Users/leighmcculloch/.cargo/registry/src/index.crates.io-6f17d22bba15001f/gix-ref-0.41.0/src/store/file/log/line.rs:142:46
    |
142 |                 gix_actor::signature::decode.context(StrContext::Expected("<name> <<email>> <timestamp>".into())),
    |                                              ^^^^^^^ method cannot be called due to unsatisfied trait bounds
    |
    = note: the following trait bounds were not satisfied:
            `<for<'a> fn(&'a mut &[u8]) -> Result<SignatureRef<'_>, winnow::error::ErrMode<_>> {gix_actor::signature::decode::<'_, _>} as FnOnce<(&mut _,)>>::Output = Result<_, ErrMode<_>>`
            which is required by `for<'a> fn(&'a mut &[u8]) -> Result<SignatureRef<'_>, winnow::error::ErrMode<_>> {gix_actor::signature::decode::<'_, _>}: winnow::Parser<_, _, _>`
            `<&for<'a> fn(&'a mut &[u8]) -> Result<SignatureRef<'_>, winnow::error::ErrMode<_>> {gix_actor::signature::decode::<'_, _>} as FnOnce<(&mut _,)>>::Output = Result<_, ErrMode<_>>`
            which is required by `&for<'a> fn(&'a mut &[u8]) -> Result<SignatureRef<'_>, winnow::error::ErrMode<_>> {gix_actor::signature::decode::<'_, _>}: winnow::Parser<_, _, _>`
            `<&mut for<'a> fn(&'a mut &[u8]) -> Result<SignatureRef<'_>, winnow::error::ErrMode<_>> {gix_actor::signature::decode::<'_, _>} as FnOnce<(&mut _,)>>::Output = Result<_, ErrMode<_>>`
            which is required by `&mut for<'a> fn(&'a mut &[u8]) -> Result<SignatureRef<'_>, winnow::error::ErrMode<_>> {gix_actor::signature::decode::<'_, _>}: winnow::Parser<_, _, _>`
    = help: items from traits can only be used if the trait is in scope
help: the following trait is implemented but not in scope; perhaps add a `use` for it:
    |
76  +     use winnow::parser::Parser;
    |

Related:

This was referenced Feb 26, 2024
@leighmcculloch leighmcculloch changed the title Fails to build Fails to build after previously working Feb 26, 2024
@leighmcculloch
Copy link
Member Author

The last time the version of gix-ref changed in this repository was three weeks ago, but there have been recent CI builds as recent as 3 days ago.

@leighmcculloch
Copy link
Member Author

Fixed by GitoxideLabs/gitoxide#1309 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant