golang-migrate / migrate

Database migrations. CLI and Golang library.
Other
14.86k stars 1.37k forks source link

Unable to install migrate CLI on Linux mint 20.04 #828

Open mezigar opened 1 year ago

mezigar commented 1 year ago

Trying to install migrate CLI by the guide, but both $ curl -L https://github.com/golang-migrate/migrate/releases/download/$version/migrate.$platform-amd64.tar.gz | tar xvz and $ curl -L https://packagecloud.io/golang-migrate/migrate/gpgkey | apt-key add - not working by different problems.

Expected Behavior A clear and concise description of what you expected to happen.

Migrate Version @latest

go version 1.19

Stacktrace for 1st issue: gzip: stdin: not in gzip format tar: Child returned status 1 tar: Error is not recoverable: exiting now

for 2nd issue: (23) Failed writing body

Apres2707 commented 1 year ago

@mezigar My friend, the following download method helped me: sudo wget -qO - https://packagecloud.io/golang-migrate/migrate/gpgkey | sudo apt key add -

Other commands used from README Hope this helps you.

lylecantcode commented 1 year ago

This worked for installing for me.

curl -L https://github.com/golang-migrate/migrate/releases/download/v4.15.2/migrate.linux-amd64.tar.gz | tar xvz

However, the migrate command is not currently working regardless.

CarlosVinicius3258 commented 9 months ago

If you're on your root base dir, go to your home profile and install it normally