So I am doing some yak shaving, and need to start by contributing to crates.io. I want to log my experience setting up the environment. I hope it will act as some supplementary documentation on how to get involved. I also think logging this in public will help keep me moving. I want to log this as I go so I don’t forget what I get stuck on. So hear gose.
I have a linux mint 18.1 VM running in hyper v. I think I will copy that to use as a development vm. Copying vm’s in hyper v is surprisingly hard, but eventually I got it done. Next install git, npm and postgis on the new vm. As a windows based lifeform, Installing things on linux is surprisingly easy.
Continue through the readme. Install npm, I mean nodejs, oops nodejs-legacy. Things go smoothly for a while. Running psql takes some doing, but an idiot’s guide to setting up postgresql got me started out. cargo test apparently I need CMake. After instaling that all the test run! 1 passed; 79 failed;
This is awesome! Please let me know if you can't figure anything out, and if the README is missing some information that everyone should know about crates.io, I'd love PRs or issues <3
Right now, it looks like postgres is configured to use a password:
thread 'main' panicked at 'called Result::unwrap() on an Err value: ConnectParams(StringError("a password was requested but not provided"))'
I usually have postgres running locally without a password. If you want to have a password, you'll need to add it to the postgres URL for your test database in your .env: