# go: ambiguous import: found package X in multiple modules: Y and Z

- **ID:** `go/ambiguous-import`
- **Domain:** go
- **Category:** module_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

Multiple modules provide the same import path, causing ambiguity.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 1.18 | active | — | — |
| 1.19 | active | — | — |

## Workarounds

1. **使用replace指令指定一个模块** (70% success)
   ```
   replace example.com/pkg => github.com/user/module v1.0.0
   ```
2. **更新导入路径使用完整模块路径** (60% success)
   ```
   import "github.com/user/module/pkg"
   ```

## Dead Ends

- **删除其中一个模块** — 可能两个模块都是必需的，删除会导致其他依赖问题。 (60% fail)
- **使用go mod tidy** — go mod tidy不会解决歧义，只会报告错误。 (90% fail)
