Skip to content
IJK

Where the Go 1 Compatibility Promise Stops

By IJK ·

The promise the Go 1 compatibility document makes for programs, and the cases it names where a program that compiles today may stop working.

What the promise says

It is intended that programs written to the Go 1 specification will continue to compile and run correctly, unchanged, over the lifetime of that specification. [1]

At some indefinite point, a Go 2 specification may arise, but until that time, Go programs that work today should continue to work even as future "point" releases of Go 1 arise (Go 1.1, Go 1.2, etc.). [2]

What is not promised

Binary compatibility for compiled packages is not guaranteed between releases. [3]

After a point release, Go source will need to be recompiled to link against the new release. [4]

Although we expect that the vast majority of programs will maintain this compatibility over time, it is impossible to guarantee that no future change will break any program. [5]

Promisedprograms written to the Go 1 specification contin...Not promisedbinary compatibility between releases
What does the document promise for Go 1 programs, and what does it not?

Cases where a program may break

There are a number of ways in which a program that compiles and runs today may fail to do so after a future point release. [6]

A security issue in the specification or implementation may come to light whose resolution requires breaking compatibility. [7]

We reserve the right to address such security issues. [8]

The Go specification tries to be explicit about most properties of the language, but there are some aspects that are undefined. [9]

Programs that depend on such unspecified behavior may break in future releases. [10]

Sources

  1. The Go source says: It is intended that programs written to the Go 1 specification will continue to compile and run correctly, unchanged, over the lifetime of that specification. Go 1 and the Go 1 compatibility promise
  2. The Go source says: At some indefinite point, a Go 2 specification may arise, but until that time, Go programs that work today should continue to work even as future "point" releases of Go 1 arise (Go 1.1, Go 1.2, etc.). Go 1 and the Go 1 compatibility promise
  3. The Go source says: Binary compatibility for compiled packages is not guaranteed between releases. Go 1 and the Go 1 compatibility promise
  4. The Go source says: After a point release, Go source will need to be recompiled to link against the new release. Go 1 and the Go 1 compatibility promise
  5. The Go source says: Although we expect that the vast majority of programs will maintain this compatibility over time, it is impossible to guarantee that no future change will break any program. Go 1 and the Go 1 compatibility promise
  6. The Go source says: There are a number of ways in which a program that compiles and runs today may fail to do so after a future point release. Go 1 and the Go 1 compatibility promise
  7. The Go source says: A security issue in the specification or implementation may come to light whose resolution requires breaking compatibility. Go 1 and the Go 1 compatibility promise
  8. The Go source says: We reserve the right to address such security issues. Go 1 and the Go 1 compatibility promise
  9. The Go source says: The Go specification tries to be explicit about most properties of the language, but there are some aspects that are undefined. Go 1 and the Go 1 compatibility promise
  10. The Go source says: Programs that depend on such unspecified behavior may break in future releases. Go 1 and the Go 1 compatibility promise

Editorial (AI-assisted; automatically checked, not human-reviewed). Each statement is linked to its source; check the source before relying on a detail.

  • go
  • compatibility
  • upgrades
  • releases