MCPcopy Index your code

hub / github.com/bazelbuild/bazelisk / functions

Functions249 in github.com/bazelbuild/bazelisk

↓ 33 callersFunctionNull
Null returns a Config with no config values.
config/config.go:121
↓ 32 callersMethodAddVersion
(version string, hasRelease bool, rcs []int, rolling []string)
bazelisk_version_test.go:398
↓ 22 callersMethodGet
(name string)
config/config.go:16
↓ 16 callersFunctionCreateRepositories
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 callersMethodResolveVersion
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 callersMethodFinish
()
bazelisk_version_test.go:455
↓ 12 callersMethodTimesSlept
()
httputil/httputil_test.go:34
↓ 12 callersFunctionsetUp
(t *testing.T)
bazelisk_version_test.go:434
↓ 11 callersFunctionReadRemoteFile
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 callersMethodWrite
(buf []byte)
httputil/progress/progress.go:81
↓ 11 callersFunctionmaybeDelegateToWrapperFromDir
(bazel string, wd string, config config.Config)
core/core.go:694
↓ 10 callersFunctionDetermineExecutableFilenameSuffix
DetermineExecutableFilenameSuffix returns the extension for binaries on the current operating system.
platforms/platforms.go:51
↓ 9 callersMethodAddResponse
AddResponse stores a fake HTTP response for the given URL.
httputil/fake.go:31
↓ 9 callersFunctionrunBazel
(bazel string, args []string, stdout, stderr io.Writer, config config.Config)
core/core.go:839
↓ 7 callersFunctionDetermineArchitecture
DetermineArchitecture returns the architecture of the current machine.
platforms/platforms.go:60
↓ 7 callersFunctionDetermineOperatingSystem
DetermineOperatingSystem returns the name of the operating system.
platforms/platforms.go:79
↓ 7 callersFunctionDownloadBinary
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 callersMethodAdd
(resp *http.Response, err error)
httputil/fake.go:55
↓ 5 callersFunctionDetermineBazelFilename
DetermineBazelFilename returns the correct file name of a local Bazel binary.
platforms/platforms.go:89
↓ 5 callersFunctionDetermineBazelInstallerFilename
DetermineBazelInstallerFilename returns the correct file name of a Bazel installer script.
platforms/platforms.go:117
↓ 5 callersFunctionget_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 callersFunctionsetUpAllFailures
(url string, status, retries int, headers map[string]string)
httputil/httputil_test.go:47
↓ 4 callersMethodNow
()
httputil/httputil.go:52
↓ 4 callersMethodaddURL
(prefix string, containsItem bool, childPrefixes ...string)
bazelisk_version_test.go:425
↓ 4 callersFunctioncleanIfNeeded
(bazelPath string, startupOptions []string, config config.Config)
core/core.go:986
↓ 4 callersFunctionextractCompletionScriptsFromZip
(zipData []byte)
core/core.go:1526
↓ 4 callersFunctionformatMb
(size int64)
httputil/progress/progress.go:116
↓ 4 callersFunctiongetBazelCompletionScript
(version string, bazeliskHome string, shell string, config config.Config)
core/core.go:1329
↓ 4 callersFunctionsetUp
()
httputil/httputil_test.go:38
↓ 4 callersFunctionshutdownIfNeeded
(bazelPath string, startupOptions []string, config config.Config)
core/core.go:967
↓ 3 callersFunctionBuildURLFromFormat
BuildURLFromFormat returns a Bazel download URL based on formatURL.
core/repositories.go:226
↓ 3 callersFunctionFindWorkspaceRoot
FindWorkspaceRoot returns the root directory of the Bazel workspace in which the passed root exists, if any.
ws/ws.go:10
↓ 3 callersFunctionGetInAscendingOrder
GetInAscendingOrder returns the given versions sorted in ascending order.
versions/versions.go:96
↓ 3 callersFunctionMakeDefaultConfig
MakeDefaultConfig returns a config based on env and .bazeliskrc files.
core/core.go:58
↓ 3 callersMethodSleep
(time.Duration)
httputil/httputil.go:51
↓ 3 callersFunctionatomicWriteFile
(path string, contents []byte, perm os.FileMode)
core/core.go:541
↓ 3 callersFunctiondirForURL
(url string)
core/core.go:1272
↓ 3 callersFunctionfind_workspace_root
(root=None)
bazelisk.py:138
↓ 3 callersFunctionget
(url, auth string)
httputil/httputil.go:87
↓ 3 callersFunctiongetBazeliskHome
getBazeliskHome returns the path to the Bazelisk home directory.
core/core.go:352
↓ 3 callersFunctionget_operating_system
()
bazelisk.py:246
↓ 3 callersFunctionhandleCompletionCommand
(args []string, bazelInstallation *BazelInstallation, config config.Config)
core/core.go:1295
↓ 3 callersFunctioninsertArgs
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 callersFunctionlistDirectoriesInBucket
(prefix string)
repositories/gcs.go:64
↓ 3 callersFunctionmakeBazelCmd
(bazel string, args []string, stdout, stderr io.Writer, config config.Config)
core/core.go:785
↓ 3 callersFunctionresolvePotentiallyRelativeVersion
(bazeliskHome string, lister listVersionsFunc, vi *versions.Info)
core/repositories.go:189
↓ 2 callersFunctionCreateGitHubRepo
CreateGitHubRepo instantiates a new GitHubRepo.
repositories/github.go:22
↓ 2 callersFunctionDarwinFallback
DarwinFallback Darwin arm64 was supported since 4.1.0, before 4.1.0, fall back to x86_64
platforms/platforms.go:135
↓ 2 callersFunctionExecBazeliskWithArgsFuncAndConfig
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 callersFunctionFromFile
FromFile returns a Config which gets config values from a Bazelisk config file.
config/config.go:31
↓ 2 callersFunctionNewFakeTransport
NewFakeTransport creates a new FakeTransport instance without any responses.
httputil/fake.go:17
↓ 2 callersFunctionRunBazeliskWithArgsFuncAndConfigAndOutAndErr
RunBazeliskWithArgsFuncAndConfigAndOutAndErr runs the main Bazelisk logic for the given ArgsFunc and Bazel repositories and config, writing its stdout
core/core.go:116
↓ 2 callersFunctionRunOrExecBazeliskWithArgsFuncAndConfigAndOutAndErr
RunOrExecBazeliskWithArgsFuncAndConfigAndOutAndErr runs the main Bazelisk logic for the given ArgsFunc and Bazel repositories and config. If exec is
core/core.go:158
↓ 2 callersFunctionStatic
Static returns a Config with static values.
config/config.go:126
↓ 2 callersFunctionbuildGCSResponseOrFail
(t *testing.T, prefixes []string, items []interface{})
bazelisk_version_test.go:462
↓ 2 callersFunctionconstructInstallerURL
(baseURL, formatURL, version string, config config.Config)
core/core.go:1370
↓ 2 callersFunctioncreateResponse
(status int, body string, headers map[string]string)
httputil/fake.go:68
↓ 2 callersFunctiondetermine_executable_filename_suffix
()
bazelisk.py:256
↓ 2 callersFunctiondownload
(url, destination_path)
bazelisk.py:389
↓ 2 callersFunctiondownloadBazel
(bazelVersionString string, bazeliskHome string, repos *Repositories, config config.Config)
core/core.go:476
↓ 2 callersFunctionextractCompletionScriptsFromInstaller
(installerContent []byte)
core/core.go:1498
↓ 2 callersFunctionextractZipFromInstaller
(installerContent []byte)
core/core.go:1514
↓ 2 callersFunctionformatPercentage
(current, size int64)
httputil/progress/progress.go:122
↓ 2 callersFunctiongetVersionHistoryFromGCS
()
repositories/gcs.go:53
↓ 2 callersFunctiongetVersionsFromGCSPrefixes
(versions []string)
repositories/gcs.go:125
↓ 2 callersFunctioninstallTransport
()
bazelisk_version_test.go:444
↓ 2 callersFunctionisCompletionCommand
(args []string)
core/core.go:1284
↓ 2 callersFunctionmake_bazel_cmd
(bazel_path, argv)
bazelisk.py:477
↓ 2 callersFunctionmaybe_makedirs
Creates a directory and its parents if necessary.
bazelisk.py:437
↓ 2 callersFunctionnormalized_machine_arch_name
()
bazelisk.py:304
↓ 2 callersFunctionnotFound
()
httputil/fake.go:84
↓ 2 callersFunctionparseStartupOptions
(baseArgs []string)
core/core.go:932
↓ 2 callersFunctionprependDirToPathList
(cmd *exec.Cmd, dir string)
core/core.go:766
↓ 2 callersFunctionprintBazeliskVersion
(gnuFormat bool)
core/core.go:278
↓ 2 callersFunctionread_remote_text_file
(url)
bazelisk.py:209
↓ 2 callersMethodresponseCollection
(url string)
httputil/fake.go:23
↓ 2 callersFunctionshowProgress
(config config.Config)
httputil/progress/progress.go:23
↓ 2 callersFunctiontestWithBazelAtCommit
(bazelCommit string, args []string, bazeliskHome string, repos *Repositories, config config.Config)
core/core.go:1184
↓ 1 callersMethodAddError
AddError stores a error for the given URL.
httputil/fake.go:36
↓ 1 callersMethodDownloadAtCommit
DownloadAtCommit downloads a Bazel binary built at the given commit into the specified location and returns the absolute path.
core/repositories.go:61
↓ 1 callersMethodDownloadFromBaseURL
DownloadFromBaseURL can download Bazel binaries from a specific URL while ignoring the predefined repositories.
core/repositories.go:208
↓ 1 callersMethodDownloadFromFormatURL
DownloadFromFormatURL can download Bazel binaries from a specific URL while ignoring the predefined repositories.
core/repositories.go:272
↓ 1 callersMethodDownloadLTS
DownloadLTS downloads the given Bazel version into the specified location and returns the absolute path.
core/repositories.go:42
↓ 1 callersMethodDownloadRolling
DownloadRolling downloads the given Bazel version into the specified location and returns the absolute path.
core/repositories.go:70
↓ 1 callersMethodDownloadVersion
DownloadVersion downloads the given Bazel binary from the specified fork into the given location and returns the absolute path.
core/repositories.go:51
↓ 1 callersFunctionExecBazeliskWithArgsFunc
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 callersFunctionFinish
Finish writes final output after the progress bar is complete.
httputil/progress/progress.go:74
↓ 1 callersFunctionFromEnv
FromEnv returns a Config which gets config values from environment variables.
config/config.go:20
↓ 1 callersFunctionGetBazelInstallation
GetBazelInstallation provides a mechanism to find the `bazel` binary to execute, as well as its version
core/core.go:293
↓ 1 callersFunctionGetBazelVersion
GetBazelVersion returns the Bazel version that should be used.
core/core.go:390
↓ 1 callersMethodGetLTSVersions
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 callersMethodGetLastGreenCommit
GetLastGreenCommit returns the most recent commit at which a Bazel binary is successfully built.
core/repositories.go:58
↓ 1 callersFunctionGetPlatform
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 callersMethodGetRollingVersions
GetRollingVersions returns a list of all available rolling release versions.
core/repositories.go:67
↓ 1 callersMethodGetVersions
GetVersions returns the versions of all available Bazel binaries in the given fork.
core/repositories.go:48
↓ 1 callersFunctionIsCommit
IsCommit returns whether the given version refers to a commit, including last_green.
versions/versions.go:122
↓ 1 callersFunctionLayered
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 callersFunctionLocateUserConfigFile
LocateUserConfigFile locates a .bazeliskrc file in the user's home directory.
config/config.go:79
↓ 1 callersFunctionLocateWorkspaceConfigFile
LocateWorkspaceConfigFile locates a .bazeliskrc file in the current workspace root.
config/config.go:88
↓ 1 callersFunctionMatchCommitPattern
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