Yes, several years ago, but I had to buy the whole hydrant. Mine was the kind at Tractor Supply, though, so it was the easiest and fastest solution. Buy a 2nd hydrant, pull out the first head and spigot, and replace with a new spigot/head.
That said, I had my whole unit replaced this year by professional underground plumbers. It wasn’t cheap (cost about $600) but they were in and out in less than an hour. They had the smallest excavator I’ve ever seen. It was the size of a mini horse - I want one! The hole they dug was barely big enough for the guy to get his head/shoulders in, and when they were done you couldn’t tell they had ever been there.
So - worst case scenario if it’s all cracked - maybe have a pro lined up so you can replace it quickly if necessary