File: gocompat

package info (click to toggle)
docker.io 28.5.2%2Bdfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 69,048 kB
  • sloc: sh: 5,867; makefile: 863; ansic: 184; python: 162; asm: 159
file content (10 lines) | stat: -rwxr-xr-x 436 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
#!/usr/bin/env sh
set -e

# This script verifies that all packages have the correct //go:build directives set.
# This is necessary because when our code is consumed as a dependency in "module mode",
# Go will implicitly generate a go.mod and assume "go1.16" language version if one
# doesn't exist. Starting with Go 1.21, this causes compilation errors for any code
# using features from newer Go versions.

make -C ./internal/gocompat