-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce --version. This also upgrades from 8.x to 9.x of vergen and changes the way version is generated in mls.
- Loading branch information
Showing
8 changed files
with
105 additions
and
12 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,12 @@ | ||
use vergen::EmitBuilder; | ||
use std::error::Error; | ||
use vergen_git2::{BuildBuilder, Emitter, Git2Builder}; | ||
|
||
fn main() { | ||
EmitBuilder::builder().git_sha(true).emit().unwrap(); | ||
fn main() -> Result<(), Box<dyn Error>> { | ||
let build = BuildBuilder::all_build()?; | ||
let git = Git2Builder::default().branch(true).sha(true).build()?; | ||
Emitter::default() | ||
.add_instructions(&build)? | ||
.add_instructions(&git)? | ||
.emit()?; | ||
Ok(()) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
use std::error::Error; | ||
use vergen_git2::{BuildBuilder, Emitter, Git2Builder}; | ||
|
||
fn main() -> Result<(), Box<dyn Error>> { | ||
let build = BuildBuilder::all_build()?; | ||
let git = Git2Builder::default().branch(true).sha(true).build()?; | ||
Emitter::default() | ||
.add_instructions(&build)? | ||
.add_instructions(&git)? | ||
.emit()?; | ||
Ok(()) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters