fix openssl vendoring with new resolver (#775)

* run otool in ci
* pin openssl-sys with 'vendored' feature
This commit is contained in:
Stephan Dilly 2021-06-07 14:58:49 +02:00 committed by GitHub
parent 79c17f4c48
commit 12b90715f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 13 additions and 2 deletions

View File

@ -28,7 +28,6 @@ jobs:
components: clippy
- name: New Resolver
if: matrix.rust != '1.50'
run: |
cargo install cargo-modify --force
cargo modify new-resolver

View File

@ -78,6 +78,11 @@ jobs:
run: |
ls -l ./target/release/gitui.exe
- name: Binary dependencies (mac)
if: matrix.os == 'macos-latest'
run: |
otool -L ./target/release/gitui
- name: Build MSI (windows)
if: matrix.os == 'windows-latest'
run: |

View File

@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## Unreleased
## Fixed
- openssl vendoring broken on macos ([#772](https://github.com/extrawurst/gitui/issues/772))
## [0.16.1] - 2021-06-06
## Added

1
Cargo.lock generated
View File

@ -68,6 +68,7 @@ dependencies = [
"git2",
"invalidstring",
"log",
"openssl-sys",
"pretty_assertions",
"rayon-core",
"scopetime",

View File

@ -15,6 +15,7 @@ build-release:
release-mac: build-release
strip target/release/gitui
otool -L target/release/gitui
mkdir -p release
tar -C ./target/release/ -czvf ./release/gitui-mac.tar.gz ./gitui
ls -lisah ./release/gitui-mac.tar.gz

View File

@ -13,7 +13,9 @@ keywords = ["git"]
[dependencies]
scopetime = { path = "../scopetime", version = "0.1" }
git2 = { version = "0.13", features = ["vendored-openssl"] }
git2 = "0.13"
# pinning to vendored openssl, using the git2 feature this gets lost with new resolver
openssl-sys = { version = '0.9', features= ["vendored"] }
# git2 = { path = "../../github/git2-rs", features = ["vendored-openssl"]}
# git2 = { git="https://github.com/extrawurst/git2-rs.git", rev="513a8c9", features = ["vendored-openssl"]}
rayon-core = "1.9"