gentoo-haskell / hackport

A command line tool to generate Gentoo ebuilds from Hackage packages.
GNU General Public License v3.0
55 stars 21 forks source link

Disambiguate names based on command line #121

Open hololeap opened 2 years ago

hololeap commented 2 years ago

I'm trying to run hackport to get the latest version of vec:

$ hackport merge vec
Ambiguous names: Vec, vec
Vec: 0.9.0, 0.9.1, 0.9.2, 0.9.3, 0.9.4, 0.9.5, 0.9.6, 0.9.7, 0.9.8, 0.9.9,
1.0, 1.0.1, 1.0.5
vec: 0, 0.1, 0.1.1, 0.1.1.1, 0.2, 0.3, 0.4, 0.4.1
...

It warns about ambiguous names, either matching Vec or vec, but then seems to choose Vec even though I specified vec on the command line:

hololeap commented 2 years ago

I notice that in this case I can specify a version which is unique to vec:

$ hackport merge vec-0.4.1

However, this is far from ideal, and it depends on the latest version that you want to choose being unique between the two packages.