migrate icon indicating copy to clipboard operation
migrate copied to clipboard

Create brew formula

Open mattes opened this issue 8 years ago • 13 comments

brew install migrate

mattes avatar Feb 10 '17 04:02 mattes

I'll take this if nobody is working on it.

duffn avatar May 03 '17 09:05 duffn

cc @mdedgjonaj

mattes avatar May 03 '17 16:05 mattes

Please feel free to take it! I didnt have much time and didnt progress much on it.

mdedgjonaj avatar May 05 '17 05:05 mdedgjonaj

I'll see if I can give it a go ( 😉 ). I have not done a brew formula myself either.

duffn avatar May 06 '17 19:05 duffn

any updates regarding this? would like to know if no one has time i might take over

omargallob avatar May 10 '17 14:05 omargallob

@omargallob I have not yet begun. If you would like to start right away, please feel free!

duffn avatar May 10 '17 14:05 duffn

I've attempted to create the Formula, but brew does not accepts binary releases, only builds. I did not manage to install any of the dependencies locally during the build.

This is what I ended up with, (work in progress), if anybody here want's to pick it up https://gist.github.com/Mikulas/f7c878c345bfaa4385bb39f5f5c61dab

Mikulas avatar May 22 '17 12:05 Mikulas

@Mikulas thanks for your work! Here is how I fetch the dependencies: https://github.com/mattes/migrate/blob/master/Makefile#L59 Does that help? The second line is just needed for the test deps.

mattes avatar May 22 '17 19:05 mattes

I could not figure out why but the go get -v -u ./... failed monumentally in the brew context which seems to change all env vars to the new context. It failed with error “matched not packages” and no tampering with GOPATH fixed that.

Mikulas avatar May 25 '17 08:05 Mikulas

@mattes: Will be fixed with Homebrew/homebrew-core#14297.

mkozjak avatar Jun 06 '17 14:06 mkozjak

@mattes Not sure if you noticed that the homebrew github issue has been closed. See this comment:

  • https://github.com/Homebrew/homebrew-core/pull/14297#issuecomment-310917955

Pretty sure that many new users will try to install with homebrew and run into problems, so maybe you should update the documentation to prevent confusion while this is being resolved.

bowsersenior avatar Jul 13 '17 19:07 bowsersenior

$ brew install migrate --with-postgres
Updating Homebrew...
Error: No available formula with the name "migrate" 
==> Searching for a previously deleted formula...
Warning: homebrew/core is shallow clone. To get complete history run:
  git -C "$(brew --repo homebrew/core)" fetch --unshallow

Error: No previously deleted formula found.
==> Searching for similarly named formulae...
This similarly named formula was found:
pyenv-pip-migrate
To install it, run:
  brew install pyenv-pip-migrate
==> Searching taps...
Error: No formulae found in taps.

ernsheong avatar Aug 17 '17 07:08 ernsheong

Why document it if you haven't done this yet?

mrhwick avatar Nov 07 '17 19:11 mrhwick