constraint: example of forcing an error for impossible builds
This commit is contained in:
7
constraint/cgo_is_required.go
Normal file
7
constraint/cgo_is_required.go
Normal file
@@ -0,0 +1,7 @@
|
||||
//go:build !cgo
|
||||
|
||||
package constraint
|
||||
|
||||
func _() {
|
||||
"This package requires cgo to build. An error here means cgo is disabled for your build."
|
||||
}
|
Reference in New Issue
Block a user