mirror of
https://github.com/coder/coder.git
synced 2025-07-03 16:13:58 +00:00
This change introduces a compile-time error when `coderd/database` is imported into the slim build. This is to guard against accidentally growing the binary size via import. Ref: #9380
9 lines
229 B
Go
9 lines
229 B
Go
package database
|
|
|
|
const (
|
|
// This declaration protects against imports in slim builds, see
|
|
// no_slim_slim.go.
|
|
//nolint:revive,unused
|
|
_DO_NOT_IMPORT_THIS_PACKAGE_IN_SLIM_BUILDS = "DO_NOT_IMPORT_THIS_PACKAGE_IN_SLIM_BUILDS"
|
|
)
|