Rebar/Git Error and Solution

Just a quick one… for my benefit as well as perhaps yours.

I was trying to use rebar to pull in the dependencies on one of my Erlang projects but it kept failing with the following type of output;

fatal: could not read Username for 'https://github.com': No such device or address

I believe rebar doesn’t know how to ask for github credentials and I solved this by using the git credentials helper.

git config --global credential.helper 'cache --timeout=3600'

Possible Erlang Bad Transform Function Solution

Just a quick thing to try if you’re running round in circles trying to work out why your mnesia:transform_table(Tab, Fun, NewAttList, NewRecName). isn’t working and returning you with something like this;

{aborted,{"Bad transform function",test,...}

Now, if you’re table is distributed then make sure the beam file has been loaded onto all nodes first.

This particular one had me for almost an hour before I sussed it, so I hope this quick blog post saves some of you some time too.