Skip to content

Commit

Permalink
Fix template generation again
Browse files Browse the repository at this point in the history
  • Loading branch information
pizzamig committed Feb 1, 2019
1 parent 63156aa commit 71549ac
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [Unreleased]

## [0.1.1] 2019-02-01
### Fixed
- -b option wasn't honored

Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
authors = ["Luca Pizzamiglio <pizzamig@FreeBSD.org>"]
edition = "2018"
name = "freebsd-ci"
version = "0.1.0"
version = "0.1.1"
[dependencies]
chrono = "0.4.6"
derive_is_enum_variant = "0.1"
Expand Down
5 changes: 4 additions & 1 deletion src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,10 @@ fn generate_build_script(
context.insert("delete_asset", &false);
context.insert("asset_id", &0);
}
let script = match tera.render(opt.build_template.to_str().unwrap(), &context) {
let script = match tera.render(
opt.build_template.file_name().unwrap().to_str().unwrap(),
&context,
) {
Ok(s) => s,
Err(e) => {
return Err(Error::from(BuildError::TeraTemplateRenderingErr {
Expand Down

0 comments on commit 71549ac

Please sign in to comment.