mikkeloscar / gopkgbuild

A golang package for parsing Arch Linux PKGBUILDs
GNU General Public License v3.0
22 stars 5 forks source link

Expand the Dependency type #19

Closed Morganamilo closed 6 years ago

Morganamilo commented 6 years ago

I've been working on dependency checking, specifically the versioned kind foo>1.

gopkgbuild had the foundations there with the Dependency type but you couldn't really do much with it. For example, slt and sgt are both private so it was impossible to check if a version fit inside a dependency because there was no way to access it.

Also while managing multiple packages with their own dependencies it would be nice to merge their needs together. For example a depends on foo>2 foo<10 and b depends on foo>1 foo<3 for easier checking they could both be merged into a single Dependency foo>2 foo<3.

I wrote some tests which all pass and also seem to be working fine in my own code that uses gopkgbuild.

mikkeloscar commented 6 years ago

Cool! Thanks!