Skip to content

Commit 0b2ccec

Browse files
committed
Make lighthouse_version compatible with old Git (#2223)
## Proposed Changes When building the release binaries with Cross, Ubuntu 16.04 is used, which uses an old verison of Git lacking support for `--exclude`. This PR changes `lighthouse_version` to use `--match` instead.
1 parent afd4786 commit 0b2ccec

File tree

1 file changed

+7
-1
lines changed
  • common/lighthouse_version/src

1 file changed

+7
-1
lines changed

common/lighthouse_version/src/lib.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,13 @@ use target_info::Target;
99
///
1010
/// `Lighthouse/v0.2.0-1419501f2+`
1111
pub const VERSION: &str = git_version!(
12-
args = ["--always", "--dirty=+", "--abbrev=7", "--exclude=*"],
12+
args = [
13+
"--always",
14+
"--dirty=+",
15+
"--abbrev=7",
16+
// NOTE: using --match instead of --exclude for compatibility with old Git
17+
"--match=thiswillnevermatchlol"
18+
],
1319
prefix = "Lighthouse/v1.1.3-",
1420
fallback = "unknown"
1521
);

0 commit comments

Comments
 (0)