ndmitchell / neil

General tools for Neil
Other
38 stars 16 forks source link

Get the actual name of the GitHub repository #34

Closed tomjaguarpaw closed 5 years ago

tomjaguarpaw commented 7 years ago

I came up with this, which gets the actual name of the GitHub repository by (essentially) reading it out of the homepage field of the Cabal file. I need this because opaleye's repository is called haskell-opaleye. My code is a horrible hack but it just about works. I'm sure it can be improved. Are you interested in merging something like this?

https://github.com/ndmitchell/neil/compare/master...tomjaguarpaw:master#diff-030c1b9cbeb9b30d228469eaff6892f9R282

ndmitchell commented 7 years ago

I'll certainly merge something along these lines - I'm very keen to merge something. I'll take a look at the code in a few days.

tomjaguarpaw commented 7 years ago

This code works for me but it's not very robust. We can probably come up with something better.

tomjaguarpaw commented 5 years ago

This was fixed by https://github.com/tomjaguarpaw/neil/commit/f08459ff929a998b260dcc41ff70c9b9540cdcd0