mirror of
https://github.com/priyanshujain/sanderling.git
synced 2026-10-02 19:17:10 +00:00
Splits embed.go so the go:embed directive only fires under -tags withsidecar. Default builds get a stub with a nil JAR and IsPlaceholder()=true. This removes the landmine where make uatu overwrote a tracked placeholder file, making any git add silently stage 130 MB.
13 lines
302 B
Go
13 lines
302 B
Go
//go:build withsidecar
|
|
|
|
package sidecar
|
|
|
|
import _ "embed"
|
|
|
|
//go:embed assets/sidecar-all.jar
|
|
var embeddedJAR []byte
|
|
|
|
// IsPlaceholder reports whether the binary was built without the real
|
|
// sidecar JAR embedded. -tags withsidecar builds always return false.
|
|
func IsPlaceholder() bool { return false }
|