# Migrate from `code.gitea.io/sdk/gitea` to `gitea.dev/sdk`

The SDK now uses the `gitea.dev/sdk` module path. To migrate, update both your
`go.mod` dependency and every Go import that still points at the old `code.gitea.io` path.

This change corresponds to the next breaking-change line, but the published import path is
`gitea.dev/sdk`, not `code.gitea.io/sdk/gitea/v2` and not `gitea.dev/sdk/v2`.

## Import path change

Before:

```go
import "code.gitea.io/sdk/gitea"
```

After:

```go
import "gitea.dev/sdk"
```

## `go.mod` change

Before:

```go
require code.gitea.io/sdk/gitea vx.y.z
```

After:

```go
require gitea.dev/sdk vx.y.z
```

If your project still uses `code.gitea.io/sdk/gitea` anywhere, replace it with `gitea.dev/sdk`.
There is no `code.gitea.io/sdk/gitea/v2` import path to migrate to.
