-
Notifications
You must be signed in to change notification settings - Fork 9
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
Glue libprobe and probe_frontend together #36
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I noticed the nix code wasn't formatted, other than that, and the couple of comments I left, it looks good.
Not only does
This refactors and unifies the whole build process for the hermetic Nix sandbox and an impure dev-shell for edit-in-place and don't-rebuild-the-world development. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I glossed over the python code changes since I'm not really familiar with that part of the codebase, but the nix and rust changes look good.
@Shofiya2003 Could you help us debug these tests? It's failing in two places:
|
Yup, on it! |
I noticed is that currently, the
Also, it's probably a good idea to pass the |
Currently, the CI is failing because it's trying to run the compiled tests without actually compiling them first, I think a good solution is to add a new Justfile rule, and make it a dependency of
|
Even better, the middle two commands (
|
Integrate the Rust flake into the top-level flake because the top-level needs to "give" Rust a package (libprobe-interface) and the Rust flake needs to "give" the top-level flake a package (probe-cli and the other probe-*).
The true contribution is that
nix build .#probe-bundled && ./result/bin/PROBE record ls
works. It builds libprobe, the Rust CLI, and tells the CLI where to find libprobe.This utterly breaks the devshell, the Python code, and the interactive development cycle, which a future PR will fix.