brew cask commands don't function because a package has a broken header

I was getting the follow error when running brew upgrade or cask commands

Error: Cask 'haskell-for-mac' is unreadable: undefined method `dots_to_slashes' for "1473.1526101439":Cask::DSL::Version

After running brew uninstall, brew purge, brew doctor and having no luck resolving the issue I headed over to

/usr/local/Caskroom

and then just did

rm -rf haskell-for-mac

Problem solved - not what I would have expected but it worked.

Dot Space Dot script calling syntax

I had written a shell script that captured network values from a running set of K8s service nodes. The network values would change as I built and destroyed the cluster. I needed a handy way to update the env values of interest so I created a small shell script that fit the bill. The script captured the values correctly but never set the env values after I ran it. After some head scratching I discovered the Dot Space Script calling syntax. It’s shorter than typing source each time and super handy.

$ . ./path/to/set_my_env_vars.sh

Dot Space Dot calling syntax makes the script run under the current shell instead of starting another one (which is what happened when I ran ./set_my_env_vars.sh). The environment variables are now correctly set and available after the script exits - nice.