File: 001-remove-git-version-dependency.patch

package info (click to toggle)
rust-riffdiff 3.6.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 5,784 kB
  • sloc: sh: 206; python: 132; makefile: 11
file content (39 lines) | stat: -rw-r--r-- 1,156 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
Index: riffdiff/Cargo.toml
===================================================================
--- riffdiff.orig/Cargo.toml
+++ riffdiff/Cargo.toml
@@ -46,9 +46,6 @@ version = "0.6.2"
 version = "4.5.26"
 features = ["derive"]
 
-[dependencies.git-version]
-version = "0.3.4"
-
 [dependencies.itertools]
 version = "0.10.1"
 
Index: riffdiff/src/main.rs
===================================================================
--- riffdiff.orig/src/main.rs
+++ riffdiff/src/main.rs
@@ -9,7 +9,6 @@ use backtrace::Backtrace;
 use clap::CommandFactory;
 use clap::Parser;
 use clap::ValueEnum;
-use git_version::git_version;
 use line_collector::LineCollector;
 use logging::init_logger;
 use refiner::Formatter;
@@ -58,11 +57,7 @@ Please copy the above crash report and r
 
 const PAGER_FORKBOMB_STOP: &str = "_RIFF_IGNORE_PAGER";
 
-// The empty cargo_prefix makes us use the Cargo.toml version number if we
-// cannot get it from git.
-//
-// Ref: https://github.com/walles/riff/issues/26#issuecomment-1120294897
-const GIT_VERSION: &str = git_version!(cargo_prefix = "");
+const GIT_VERSION: &str = env!("CARGO_PKG_VERSION");
 
 #[derive(Parser)]
 #[command(