# A package is in two release groups

What "is in the release groups … and …" means for axle release and how to fix it.

```text
error: @acme/sdk-web is in the release groups sdk and web
hint: A package can be in only one release group. Take it out of the packages of one of them under [[release.groups]] in axle.toml.
```

## Why it happens

Each of the [`[[release.groups]]`](https://axlers.dev/docs/reference/release.md#release-groups) in the root `axle.toml` lists its packages by name or by glob, and [`axle release`](https://axlers.dev/docs/reference/release.md) gives each group its own versions, tags and changelogs. A package matched by the packages of two groups would get two versions at once, so Axle stops before it changes anything. It often happens when a glob such as `@acme/*` also matches a package another group names.

## How to fix it

Take the package out of one of the groups. Make the glob narrower, such as `@acme/sdk-*` instead of `@acme/*`, or name the packages one by one:

```toml
[[release.groups]]
name = "sdk"
packages = ["@acme/sdk-node", "@acme/sdk-web"]
mode = "fixed"
```
