Tried using Go 1.18 (the latest release as of March 20, 2022) and Go 1.17.8 (latest older release) on my Macbook Pro running MacOS Monterey Version 12.1 (21C52). The sql-migrate command is not getting added to the PATH variable. I have looked extensively and don't find a solution to adding this to the path without doing it manually. I would like to not do it manually.
Basically I'm getting zsh: command not found: sql-migrate when I try to run sql-migrate command on my terminal running zsh. Even when I switch to bash it doesn't work.
I can see that the package is being installed in $HOME/go/pkg/mod/github.com/rubenv/sql-migrate@v1.1.1.
Is this a known issue or am I missing something? How can I solve this?
Tried using Go 1.18 (the latest release as of March 20, 2022) and Go 1.17.8 (latest older release) on my Macbook Pro running MacOS Monterey Version 12.1 (21C52). The
sql-migratecommand is not getting added to the PATH variable. I have looked extensively and don't find a solution to adding this to the path without doing it manually. I would like to not do it manually.Basically I'm getting
zsh: command not found: sql-migratewhen I try to runsql-migratecommand on my terminal running zsh. Even when I switch to bash it doesn't work.I can see that the package is being installed in
$HOME/go/pkg/mod/github.com/rubenv/sql-migrate@v1.1.1.Is this a known issue or am I missing something? How can I solve this?