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

whoami::username can be compiled, but it crashes when running #903

Closed
fundon opened this issue Dec 15, 2020 · 2 comments · Fixed by #908
Closed

whoami::username can be compiled, but it crashes when running #903

fundon opened this issue Dec 15, 2020 · 2 comments · Fixed by #908

Comments

@fundon
Copy link
Contributor

fundon commented Dec 15, 2020

https://github.com/launchbadge/sqlx/blob/master/sqlx-core/src/postgres/options/mod.rs#L130

My env:

  • raspberry pi 4b 8G
  • freebsd13-current
  • rust-1.48.0
  • sqlx-0.4.0
FreeBSD rpi8g 13.0-CURRENT FreeBSD 13.0-CURRENT #0 f659bf1d31c-c254882(main): Thu Dec  3 06:58:50 UTC 2020     [email protected]:/usr/obj/usr/src/arm64.aarch64/sys/GENERIC  arm64

My workround:

var("PGUSER").ok().unwrap_or_else(|| "freebsd".to_string());

But when I test whoami lib by stand alone. Everything is ok.

@mehcode
Copy link
Member

mehcode commented Dec 15, 2020

How does it crash?

@fundon fundon changed the title whoami::username can be compiled, but run will be crashed whoami::username can be compiled, but it crashes when running Dec 15, 2020
@fundon
Copy link
Contributor Author

fundon commented Dec 16, 2020

@mehcode See ardaku/whoami#20, I appended more details.

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 a pull request may close this issue.

2 participants