thash / asana

Asana command line Client

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

jfhbrook-at-work opened this issue Β· comments

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?