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

More logging and assertions #504

Merged
merged 2 commits into from
Jan 17, 2019

Conversation

fitzgen
Copy link
Member

@fitzgen fitzgen commented Jan 16, 2019

Some logging and assertions to help us figure out what is going on with #503 when a cargo install isn't working right.

I can't repro #503 anymore, but this should help us if we ever see it in the wild again :-/

Copy link
Member

@ashleygwilliams ashleygwilliams left a comment

Choose a reason for hiding this comment

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

@fitzgen do we want to put panics in or would we prefer to propagate an error (just in case it's someone who is not us who runs into this...) i'm OK with either, maybe slightly prefer error?

@ashleygwilliams
Copy link
Member

looks like CI wants the lockfile updated :)

Instead of panicking on unexpected states, check for them and return an
error. Also add more debug logging for when we `cargo install` wasm-bindgen.
@fitzgen
Copy link
Member Author

fitzgen commented Jan 16, 2019

The assertion was slightly off too -- Download represents the tarball/zip, not the binary itself. Fixed in latest force-pushed commit.

@ashleygwilliams ashleygwilliams modified the milestones: 0.7.0, 0.6.1 Jan 16, 2019
@ashleygwilliams
Copy link
Member

now CI is failing on missing wasm-bindgen.exe :/

@ashleygwilliams ashleygwilliams added the work in progress do not merge! label Jan 16, 2019
@ashleygwilliams ashleygwilliams changed the title More logging and assertions [WIP] More logging and assertions Jan 16, 2019
@fitzgen
Copy link
Member Author

fitzgen commented Jan 17, 2019

Assuming CI comes back green, this should be ready.

@ashleygwilliams ashleygwilliams removed the work in progress do not merge! label Jan 17, 2019
@ashleygwilliams ashleygwilliams changed the title [WIP] More logging and assertions More logging and assertions Jan 17, 2019
@ashleygwilliams ashleygwilliams merged commit c8410f2 into rustwasm:master Jan 17, 2019
@fitzgen fitzgen deleted the more-logging-and-assertions branch January 17, 2019 00:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants