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."
|
||||
}
|
3
constraint/constraint.go
Normal file
3
constraint/constraint.go
Normal file
@@ -0,0 +1,3 @@
|
||||
//go:build cgo
|
||||
|
||||
package constraint
|
3
constraint/go.mod
Normal file
3
constraint/go.mod
Normal file
@@ -0,0 +1,3 @@
|
||||
module git.sunturtle.xyz/zephyr/errors-my-beloved/syntax
|
||||
|
||||
go 1.25.0
|
Reference in New Issue
Block a user