# M0011 package not found (/docs/diagnostics/codes/m0011)

<Diagnostic code="M0011" />

## The mistake and the fix [#the-mistake-and-the-fix]

<div className="code-pair">

```go title="The mistake"
import "example.com/lib" // not in go.mod
```

```go title="Fixed"
// go get example.com/lib, then // [!code highlight]
import "example.com/lib" // [!code highlight]
```

</div>

## The fix [#the-fix]

Run go get for the module, fix the import path, or remove the import.

See also [all error codes](/docs/diagnostics/codes) and [marmot explain](/docs/commands/explain).