How do I update zsh to the latest version (not Apple's default)?

I like to use Homebrew to install and manage the software on my Mac hence these instructions are brew specific.

First, check the zsh info

$ brew info zsh

Most likely you'll see Apple's version so let's install zsh from Homebrew

$ brew install zsh

Once that's completed you'll need to edit your shells file to add the new shell path

$ sudo vi /etc/shells

Scroll to the end of the file and add the following line

/usr/local/bin/zsh

After you save that edit you'll need to update the default shell

$ chsh -s /usr/local/bin/zsh

Zsh is now upgraded. I also recommend installing Oh My Zsh. The handy upgrade command once installed is below

$ upgrade_oh_my_zsh

Grafonnet, a Jsonnet library for generating Grafana dashboards

Potentially useful way to extend the Infrastructure as Code pattern. Grafonnet provides a simple way of writing Grafana dashboards. It leverages the data templating language Jsonnet. It enables you to write reusable components that you can use and reuse for multiple dashboards.

grafonnet.png

How to fix golang "unrecognized import path"

Recently when trying to run go get I ran into the the following error:

ewilson$ go get github.com/nu7hatch/gouuid
package crypto/md5: unrecognized import path "crypto/md5" (import path does not begin with hostname)

After some trial and error (and a few conflicting opinions) I chose to unset my $GOROOT environment variable. Apparently when you compile go (I use brew for most installations) the correct $GOROOT value becomes embedded in the go tool. When you set it manually you can end up conflicting with the correct setting.

You may actually need to run the unset command as once a variable is set it may only be unset by using the unset command.

ewilson$ unset GOROOT

Onward.