ericm / stonks

Stonks is a terminal based stock visualizer and tracker that displays realtime stocks in graph format in a terminal. See how fast your stonks will crash.
https://stonks.icu
GNU General Public License v3.0
548 stars 35 forks source link

Add homebrew tap #5

Closed jcrsilva closed 4 years ago

jcrsilva commented 4 years ago

Would be nice to be able to install this via homebrew

Documentation is here

I'm happy to help setting up a tap for this

ericm commented 4 years ago

Will do

ericm commented 4 years ago

See if brew install ericm/stonks/stonks works

ericm commented 4 years ago

Did you manage to install it?

vallieres commented 4 years ago

I get this error:

$ brew install ericm/stonks/stonks
Updating Homebrew...
==> Installing stonks from ericm/stonks
==> Cloning https://github.com/ericm/stonks.git
Updating /Users/vallieres/Library/Caches/Homebrew/stonks--git
==> Checking out tag v1.0.3
HEAD is now at 095f0c0 Release 1.0.3
HEAD is now at 095f0c0 Release 1.0.3
Error: An exception occurred within a child process:
  NoMethodError: undefined method `cd' for nil:NilClass
ericm commented 4 years ago

Im on that issue now. Think it was an issue with the shallow clone

ericm commented 4 years ago

See if the cd issue is still occurring

rednap commented 4 years ago

looks cool. getting make errors in both brew and from the repo. macbook.

$ brew --version
Homebrew 2.2.17
Homebrew/homebrew-core (git revision 6678b; last commit 2020-05-22)
Homebrew/homebrew-cask (git revision 9318a0; last commit 2020-05-22)
==> Checking out tag v1.0.3
HEAD is now at 095f0c0 Release 1.0.3
==> Installing dependencies for ericm/stonks/stonks: golang
==> Installing ericm/stonks/stonks dependency: golang
==> Pouring go-1.14.3.mojave.bottle.tar.gz
🍺  /usr/local/Cellar/go/1.14.3: 9,441 files, 424.7MB
==> Installing ericm/stonks/stonks
==> make
Error: An exception occurred within a child process:
  NameError: undefined local variable or method `build_opts' for #<Formulary::FormulaNamespace9150c9452a1d548ccb1532c5615823d7::Stonks:0x00007fe3a314b7c8>
Did you mean?  buildpath
vallieres commented 4 years ago

Still getting an error, did a brew cleanup and removed the stonks stuff from Homebrew's cache folder in case they could give me problem.

~$ brew install ericm/stonks/stonks
Updating Homebrew...
==> Installing stonks from ericm/stonks
==> Cloning https://github.com/ericm/stonks.git
Cloning into '/Users/vallieres/Library/Caches/Homebrew/stonks--git'...
Note: switching to '095f0c097220fdc636891dbe24f1448e62f3b624'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:

  git switch -c <new-branch-name>

Or undo this operation with:

  git switch -

Turn off this advice by setting config variable advice.detachedHead to false

==> Checking out tag v1.0.3
HEAD is now at 095f0c0 Release 1.0.3
==> make
==> make install
Error: Empty installation
ericm commented 4 years ago

Should be working now. Sorry for the delay :)

➜  stonks--git git:(095f0c0) brew install ericm/stonks/stonks
==> Installing stonks from ericm/stonks
==> Cloning https://github.com/ericm/stonks.git
Updating /Users/eric/Library/Caches/Homebrew/stonks--git
==> Checking out tag v1.0.3
HEAD is now at 095f0c0 Release 1.0.3
HEAD is now at 095f0c0 Release 1.0.3
Warning: Your Xcode (11.4) is outdated.
Please update to Xcode 11.4.1 (or delete it).
Xcode can be updated from the App Store.

Warning: A newer Command Line Tools release is available.
Update them from Software Update in System Preferences or run:
  softwareupdate --all --install --force

If that doesn't show you an update run:
  sudo rm -rf /Library/Developer/CommandLineTools
  sudo xcode-select --install

Alternatively, manually download them from:
  https://developer.apple.com/download/more/.

==> make
🍺  /usr/local/Cellar/stonks/1.0.3: 5 files, 12MB, built in 16 seconds
==> `brew cleanup` has not been run in 30 days, running now...
Removing: /Users/eric/Library/Caches/Homebrew/icu4c--64.2.catalina.bottle.tar.gz... (26.1MB)
Removing: /Users/eric/Library/Caches/Homebrew/node--13.12.0.catalina.bottle.tar.gz... (16.2MB)
Removing: /Users/eric/Library/Caches/Homebrew/go_cache... (762 files, 50.6MB)
Removing: /Users/eric/Library/Caches/Homebrew/Cask/adoptopenjdk8--8,242:b08.pkg... (98MB)
Removing: /Users/eric/Library/Logs/Homebrew/ncurses... (64B)
Removing: /Users/eric/Library/Logs/Homebrew/icu4c... (64B)
Removing: /Users/eric/Library/Logs/Homebrew/openjdk... (64B)
Removing: /Users/eric/Library/Logs/Homebrew/unrar... (64B)
Removing: /Users/eric/Library/Logs/Homebrew/pcre... (64B)
Removing: /Users/eric/Library/Logs/Homebrew/node... (64B)
Removing: /Users/eric/Library/Logs/Homebrew/zsh... (64B)
Removing: /Users/eric/Library/Logs/Homebrew/cocoapods... (64B)
Pruned 0 symbolic links and 4 directories from /usr/local
vallieres commented 4 years ago

Working thanks!