Documentation ¶
Overview ¶
Package platforms determines file names and extensions based on the current operating system.
Index ¶
- func DarwinFallback(machineName string, version string) (alterMachineName string)
- func DetermineArchitecture(osName, version string) (string, error)
- func DetermineBazelFilename(version string, includeSuffix bool, config config.Config) (string, error)
- func DetermineExecutableFilenameSuffix() string
- func DetermineOperatingSystem() (string, error)
- func GetPlatform() (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DarwinFallback ¶ added in v1.12.0
DarwinFallback Darwin arm64 was supported since 4.1.0, before 4.1.0, fall back to x86_64
func DetermineArchitecture ¶ added in v1.17.0
DetermineArchitecture returns the architecture of the current machine.
func DetermineBazelFilename ¶
func DetermineBazelFilename(version string, includeSuffix bool, config config.Config) (string, error)
DetermineBazelFilename returns the correct file name of a local Bazel binary.
func DetermineExecutableFilenameSuffix ¶
func DetermineExecutableFilenameSuffix() string
DetermineExecutableFilenameSuffix returns the extension for binaries on the current operating system.
func DetermineOperatingSystem ¶ added in v1.17.0
DetermineOperatingSystem returns the name of the operating system.
func GetPlatform ¶
GetPlatform returns a Bazel CI-compatible platform identifier for the current operating system. TODO(fweikert): raise an error for unsupported platforms
Types ¶
This section is empty.