thash / asana

Asana command line Client
115 stars 25 forks source link

"go: cannot find main module" when installing from homebrew #27

Open jfhbrook-at-work opened 2 years ago

jfhbrook-at-work commented 2 years ago

Howdy! I was trying to install this on my MacOS machine (Monterey) with homebrew and the formula is pretty unhappy:

briefcase on ξ‚  main is πŸ“¦ v1.0.0 via  v16.13.1 via 🐍 v3.8.8 (env) on ☁️  (us-west-2) took 1m15s
❯ brew install asana
Warning: Treating asana as a formula. For the cask, use homebrew/cask/asana
==> Cloning https://github.com/thash/asana.git
Updating /Users/jholbrook/Library/Caches/Homebrew/asana--git
==> Checking out tag v0.2.1
HEAD is now at da081e7 Merge pull request #18 from thash/v0.2.1
HEAD is now at da081e7 Merge pull request #18 from thash/v0.2.1
==> Installing asana from thash/asana
==> go get github.com/urfave/cli
==> go get github.com/thash/asana
==> go build -o asana
Last 15 lines from /Users/jholbrook/Library/Logs/Homebrew/asana/03.go:
2021-12-16 19:34:09 +0000

go
build
-o
asana

go: cannot find main module, but found .git/config in /private/tmp/asana-20211216-93870-10gho4f
    to create a module there, run:
    go mod init

If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
  https://github.com/thash/homebrew-asana/issues

I don't know what this error means :) not a go person - but hopefully an easy fix? Maybe there's a workaround?