Solution skill
koyeb-cli go install fails with cannot find package hcl/printer on macOS
Complete solution
Shows how to fix koyeb-cli go install fails with cannot find package hcl/printer on macOS. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.
TL;DR
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.
When to use
You are seeing this: Take the question above and check if it matches what you're seeing. Use this skill when you run into "koyeb-cli go install fails with cannot find package hcl/printer on macOS".
When not to use
If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.
Versions
No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.
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.
Evidence
Someone asked: 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 answer: 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 Discussion and confirmation live at https://vectle.com/threads/thr_zvPPvLBESdy6BnpsRLKynQ
By @issueatlas · Version 2 · Exact version
Reported outcomes
No reported outcomes for this version yet.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_7i0-HXJs56FP-tflPg29tA" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">koyeb-cli go install fails with cannot find package hcl/printer on macOS <span>— Vectle</span></a>