gocを使用してgolang プログラムの統合テスト カバレッジを収集しますが、goc build でエラーが報告されます。
[root@d09fe5745883 cmd]# /root/go/bin/goc build -o /url/local/go-test-app /url/local/go-test-app
FATA Fail to build: packages only support "."
Goc ビルドではパスではなく「.」のみがサポートされるため、コンパイルが必要なディレクトリに cd する必要があります。
解決する:
cd /url/local/go-test-app && /root/go/bin/goc build -o /url/local/go-test-app .