platforms

package
v1.25.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 10, 2024 License: Apache-2.0 Imports: 6 Imported by: 2

Documentation

Overview

Package platforms determines file names and extensions based on the current operating system.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DarwinFallback added in v1.12.0

func DarwinFallback(machineName string, version string) (alterMachineName string)

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

func DetermineArchitecture(osName, version string) (string, error)

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

func DetermineOperatingSystem() (string, error)

DetermineOperatingSystem returns the name of the operating system.

func GetPlatform

func GetPlatform() (string, error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL