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
↓ 1 callers
Function
MaybeDownload
MaybeDownload downloads a file from the given url and caches the result under bazeliskHome. It skips the download if the file already exists and is no
httputil/httputil.go:307
↓ 1 callers
Method
Next
()
httputil/fake.go:59
↓ 1 callers
Function
Parse
Parse extracts and returns structured information about the given Bazel version label.
versions/versions.go:39
↓ 1 callers
Function
PrettyLabel
PrettyLabel returns a label for the current OS and architecture.
platforms/platforms.go:156
↓ 1 callers
Function
RunBazeliskWithArgsFunc
RunBazeliskWithArgsFunc runs the main Bazelisk logic for the given ArgsFunc and Bazel repositories. This will run Bazel in a subprocess and return it
core/core.go:92
↓ 1 callers
Function
RunBazeliskWithArgsFuncAndConfig
RunBazeliskWithArgsFuncAndConfig runs the main Bazelisk logic for the given ArgsFunc and Bazel repositories and config. This will run Bazel in a subp
core/core.go:100
↓ 1 callers
Function
RunBazeliskWithArgsFuncAndConfigAndOut
RunBazeliskWithArgsFuncAndConfigAndOut runs the main Bazelisk logic for the given ArgsFunc and Bazel repositories and config, writing its stdout to th
core/core.go:108
↓ 1 callers
Method
ShowProgress
Writes the current download progress to stdout.
httputil/progress/progress.go:89
↓ 1 callers
Method
WithError
()
bazelisk_version_test.go:450
↓ 1 callers
Function
Writer
Writer creates an io.Writer to print the progress.
httputil/progress/progress.go:61
↓ 1 callers
Function
bisect
(oldCommit string, newCommit string, args []string, bazeliskHome string, repos *Repositories, config config.Co
core/core.go:1101
↓ 1 callers
Function
copyFile
(src, dst string, perm os.FileMode)
core/core.go:655
↓ 1 callers
Function
decide_which_bazel_version_to_use
()
bazelisk.py:110
↓ 1 callers
Function
delegate_tools_bazel
Match Bazel's own delegation behavior in the builds distributed by most package managers: use tools/bazel if it's present, executable, and not thi
bazelisk.py:448
↓ 1 callers
Function
determine_bazel_filename
(version)
bazelisk.py:261
↓ 1 callers
Function
determine_url
(version, is_commit, bazel_filename)
bazelisk.py:313
↓ 1 callers
Function
downloadBazelIfNecessary
downloadBazelIfNecessary returns a path to a bazel which can be run, which may have been cached. The directory it returns may depend on version and ba
core/core.go:505
↓ 1 callers
Function
downloadBazelToCAS
(version string, bazeliskHome string, repos *Repositories, config config.Config, downloader DownloadFunc)
core/core.go:590
↓ 1 callers
Function
downloadCompletionScriptIfNecessary
(installerURL, version, bazeliskHome, baseURL string, config config.Config)
core/core.go:1398
↓ 1 callers
Function
downloadInstallerToCAS
(installerURL, bazeliskHome string, config config.Config)
core/core.go:1439
↓ 1 callers
Function
download_bazel_into_directory
(version, is_commit, directory)
bazelisk.py:342
↓ 1 callers
Function
execBazel
(bazel string, args []string, config config.Config)
core/core.go:824
↓ 1 callers
Function
execute_bazel
(bazel_path, argv)
bazelisk.py:494
↓ 1 callers
Function
getBazelCommand
(args []string)
core/core.go:342
↓ 1 callers
Function
getBazelCommitsBetween
(oldCommit string, newCommit string, config config.Config)
core/core.go:1036
↓ 1 callers
Method
getFilteredVersions
(bazeliskHome, bazelFork string, wantPrerelease bool)
repositories/github.go:33
↓ 1 callers
Function
getIncompatibleFlags
getIncompatibleFlags returns all incompatible flags for the current Bazel command in alphabetical order.
core/core.go:892
↓ 1 callers
Function
getNativeBinary
()
bazelisk.js:25
↓ 1 callers
Function
getNextURL
(headers http.Header)
httputil/httputil.go:344
↓ 1 callers
Function
getTrack
(version string)
repositories/gcs.go:175
↓ 1 callers
Function
getUserAgent
(config config.Config)
core/core.go:381
↓ 1 callers
Function
getWaitPeriod
(res *http.Response, err error, attempt int)
httputil/httputil.go:142
↓ 1 callers
Function
get_bazel_path
()
bazelisk.py:508
↓ 1 callers
Function
get_bazelisk_directory
()
bazelisk.py:406
↓ 1 callers
Function
get_dotfiles_dict
Loads all supported dotfiles and returns a unified name=value dictionary for their config settings. The dictionary is only loaded on the first cal
bazelisk.py:68
↓ 1 callers
Function
get_last_green_commit
()
bazelisk.py:182
↓ 1 callers
Function
get_releases_json
Returns the most recent versions of Bazel, in descending order.
bazelisk.py:189
↓ 1 callers
Function
get_supported_machine_archs
(version, operating_system)
bazelisk.py:279
↓ 1 callers
Function
get_version_history
(bazelisk_directory)
bazelisk.py:219
↓ 1 callers
Function
isFork
(value string)
versions/versions.go:91
↓ 1 callers
Function
isValidWorkspace
isValidWorkspace returns true if the supplied path is the workspace root, defined by the presence of a file named MODULE.bazel, REPO.bazel, WORKSPACE.
ws/ws.go:28
↓ 1 callers
Function
isVersionCommand
(args []string)
core/core.go:260
↓ 1 callers
Function
linkLocalBazel
(baseDirectory string, bazelPath string)
core/core.go:673
↓ 1 callers
Function
lockedRenameIfDstAbsent
lockedRenameIfDstAbsent executes os.Rename under file lock to avoid issues of multiple bazelisk processes renaming file to the same destination file.
core/core.go:565
↓ 1 callers
Function
main
(args)
bazelisk.js:55
↓ 1 callers
Function
main
(argv=None)
bazelisk.py:522
↓ 1 callers
Function
makeBatchScriptCmd
For .bat files, use cmd.exe and properly escape the command line
core/wrapper_helpers.go:13
↓ 1 callers
Function
makePowerShellScriptCmd
For .ps1 files, use powershell.exe
core/wrapper_helpers.go:31
↓ 1 callers
Method
matchingVersions
(history []string, opts *core.FilterOpts)
repositories/gcs.go:134
↓ 1 callers
Function
maybeDelegateToWrapper
(bazel string, config config.Config)
core/core.go:757
↓ 1 callers
Function
migrate
migrate will run Bazel with each flag separately and report which ones are failing.
core/core.go:1201
↓ 1 callers
Function
newFakeClock
()
httputil/httputil_test.go:21
↓ 1 callers
Function
parseBazelForkAndVersion
(bazelForkAndVersion string)
core/core.go:460
↓ 1 callers
Function
parseFileConfig
parseFileConfig parses a .bazeliskrc file as a map of key-value configuration values.
config/config.go:50
↓ 1 callers
Function
parseRetryHeader
(value string)
httputil/httputil.go:155
↓ 1 callers
Function
prepend_directory_to_path
Prepend binary directory to PATH
bazelisk.py:467
↓ 1 callers
Method
resolveCommit
(bazeliskHome string, vi *versions.Info, config config.Config)
core/repositories.go:158
↓ 1 callers
Method
resolveFork
(bazeliskHome string, vi *versions.Info, config config.Config)
core/repositories.go:102
↓ 1 callers
Method
resolveLTS
(bazeliskHome string, vi *versions.Info, config config.Config)
core/repositories.go:129
↓ 1 callers
Method
resolveRolling
(bazeliskHome string, vi *versions.Info, config config.Config)
core/repositories.go:173
↓ 1 callers
Function
resolve_latest_version
(version_history, offset)
bazelisk.py:234
↓ 1 callers
Function
resolve_version_label_to_number_or_commit
Resolves the given label to a released version of Bazel or a commit. Args: bazelisk_directory: string; path to a directory that can store
bazelisk.py:149
↓ 1 callers
Function
sendRequest
(url string, config config.Config)
core/core.go:1020
↓ 1 callers
Function
shouldRetry
(res *http.Response, err error)
httputil/httputil.go:133
↓ 1 callers
Function
transformHeaders
(original map[string]string)
httputil/fake.go:76
↓ 1 callers
Function
trim_suffix
(string, suffix)
bazelisk.py:335
↓ 1 callers
Function
tryFindNetrcFileCreds
tryFindNetrcFileCreds returns base64-encoded login:password found in ~/.netrc file for a given `host`
httputil/httputil.go:168
Method
DownloadAtCommit
(commit, destDir, destFile string, config config.Config)
core/repositories.go:354
Method
DownloadAtCommit
DownloadAtCommit downloads a Bazel binary built at the given commit into the specified location and returns the absolute path.
repositories/gcs.go:221
Method
DownloadLTS
(version, destDir, destFile string, config config.Config)
core/repositories.go:330
Method
DownloadLTS
DownloadLTS downloads the given Bazel LTS release (candidate) into the specified location and returns the absolute path.
repositories/gcs.go:184
Method
DownloadRolling
(version, destDir, destFile string, config config.Config)
core/repositories.go:366
Method
DownloadRolling
DownloadRolling downloads the given Bazel version into the specified location and returns the absolute path.
repositories/gcs.go:269
Method
DownloadVersion
(fork, version, destDir, destFile string, config config.Config)
core/repositories.go:342
Method
DownloadVersion
DownloadVersion downloads a Bazel binary for the given version and fork to the specified location and returns the absolute path.
repositories/github.go:88
Function
ExecBazelisk
ExecBazelisk runs the main Bazelisk logic for the given arguments and Bazel repositories. If possible (i.e. on non-Windows platforms), this will repl
core/core.go:125
Method
Get
(name string)
config/config.go:26
Method
Get
(name string)
config/config.go:45
Method
Get
(name string)
config/config.go:111
Method
GetLTSVersions
(bazeliskHome string, opts *FilterOpts)
core/repositories.go:326
Method
GetLTSVersions
LTSRepo GetLTSVersions returns the versions of all available Bazel releases in this repository that match the given filter.
repositories/gcs.go:34
Method
GetLastGreenCommit
(bazeliskHome string)
core/repositories.go:350
Method
GetLastGreenCommit
CommitRepo GetLastGreenCommit returns the most recent commit at which a Bazel binary is successfully built.
repositories/gcs.go:205
Method
GetRollingVersions
(bazeliskHome string)
core/repositories.go:362
Method
GetRollingVersions
RollingRepo GetRollingVersions returns a list of all available rolling release versions for the newest release.
repositories/gcs.go:234
Method
GetVersions
(bazeliskHome, fork string)
core/repositories.go:338
Method
GetVersions
ForkRepo GetVersions returns the versions of all available Bazel binaries in the given fork.
repositories/github.go:29
Method
Now
()
httputil/httputil_test.go:30
Method
Now
()
httputil/httputil.go:61
Method
RoundTrip
RoundTrip returns a prerecorded response to the given request, if one exists. Otherwise its response indicates 404 - not found.
httputil/fake.go:42
Function
RunBazelisk
RunBazelisk runs the main Bazelisk logic for the given arguments and Bazel repositories. This will run Bazel in a subprocess and return its exit code
core/core.go:84
Method
Sleep
(d time.Duration)
httputil/httputil_test.go:25
Method
Sleep
(d time.Duration)
httputil/httputil.go:57
Function
TestAcceptRollingReleaseName
(t *testing.T)
bazelisk_version_test.go:273
Function
TestAcceptTrackBasedReleaseVersions
(t *testing.T)
bazelisk_version_test.go:333
Function
TestAllTriesFail
(t *testing.T)
httputil/httputil_test.go:121
Function
TestBuildURLFromFormat
(t *testing.T)
core/repositories_test.go:12
Function
TestCompletionScriptCaching
(t *testing.T)
core/core_test.go:653
Function
TestConstructInstallerURL
(t *testing.T)
core/core_test.go:356
Function
TestDarwinFallback
(t *testing.T)
platforms/platforms_test.go:5
← previous
next →
101–200 of 249, ranked by callers