> For the complete documentation index, see [llms.txt](https://help.aikido.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.aikido.dev/docs/docs-ja/autofix-to/connect-private-packages/go-private-packages.md).

# Go - プライベートパッケージ

Aikido がプライベートパッケージを含む依存関係を更新するには、正確な lockfile の更新を生成できるよう、プライベートレジストリへのアクセスが必要です。GitHub または GitLab でホストされているプライベートな Go パッケージを設定するには、以下の手順に従ってください。

1. 次へ移動し、 [自動修正の設定](https://app.aikido.dev/issues/fix/settings) ページで「*レジストリを接続*"
2. 「を選択*Go*をパッケージマネージャーとして選択

<figure><img src="/files/93d539d9c2979772d40a2c418b778a2cd588532f" alt=""><figcaption></figcaption></figure>

3. 以下のモーダルに、プライベートレジストリのホストを入力してください。これは、パッケージがホストされているリポジトリへのパスを含むホスト名です。Aikido はこれを `GOPRIVATE` 更新プロセス中の環境変数として公開します。
4. GitHub の例: `github.com/[ORG]/[REPO]`
5. GitLab の例: `gitlab.com/[ORG]/[REPO]`

Aikido はこの値を使用して `GOPRIVATE` 環境変数を設定します。そのため、プライベートとして扱うべきモジュールパスのプレフィックスを、カンマ区切りの glob パターンのリストにできます（例: `github.com/myorg/*` または `gitlab.com/myorg/repo1,gitlab.com/myorg/repo2`.

1. 次に、GitHub または GitLab で、そのリポジトリへの読み取り専用アクセス権を持つ個人アクセストークンを作成し、それをトークン欄に入力してください

<figure><img src="/files/15fbf3ae7c317e1f0d2223292e092d5c7fa47263" alt=""><figcaption></figcaption></figure>

5. 「*レジストリを接続*"


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://help.aikido.dev/docs/docs-ja/autofix-to/connect-private-packages/go-private-packages.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
