fenneclab / hugo-bin

Binary wrapper for Hugo
MIT License
93 stars 26 forks source link

feat: `minVersion` instead of (or in addition to) `version` #156

Open davidsneighbour opened 5 months ago

davidsneighbour commented 5 months ago

I looked into this package because I am rewriting all my shell scripts into node scripts (concerning GoHugo builds, deploys, etc.). One point I feel needs to be added is some form of min and max Hugo versions. I do not care to update my settings every time a new Hugo version comes out, but I would like to constrain the version to "at least this version". Something like "version": ">=0.124.1" would be the simplest to maintain, and something like "minVersion": "0.124.1" might be easier implementable.

Does that sound very specific, or is it something others might have use of as well?

XhmikosR commented 5 months ago

While I do see your use case, I believe this would add complexity because we'd need to keep a list of versions and compatibility flags.

So, unless there's a clear/easy way to do this, I"m not sure it will be implemented, at least by me.