Proposals Unofficial Go proposal tracker

Define a policy for deprecating and removing GODEBUG settings

#76163 · medium impact · Accepted ·

Go has accumulated many GODEBUG settings that let programs restore old behavior after compatibility-affecting changes (for example, panicnil=1). Each setting adds maintenance and testing burden. This proposal defines how such settings get deprecated and eventually removed.

Every new GODEBUG setting must either be marked permanent or get an earliest removal date at least two years (four releases) after it is introduced. To remove an existing setting that is permanent or has no removal date, someone must file a proposal. It must set a date at least two years after the setting was introduced and at least one release in the future, and it must address compatibility concerns. If the proposal is rejected, the setting becomes permanent.

In the release before the removal date, the setting is marked deprecated and the release notes announce its removal. If nobody raises strong objections in a flag-specific issue, the setting is removed in the next release and its default behavior becomes permanent. If there are objections, removal is postponed one release at a time, or the setting is made permanent.

Proposal
#76163 by griesemer
Status
Accepted on Jun 3, 2026
Impact
medium