website icon indicating copy to clipboard operation
website copied to clipboard

Check hugo version in `deploy.sh`?

Open mal-tee opened this issue 4 years ago • 1 comments

Sometimes we had external contributors having problems with setting up our stack due to them having out-of-date or wrong, i.e. not the extended, versions of hugo.

Although deploy.sh's main purpose is different, we could include a hugo version check, to warn new contributors early? Maybe even stop the process.

Is that something we want? :D

As a potential downside I see the possibility of us specifying a recent version, even if a earlier one would suffice. But I think we usually only bump our hugo version if we need a particular feature or bug fix, so we should be fine.

mal-tee avatar Dec 07 '21 19:12 mal-tee

Eh, I wouldn't mind that.

But you'd have to implement checking for versions >=, not just ==.

baltpeter avatar Dec 07 '21 21:12 baltpeter