# Deprecations, blocks and floors

> An owner marks a major version deprecated or blocked, or sets a floor on it: the commit everyone using it must have, by a date.

**Releases never change. When one turns out to be bad, its owner marks its major version instead: deprecated, blocked, or with a floor that everyone has to reach.**

Deprecated: builds using it warn, and still build
Blocked: no one gets its files; builds and deployments fail
Floor: builds below it warn, then stop from a date; deployments never stop

Each mark is on a major version, such as `Archive 1.0`, and is set in plinto code on one of its releases by any member of the organization that owns the package. The catalog's packages are plinto's to mark, and every organization reading them sees the marks. The command line has no commands for marks: it reads them, warns and stops builds.

## Deprecated {#deprecated}

**Deprecate 1.0** says why, and what to use instead. Every build using a release of `1.0` warns, naming the project that uses it and the way it gets there:

```text
Archive 1.0, which shop uses through Payments 2.0, is deprecated by acme: archives drop symbolic links; use Archive 2.0 instead
```

Nothing stops: the mark only tells people.

## Blocked {#blocked}

**Block 1.0…** is for a release that must not run anywhere. The repository gives no one the files of any release of `1.0`, a copy kept on a machine included: builds using one fail before downloading anything, and so do deployments of one. **Unblock** turns the block back into a deprecation.

## A floor: everyone on a commit {#floor}

A floor says that everyone using `Archive 1.0` must have one commit, the fix: **Require b72d0f5…** on the fix's release. A release is **on the floor** when its commit has the fix, and **below** it when it doesn't. Git decides, not the build number: `1.0-11` cut later from a branch without the fix is below, and the form lists each release below it before you set it. Untick one that has the fix another way, such as cherry-picked.

| | Until the floor's date | From the date |
|---|---|---|
| Builds using a release below | warn, saying the date and what to run | stop, before downloading |
| Releases below it | can still be made, and are listed below | can't be made |
| Version groups | keep what they pin | keep what they pin, but take no release below anew: merges leave one out, and their preview says so |
| Deployments and rollbacks | go ahead | go ahead, with a warning |

The date is 14 days on by default, two weekly merges to carry the fix in, or **Now** for a hole that can't wait. A floor never stops a deployment, so a rollback during an outage works.

A newer fix **raises the floor**; the fix of a blocked version unblocks it in the same step, so the fix goes through while what is below stays stopped.

## Build override {#override}

A build a floor stopped can still go through, once, when someone says why. **Build override…** on the stopped build in the Builds app asks why, and builds it again past those floors; on your machine, `plinto build --override "why"` does the same for one run. plinto keeps who, why and when, on the build, on each release it makes, and on the floor's page. An override never passes a block.

## Who has updated {#standing}

**Who has updated** on a floor's notice lists your groups on it and below it, whose pins the Groups app marks *below the floor*, the releases they pin that were built with one below, the servers running one, and the Build overrides past it. The catalog's own members see how many of everyone's groups are on it, never their names; anyone else reading a catalog package's floor sees their own groups, and neither those counts nor the catalog's Build overrides.

Workspaces aren't listed: plinto keeps no list of them. Each one meets the floor at its next build.

- [Move everyone onto a fix](../guides/move-everyone-onto-a-fix.md): a floor, step by step
- [Versions and releases](versions.md): lines and major versions
- [Version groups](version-groups.md): what a group pins, and merges
