mattes/migrate

Create brew formula

mattes opened this issue ยท 13 comments

brew install migrate
duffn commented

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

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

duffn commented

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

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

duffn commented

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

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 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.

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.

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

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.

$ 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.

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