You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
rust-libbpf-cargo/libbpf-cargo-fix-finding-li...

16 lines
664 B

diff '--color=auto' -ruN libbpf-cargo-0.10.0/src/test.rs libbpf-cargo-0.10.0-fix-finding-libbpf-rs/src/test.rs
--- libbpf-cargo-0.10.0/src/test.rs 1973-11-29 13:33:09.000000000 -0800
+++ libbpf-cargo-0.10.0-fix-finding-libbpf-rs/src/test.rs 2022-02-16 15:36:05.637528820 -0800
@@ -102,10 +102,7 @@
fn get_libbpf_rs_path() -> PathBuf {
let cwd = std::env::current_dir().expect("failed to get cwd");
- Path::new(&cwd)
- .parent()
- .expect("failed to get parent of cwd")
- .join("libbpf-rs")
+ Path::new("/usr/share/cargo/registry/libbpf-rs-0.16.0")
.canonicalize()
.expect("failed to canonicalize libbpf-rs")
}