Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var IsMuslLibc = sync.OnceValue( func() bool { out, err := os.ReadFile("/proc/self/maps") if err == nil { if muslRegex.Match(out) { return true } } lddPath, err := exec.LookPath("ldd") if err == nil { ldd, err := os.ReadFile(lddPath) if err == nil { if muslRegex.Match(ldd) { return true } else if gnuLibcRegex.Match(ldd) { return false } } lddVersion, err := exec. Command(lddPath, "--version"). CombinedOutput() if err == nil { if muslRegex.Match(lddVersion) { return true } else if gnuLibcRegex.Match(lddVersion) { return false } } } return false }, )
IsMuslLibc returns true if the system is using musl libc.
Functions ¶
func FetchGitHubReleaseAsset ¶
func FetchGitHubReleaseAsset( repo, version, asset string, ) (io.ReadCloser, error)
func GitHubReleaseAssetURL ¶
func ResolveToolPath ¶
func ToolCacheDir ¶
func ToolCacheDir() string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.