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

Fix Windows problems with packages and index.html. #83

Merged
merged 1 commit into from
Oct 16, 2020

Conversation

MartinKavik
Copy link
Contributor

Checklist

  • Updated CHANGELOG.md describing pertinent changes.
  • Updated README.md with pertinent info (may not always apply).

Fixes #82

@@ -109,9 +109,9 @@ impl HtmlPipeline {

// Assemble a new output index.html file.
let output_html = target_html.html(); // TODO: prettify this output.
fs::write(format!("{}/index.html", self.cfg.dist.display()), output_html.as_bytes())
fs::write(self.cfg.dist.join("index.html"), output_html.as_bytes())
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

☠️ wow ... sorry @MartinKavik that's definitely my fault. Good find! Sorry about the trouble.

.await
.context("error writing finalized HTML output")?;
.context("error writing finalized HTML output")?; // TODO: show also error details (in a verbose mode?)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This actually does surface the underlying error when it makes it up to the top-level of the app. It will print the context message first, and then will print out the chain of errors leading up to the context message.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unless you had something else in mind, we can probably remove that TODO.

@thedodd
Copy link
Member

thedodd commented Oct 16, 2020

You rock @MartinKavik! Thanks for taking the time to knock this out. As I mentioned elsewhere, I'll go ahead and fix the error chain display issue, and then cut a 0.7.3 release.

@thedodd thedodd merged commit 8f9bdbe into trunk-rs:master Oct 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Dependency conflicts with Trunk 0.7.0+
2 participants