Skip to content
This repository has been archived by the owner on Sep 28, 2022. It is now read-only.

first cargo-hakari generate panics in my workspace #658

Open
guswynn opened this issue Jun 10, 2022 · 4 comments
Open

first cargo-hakari generate panics in my workspace #658

guswynn opened this issue Jun 10, 2022 · 4 comments

Comments

@guswynn
Copy link

guswynn commented Jun 10, 2022

I followed the instructions on to try to generate a workspace hack in https://github.com/MaterializeInc/materialize, but I get this when I try to generate for the first time:


  16: std::sys_common::backtrace::__rust_begin_short_backtrace::h456a06d26cbb3bdd
      at <unknown source file>:<unknown line>
  17: std::rt::lang_start::{{closure}}::h64f943f19e2a4ba3
      at <unknown source file>:<unknown line>
  18: core::ops::function::impls::<impl core::ops::function::FnOnce<A> for &F>::call_once::h485d4c2966ec30a8
      at /rustc/fe5b13d681f25ee6474be29d748c65adcd91f69e/library/core/src/ops/function.rs:259
  19: std::panicking::try::do_call::h375a887be0bea938
      at /rustc/fe5b13d681f25ee6474be29d748c65adcd91f69e/library/std/src/panicking.rs:492
  20: std::panicking::try::hecad40482ef3be15
      at /rustc/fe5b13d681f25ee6474be29d748c65adcd91f69e/library/std/src/panicking.rs:456
  21: std::panic::catch_unwind::haf1f664eb41a88eb
      at /rustc/fe5b13d681f25ee6474be29d748c65adcd91f69e/library/std/src/panic.rs:137
  22: std::rt::lang_start_internal::{{closure}}::h976eba434e9ff4cf
      at /rustc/fe5b13d681f25ee6474be29d748c65adcd91f69e/library/std/src/rt.rs:128
  23: std::panicking::try::do_call::h8f2501ab92e340b0
      at /rustc/fe5b13d681f25ee6474be29d748c65adcd91f69e/library/std/src/panicking.rs:492
  24: std::panicking::try::hbeb9f8df83454d42
      at /rustc/fe5b13d681f25ee6474be29d748c65adcd91f69e/library/std/src/panicking.rs:456
  25: std::panic::catch_unwind::h0a9390b2202af6e9
      at /rustc/fe5b13d681f25ee6474be29d748c65adcd91f69e/library/std/src/panic.rs:137
  26: std::rt::lang_start_internal::hc453db0ee48af82e
      at /rustc/fe5b13d681f25ee6474be29d748c65adcd91f69e/library/std/src/rt.rs:128
  27: _main<unknown>
      at <unknown source file>:<unknown line>

Run with COLORBT_SHOW_HIDDEN=1 environment variable to disable frame filtering.
Run with RUST_BACKTRACE=full to include source snippets.

i poked around the codebase but got pretty lost pretty quickly...

@sunshowers
Copy link
Contributor

Thanks for the report! This looks like an internal invariant in hakari was violated, most likely due to some edge case in the repo. Will look over the next week, or you're welcome to build hakari and do some debugging yourself too.

@sunshowers
Copy link
Contributor

The error is:

The application panicked (crashed).
Message:  full value should be present
Location: tools/hakari/src/hakari.rs:680

which corresponds to https://github.com/facebookincubator/cargo-guppy/blob/be758911ff3f05f3853560fd8b3dd783e708c8b2/tools/hakari/src/hakari.rs#L680.

@jeromegn
Copy link

jeromegn commented Sep 6, 2022

I've been facing the same issue.

I added logs and compiled my own cargo-hakari. I found that this happened when trying to find the pkg-config in the computed_map_build.

It's a dependency of libsqlite3-sys 0.25.1 in our case.

@sunshowers
Copy link
Contributor

Hi -- I've left Meta and can no longer contribute to this repository. Please file an issue at guppy-rs/guppy. Thanks.

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

No branches or pull requests

3 participants