golang-migrate / migrate

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

Update migrant CLI installation for Linux(.deb package) #964

Open MahenderPoshaboina opened 1 year ago

MahenderPoshaboina commented 1 year ago

Describe the Bug `$ curl -L https://packagecloud.io/golang-migrate/migrate/gpgkey | apt-key add -

$ echo "deb https://packagecloud.io/golang-migrate/migrate/ubuntu/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/migrate.list

$ apt-get update

$ apt-get install -y migrate`

The above commands aren't working currently.

Steps to Reproduce Steps to reproduce the behavior: I ran migrate with the following options '....' `curl -L https://packagecloud.io/golang-migrate/migrate/gpgkey | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/golang-migrate-archive-keyring.gpg

echo "deb https://packagecloud.io/golang-migrate/migrate/ubuntu/ $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/migrate.list

apt-get update

apt-get install -y migrate `

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

Migrate Version v4.16.2

NightOnFire commented 4 months ago

I suggest changing the first line to this one to keep the terminal output cleaner. curl -L https://packagecloud.io/golang-migrate/migrate/gpgkey | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/golang-migrate-archive-keyring.gpg But this is a big docs problem as the previous command is being depreciated.