platforms

package
v1.19.0 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2023 License: Apache-2.0 Imports: 5 Imported by: 1

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)

func DetermineBazelFilename

func DetermineBazelFilename(version string, includeSuffix bool) (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)

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