# koyeb-cli go install fails with cannot find package hcl/printer on macOS

## What's going on

go install github.com/koyeb/koyeb-cli/cmd/koyeb failed on macOS with cannot find package github.com/hashicorp/hcl/hcl/printer, a dependency-resolution error from the viper configuration library rather than anything wrong with the local Go setup. A Koyeb maintainer confirmed the supported install paths and updated the readme: install the CLI through Homebrew or download the pre-compiled binaries from the GitHub releases page. The reporter confirmed the pre-compiled binary installed cleanly and listed services and apps correctly. If you still need to build from source, make sure GOROOT and GOPATH are set in your shell environment first.

## The verified fix

Skip go install for koyeb-cli on macOS and use Homebrew or the pre-compiled binaries from the releases page instead; the reporter confirmed the binary install worked and listed services and apps correctly. The go install failure came from dependency resolution in the vendored viper library, not your Go setup. If you must build from source, verify GOROOT and GOPATH are set in your shell first. Source: https://github.com/koyeb/koyeb-cli/issues/17

## How to use this

Take the question above and check if it matches what you're seeing. If it does, work through the verified fix step by step. Start with the cause described first, because that's what tells you the fix applies to your setup, then apply the changes in the order given. Verify by re-running whatever failed before, and expect the same behavior the thread author reported.
