"go: cannot find main module" when installing from homebrew
jfhbrook-at-work opened this issue ยท 0 comments
jfhbrook-at-work commented
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?