Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Building against libgit2 1.2.0 results in failing tests #124

@donbex

Description

@donbex

The libgit2 in the Arch repositories has been upgraded to version 1.2.0, so after a system update I encountered the error

sheldon: error while loading shared libraries: libgit2.so.1.1: cannot open shared object file: No such file or directory

I tried re-building sheldon from source using the AUR package, but it resulted in a bunch of test failures:

failures:

---- lock::tests::external_plugin_lock_git_with_uses stdout ----
thread 'lock::tests::external_plugin_lock_git_with_uses' panicked at 'called `Result::unwrap()` on an `Err` value: failed to git clone `https://github.com/rossmacarthur/sheldon-test`

Caused by:
    invalid version 0 on git_proxy_options; class=Invalid (3)', src/lock.rs:1181:62

---- lock::tests::external_plugin_lock_git_with_matches_error stdout ----
thread 'lock::tests::external_plugin_lock_git_with_matches_error' panicked at 'called `Result::unwrap()` on an `Err` value: failed to git clone `https://github.com/rossmacarthur/sheldon-test`

Caused by:
    invalid version 0 on git_proxy_options; class=Invalid (3)', src/lock.rs:1255:62
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

---- lock::tests::external_plugin_lock_git_with_matches_not_each stdout ----
thread 'lock::tests::external_plugin_lock_git_with_matches_not_each' panicked at 'called `Result::unwrap()` on an `Err` value: failed to git clone `https://github.com/rossmacarthur/sheldon-test`

Caused by:
    invalid version 0 on git_proxy_options; class=Invalid (3)', src/lock.rs:1283:62

---- lock::tests::external_plugin_lock_git_with_matches stdout ----
thread 'lock::tests::external_plugin_lock_git_with_matches' panicked at 'called `Result::unwrap()` on an `Err` value: failed to git clone `https://github.com/rossmacarthur/sheldon-test`

Caused by:
    invalid version 0 on git_proxy_options; class=Invalid (3)', src/lock.rs:1221:62

---- lock::tests::source_lock_git_git_with_checkout stdout ----
thread 'lock::tests::source_lock_git_git_with_checkout' panicked at 'called `Result::unwrap()` on an `Err` value: failed to git clone `git://github.com/rossmacarthur/sheldon-test`

Caused by:
    invalid version 0 on git_proxy_options; class=Invalid (3)', src/lock.rs:1068:10

---- lock::tests::source_lock_git_and_reinstall stdout ----
thread 'lock::tests::source_lock_git_and_reinstall' panicked at 'called `Result::unwrap()` on an `Err` value: failed to git clone `https://github.com/rossmacarthur/sheldon-test`

Caused by:
    invalid version 0 on git_proxy_options; class=Invalid (3)', src/lock.rs:1009:89

---- lock::tests::locked_config_clean stdout ----
thread 'lock::tests::locked_config_clean' panicked at 'assertion failed: ctx.clone_dir().join(\"github.com/rossmacarthur/sheldon-test\").exists()', src/lock.rs:1397:9

---- lock::tests::source_lock_git_https_with_checkout stdout ----
thread 'lock::tests::source_lock_git_https_with_checkout' panicked at 'called `Result::unwrap()` on an `Err` value: failed to git clone `https://github.com/rossmacarthur/sheldon-test`

Caused by:
    invalid version 0 on git_proxy_options; class=Invalid (3)', src/lock.rs:1045:10

---- lock::tests::source_lock_with_git stdout ----
thread 'lock::tests::source_lock_with_git' panicked at 'called `Result::unwrap()` on an `Err` value: failed to git clone `https://github.com/rossmacarthur/sheldon-test`

Caused by:
    invalid version 0 on git_proxy_options; class=Invalid (3)', src/lock.rs:1135:40


failures:
    lock::tests::external_plugin_lock_git_with_matches
    lock::tests::external_plugin_lock_git_with_matches_error
    lock::tests::external_plugin_lock_git_with_matches_not_each
    lock::tests::external_plugin_lock_git_with_uses
    lock::tests::locked_config_clean
    lock::tests::source_lock_git_and_reinstall
    lock::tests::source_lock_git_git_with_checkout
    lock::tests::source_lock_git_https_with_checkout
    lock::tests::source_lock_with_git

I tried looking into it, but unfortunately I am not really familiar with Rust and couldn't locate the source of the error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions