Skip to content

Commit

Permalink
comment why this file is needed
Browse files Browse the repository at this point in the history
  • Loading branch information
jrick committed Feb 11, 2025
1 parent 471b654 commit c5df6d3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions debug.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@
// Use of this source code is governed by an ISC
// license that can be found in the LICENSE file.

// We use a build tag to change the default GODEBUG value to the latest Go
// release, rather than setting this default in the go.mod for two reasons:
//
// 1. Our go.mod specifies at most the previous supported Go version as a
// minimum, and the latest Go toolchain's default GODEBUG cannot be specified
// without breaking builds with the older toolchains.
// 2. If a go.work is used, the godebug directives in go.mod will be ignored.

//go:build go1.24

//go:debug default=go1.24
Expand Down

0 comments on commit c5df6d3

Please sign in to comment.