Skip to content

sql-migrate CLI tool not being added to path with the installation command provided. zsh: command not found: sql-migrate #213

@nikhil1011

Description

@nikhil1011

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions