Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/bazelbuild/bazelisk
/ functions
Functions
249 in github.com/bazelbuild/bazelisk
⨍
Functions
249
◇
Types & classes
40
↓ 33 callers
Function
Null
Null returns a Config with no config values.
config/config.go:121
↓ 32 callers
Method
AddVersion
(version string, hasRelease bool, rcs []int, rolling []string)
bazelisk_version_test.go:398
↓ 22 callers
Method
Get
(name string)
config/config.go:16
↓ 16 callers
Function
CreateRepositories
CreateRepositories creates a new Repositories instance with the given repositories. Any nil repository will be replaced by a dummy repository that rai
core/repositories.go:289
↓ 15 callers
Method
ResolveVersion
ResolveVersion resolves a potentially relative Bazel version string such as "latest" to an absolute version identifier, and returns this identifier al
core/repositories.go:83
↓ 12 callers
Method
Finish
()
bazelisk_version_test.go:455
↓ 12 callers
Method
TimesSlept
()
httputil/httputil_test.go:34
↓ 12 callers
Function
setUp
(t *testing.T)
bazelisk_version_test.go:434
↓ 11 callers
Function
ReadRemoteFile
ReadRemoteFile returns the contents of the given file, using the supplied Authorization header value, if set. It also returns the HTTP headers. If the
httputil/httputil.go:69
↓ 11 callers
Method
Write
(buf []byte)
httputil/progress/progress.go:81
↓ 11 callers
Function
maybeDelegateToWrapperFromDir
(bazel string, wd string, config config.Config)
core/core.go:694
↓ 10 callers
Function
DetermineExecutableFilenameSuffix
DetermineExecutableFilenameSuffix returns the extension for binaries on the current operating system.
platforms/platforms.go:51
↓ 9 callers
Method
AddResponse
AddResponse stores a fake HTTP response for the given URL.
httputil/fake.go:31
↓ 9 callers
Function
runBazel
(bazel string, args []string, stdout, stderr io.Writer, config config.Config)
core/core.go:839
↓ 7 callers
Function
DetermineArchitecture
DetermineArchitecture returns the architecture of the current machine.
platforms/platforms.go:60
↓ 7 callers
Function
DetermineOperatingSystem
DetermineOperatingSystem returns the name of the operating system.
platforms/platforms.go:79
↓ 7 callers
Function
DownloadBinary
DownloadBinary downloads a file from the given URL into the specified location, marks it executable and returns its full path.
httputil/httputil.go:196
↓ 6 callers
Method
Add
(resp *http.Response, err error)
httputil/fake.go:55
↓ 5 callers
Function
DetermineBazelFilename
DetermineBazelFilename returns the correct file name of a local Bazel binary.
platforms/platforms.go:89
↓ 5 callers
Function
DetermineBazelInstallerFilename
DetermineBazelInstallerFilename returns the correct file name of a Bazel installer script.
platforms/platforms.go:117
↓ 5 callers
Function
get_env_or_config
Reads a configuration value from the environment, but falls back to reading it from .bazeliskrc in the workspace root.
bazelisk.py:99
↓ 5 callers
Function
setUpAllFailures
(url string, status, retries int, headers map[string]string)
httputil/httputil_test.go:47
↓ 4 callers
Method
Now
()
httputil/httputil.go:52
↓ 4 callers
Method
addURL
(prefix string, containsItem bool, childPrefixes ...string)
bazelisk_version_test.go:425
↓ 4 callers
Function
cleanIfNeeded
(bazelPath string, startupOptions []string, config config.Config)
core/core.go:986
↓ 4 callers
Function
extractCompletionScriptsFromZip
(zipData []byte)
core/core.go:1526
↓ 4 callers
Function
formatMb
(size int64)
httputil/progress/progress.go:116
↓ 4 callers
Function
getBazelCompletionScript
(version string, bazeliskHome string, shell string, config config.Config)
core/core.go:1329
↓ 4 callers
Function
setUp
()
httputil/httputil_test.go:38
↓ 4 callers
Function
shutdownIfNeeded
(bazelPath string, startupOptions []string, config config.Config)
core/core.go:967
↓ 3 callers
Function
BuildURLFromFormat
BuildURLFromFormat returns a Bazel download URL based on formatURL.
core/repositories.go:226
↓ 3 callers
Function
FindWorkspaceRoot
FindWorkspaceRoot returns the root directory of the Bazel workspace in which the passed root exists, if any.
ws/ws.go:10
↓ 3 callers
Function
GetInAscendingOrder
GetInAscendingOrder returns the given versions sorted in ascending order.
versions/versions.go:96
↓ 3 callers
Function
MakeDefaultConfig
MakeDefaultConfig returns a config based on env and .bazeliskrc files.
core/core.go:58
↓ 3 callers
Method
Sleep
(time.Duration)
httputil/httputil.go:51
↓ 3 callers
Function
atomicWriteFile
(path string, contents []byte, perm os.FileMode)
core/core.go:541
↓ 3 callers
Function
dirForURL
(url string)
core/core.go:1272
↓ 3 callers
Function
find_workspace_root
(root=None)
bazelisk.py:138
↓ 3 callers
Function
get
(url, auth string)
httputil/httputil.go:87
↓ 3 callers
Function
getBazeliskHome
getBazeliskHome returns the path to the Bazelisk home directory.
core/core.go:352
↓ 3 callers
Function
get_operating_system
()
bazelisk.py:246
↓ 3 callers
Function
handleCompletionCommand
(args []string, bazelInstallation *BazelInstallation, config config.Config)
core/core.go:1295
↓ 3 callers
Function
insertArgs
insertArgs will insert newArgs in baseArgs. If baseArgs contains the "--" argument, newArgs will be inserted before that. Otherwise, newArgs is append
core/core.go:915
↓ 3 callers
Function
listDirectoriesInBucket
(prefix string)
repositories/gcs.go:64
↓ 3 callers
Function
makeBazelCmd
(bazel string, args []string, stdout, stderr io.Writer, config config.Config)
core/core.go:785
↓ 3 callers
Function
resolvePotentiallyRelativeVersion
(bazeliskHome string, lister listVersionsFunc, vi *versions.Info)
core/repositories.go:189
↓ 2 callers
Function
CreateGitHubRepo
CreateGitHubRepo instantiates a new GitHubRepo.
repositories/github.go:22
↓ 2 callers
Function
DarwinFallback
DarwinFallback Darwin arm64 was supported since 4.1.0, before 4.1.0, fall back to x86_64
platforms/platforms.go:135
↓ 2 callers
Function
ExecBazeliskWithArgsFuncAndConfig
ExecBazeliskWithArgsFuncAndConfig runs the main Bazelisk logic for the given ArgsFunc and Bazel repositories and config. If possible (i.e. on non-Win
core/core.go:145
↓ 2 callers
Function
FromFile
FromFile returns a Config which gets config values from a Bazelisk config file.
config/config.go:31
↓ 2 callers
Function
NewFakeTransport
NewFakeTransport creates a new FakeTransport instance without any responses.
httputil/fake.go:17
↓ 2 callers
Function
RunBazeliskWithArgsFuncAndConfigAndOutAndErr
RunBazeliskWithArgsFuncAndConfigAndOutAndErr runs the main Bazelisk logic for the given ArgsFunc and Bazel repositories and config, writing its stdout
core/core.go:116
↓ 2 callers
Function
RunOrExecBazeliskWithArgsFuncAndConfigAndOutAndErr
RunOrExecBazeliskWithArgsFuncAndConfigAndOutAndErr runs the main Bazelisk logic for the given ArgsFunc and Bazel repositories and config. If exec is
core/core.go:158
↓ 2 callers
Function
Static
Static returns a Config with static values.
config/config.go:126
↓ 2 callers
Function
buildGCSResponseOrFail
(t *testing.T, prefixes []string, items []interface{})
bazelisk_version_test.go:462
↓ 2 callers
Function
constructInstallerURL
(baseURL, formatURL, version string, config config.Config)
core/core.go:1370
↓ 2 callers
Function
createResponse
(status int, body string, headers map[string]string)
httputil/fake.go:68
↓ 2 callers
Function
determine_executable_filename_suffix
()
bazelisk.py:256
↓ 2 callers
Function
download
(url, destination_path)
bazelisk.py:389
↓ 2 callers
Function
downloadBazel
(bazelVersionString string, bazeliskHome string, repos *Repositories, config config.Config)
core/core.go:476
↓ 2 callers
Function
extractCompletionScriptsFromInstaller
(installerContent []byte)
core/core.go:1498
↓ 2 callers
Function
extractZipFromInstaller
(installerContent []byte)
core/core.go:1514
↓ 2 callers
Function
formatPercentage
(current, size int64)
httputil/progress/progress.go:122
↓ 2 callers
Function
getVersionHistoryFromGCS
()
repositories/gcs.go:53
↓ 2 callers
Function
getVersionsFromGCSPrefixes
(versions []string)
repositories/gcs.go:125
↓ 2 callers
Function
installTransport
()
bazelisk_version_test.go:444
↓ 2 callers
Function
isCompletionCommand
(args []string)
core/core.go:1284
↓ 2 callers
Function
make_bazel_cmd
(bazel_path, argv)
bazelisk.py:477
↓ 2 callers
Function
maybe_makedirs
Creates a directory and its parents if necessary.
bazelisk.py:437
↓ 2 callers
Function
normalized_machine_arch_name
()
bazelisk.py:304
↓ 2 callers
Function
notFound
()
httputil/fake.go:84
↓ 2 callers
Function
parseStartupOptions
(baseArgs []string)
core/core.go:932
↓ 2 callers
Function
prependDirToPathList
(cmd *exec.Cmd, dir string)
core/core.go:766
↓ 2 callers
Function
printBazeliskVersion
(gnuFormat bool)
core/core.go:278
↓ 2 callers
Function
read_remote_text_file
(url)
bazelisk.py:209
↓ 2 callers
Method
responseCollection
(url string)
httputil/fake.go:23
↓ 2 callers
Function
showProgress
(config config.Config)
httputil/progress/progress.go:23
↓ 2 callers
Function
testWithBazelAtCommit
(bazelCommit string, args []string, bazeliskHome string, repos *Repositories, config config.Config)
core/core.go:1184
↓ 1 callers
Method
AddError
AddError stores a error for the given URL.
httputil/fake.go:36
↓ 1 callers
Method
DownloadAtCommit
DownloadAtCommit downloads a Bazel binary built at the given commit into the specified location and returns the absolute path.
core/repositories.go:61
↓ 1 callers
Method
DownloadFromBaseURL
DownloadFromBaseURL can download Bazel binaries from a specific URL while ignoring the predefined repositories.
core/repositories.go:208
↓ 1 callers
Method
DownloadFromFormatURL
DownloadFromFormatURL can download Bazel binaries from a specific URL while ignoring the predefined repositories.
core/repositories.go:272
↓ 1 callers
Method
DownloadLTS
DownloadLTS downloads the given Bazel version into the specified location and returns the absolute path.
core/repositories.go:42
↓ 1 callers
Method
DownloadRolling
DownloadRolling downloads the given Bazel version into the specified location and returns the absolute path.
core/repositories.go:70
↓ 1 callers
Method
DownloadVersion
DownloadVersion downloads the given Bazel binary from the specified fork into the given location and returns the absolute path.
core/repositories.go:51
↓ 1 callers
Function
ExecBazeliskWithArgsFunc
ExecBazeliskWithArgsFunc runs the main Bazelisk logic for the given ArgsFunc and Bazel repositories. If possible (i.e. on non-Windows platforms), thi
core/core.go:135
↓ 1 callers
Function
Finish
Finish writes final output after the progress bar is complete.
httputil/progress/progress.go:74
↓ 1 callers
Function
FromEnv
FromEnv returns a Config which gets config values from environment variables.
config/config.go:20
↓ 1 callers
Function
GetBazelInstallation
GetBazelInstallation provides a mechanism to find the `bazel` binary to execute, as well as its version
core/core.go:293
↓ 1 callers
Function
GetBazelVersion
GetBazelVersion returns the Bazel version that should be used.
core/core.go:390
↓ 1 callers
Method
GetLTSVersions
GetLTSVersions returns a list of all available LTS release (candidates) that match the given filter options. Warning: Filters only work reliably if th
core/repositories.go:39
↓ 1 callers
Method
GetLastGreenCommit
GetLastGreenCommit returns the most recent commit at which a Bazel binary is successfully built.
core/repositories.go:58
↓ 1 callers
Function
GetPlatform
GetPlatform returns a Bazel CI-compatible platform identifier for the current operating system. TODO(fweikert): raise an error for unsupported platfor
platforms/platforms.go:37
↓ 1 callers
Method
GetRollingVersions
GetRollingVersions returns a list of all available rolling release versions.
core/repositories.go:67
↓ 1 callers
Method
GetVersions
GetVersions returns the versions of all available Bazel binaries in the given fork.
core/repositories.go:48
↓ 1 callers
Function
IsCommit
IsCommit returns whether the given version refers to a commit, including last_green.
versions/versions.go:122
↓ 1 callers
Function
Layered
Layered returns a Config which gets config values from the first of a series of other Config values which sets the config.
config/config.go:101
↓ 1 callers
Function
LocateUserConfigFile
LocateUserConfigFile locates a .bazeliskrc file in the user's home directory.
config/config.go:79
↓ 1 callers
Function
LocateWorkspaceConfigFile
LocateWorkspaceConfigFile locates a .bazeliskrc file in the current workspace root.
config/config.go:88
↓ 1 callers
Function
MatchCommitPattern
MatchCommitPattern returns whether the given version refers to a commit, not including last_green.
versions/versions.go:116
next →
1–100 of 249, ranked by callers