Skip to content

Commit

Permalink
chore: always build with git2 feature
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed May 14, 2024
1 parent 1e61d23 commit fb51b57
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ jobs:
- run: scripts/setup-zipsign.sh
env:
ZIPSIGN: ${{ secrets.ZIPSIGN }}
- run: scripts/build-tarball.sh mise --features openssl/vendored,git2 --target ${{matrix.target}}
- run: scripts/build-tarball.sh mise --features openssl/vendored --target ${{matrix.target}}
- uses: actions/upload-artifact@v4
with:
name: tarball-${{matrix.target}}
Expand Down
1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,6 @@ test-case = "3.3.1"

[features]
default = ["native-tls"]
git2 = []
native-tls = ["reqwest/native-tls"]
rustls = ["reqwest/rustls-tls", "self_update/rustls"]
rustls-native-roots = ["reqwest/rustls-tls-native-roots", "self_update/rustls"]
Expand Down
6 changes: 0 additions & 6 deletions src/build_time.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,9 @@ pub mod built_info {
include!(concat!(env!("OUT_DIR"), "/built.rs"));
}

#[cfg(feature = "git2")]
pub fn git_sha() -> &'static Option<&'static str> {
&built_info::GIT_COMMIT_HASH_SHORT
}

#[cfg(not(feature = "git2"))]
pub fn git_sha() -> &'static Option<&'static str> {
&None
}

pub static BUILD_TIME: Lazy<DateTime<FixedOffset>> =
Lazy::new(|| DateTime::parse_from_rfc2822(built_info::BUILT_TIME_UTC).unwrap());

0 comments on commit fb51b57

Please sign in to comment.