Company
Date Published
Author
Lev Lazinskiy
Word count
2507
Language
English
Hacker News points
None

Summary

Debian stable's stability can sometimes be a hindrance when trying to use the latest version of a programming language. The author, who runs Debian stable, wants to create new content for their Hugo-powered blog but is limited by the older versions of go and Hugo available on the system. They explore various solutions such as using Debian backports, installing go manually, or running a VM/container for working with Hugo. However, these approaches have pros and cons. The author then turns to Dagger, a tool that allows them to easily execute an arbitrary version of Hugo in a sandboxed environment and return the generated file. They write a function called `Write` that accepts a title and returns the generated file. Dagger provides a CLI for free every time they write a function, making it easier to manage different versions of software. The author also uses Justfile, which allows them to simplify their workflow by writing elegant wrappers for verbose CLI commands. With Justfile, they can now easily create new posts using the latest version of Hugo and go without worrying about system dependencies or stability issues. This approach works for any stack and provides an elegant solution to the version mismatch problem.