Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V2 bundle create: fix build_dir in select and pack actions #1246

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/bin/tectonic/v2cli/commands/bundle/actions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@

// Check output hash
{
let mut file = File::open(cli.build_dir.join("content/SHA256SUM"))?;
let mut file = File::open(build_dir.join("content/SHA256SUM"))?;

Check warning on line 85 in src/bin/tectonic/v2cli/commands/bundle/actions.rs

View check run for this annotation

Codecov / codecov/patch

src/bin/tectonic/v2cli/commands/bundle/actions.rs#L85

Added line #L85 was not covered by tests
let mut hash = String::new();
file.read_to_string(&mut hash)?;
let hash = hash.trim();
Expand All @@ -107,7 +107,7 @@

let build_dir = cli.build_dir.join(&bundle_config.bundle.name);

if !cli.build_dir.join("content").is_dir() {
if !build_dir.join("content").is_dir() {

Check warning on line 110 in src/bin/tectonic/v2cli/commands/bundle/actions.rs

View check run for this annotation

Codecov / codecov/patch

src/bin/tectonic/v2cli/commands/bundle/actions.rs#L110

Added line #L110 was not covered by tests
error!(
"content directory `{}/content` doesn't exist, can't continue",
build_dir.to_str().unwrap()
Expand Down
Loading