MCPcopy Index your code

hub / github.com/bazelbuild/bazelisk / functions

Functions249 in github.com/bazelbuild/bazelisk

↓ 1 callersFunctionMaybeDownload
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 callersMethodNext
()
httputil/fake.go:59
↓ 1 callersFunctionParse
Parse extracts and returns structured information about the given Bazel version label.
versions/versions.go:39
↓ 1 callersFunctionPrettyLabel
PrettyLabel returns a label for the current OS and architecture.
platforms/platforms.go:156
↓ 1 callersFunctionRunBazeliskWithArgsFunc
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 callersFunctionRunBazeliskWithArgsFuncAndConfig
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 callersFunctionRunBazeliskWithArgsFuncAndConfigAndOut
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 callersMethodShowProgress
Writes the current download progress to stdout.
httputil/progress/progress.go:89
↓ 1 callersMethodWithError
()
bazelisk_version_test.go:450
↓ 1 callersFunctionWriter
Writer creates an io.Writer to print the progress.
httputil/progress/progress.go:61
↓ 1 callersFunctionbisect
(oldCommit string, newCommit string, args []string, bazeliskHome string, repos *Repositories, config config.Co
core/core.go:1101
↓ 1 callersFunctioncopyFile
(src, dst string, perm os.FileMode)
core/core.go:655
↓ 1 callersFunctiondecide_which_bazel_version_to_use
()
bazelisk.py:110
↓ 1 callersFunctiondelegate_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 callersFunctiondetermine_bazel_filename
(version)
bazelisk.py:261
↓ 1 callersFunctiondetermine_url
(version, is_commit, bazel_filename)
bazelisk.py:313
↓ 1 callersFunctiondownloadBazelIfNecessary
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 callersFunctiondownloadBazelToCAS
(version string, bazeliskHome string, repos *Repositories, config config.Config, downloader DownloadFunc)
core/core.go:590
↓ 1 callersFunctiondownloadCompletionScriptIfNecessary
(installerURL, version, bazeliskHome, baseURL string, config config.Config)
core/core.go:1398
↓ 1 callersFunctiondownloadInstallerToCAS
(installerURL, bazeliskHome string, config config.Config)
core/core.go:1439
↓ 1 callersFunctiondownload_bazel_into_directory
(version, is_commit, directory)
bazelisk.py:342
↓ 1 callersFunctionexecBazel
(bazel string, args []string, config config.Config)
core/core.go:824
↓ 1 callersFunctionexecute_bazel
(bazel_path, argv)
bazelisk.py:494
↓ 1 callersFunctiongetBazelCommand
(args []string)
core/core.go:342
↓ 1 callersFunctiongetBazelCommitsBetween
(oldCommit string, newCommit string, config config.Config)
core/core.go:1036
↓ 1 callersMethodgetFilteredVersions
(bazeliskHome, bazelFork string, wantPrerelease bool)
repositories/github.go:33
↓ 1 callersFunctiongetIncompatibleFlags
getIncompatibleFlags returns all incompatible flags for the current Bazel command in alphabetical order.
core/core.go:892
↓ 1 callersFunctiongetNativeBinary
()
bazelisk.js:25
↓ 1 callersFunctiongetNextURL
(headers http.Header)
httputil/httputil.go:344
↓ 1 callersFunctiongetTrack
(version string)
repositories/gcs.go:175
↓ 1 callersFunctiongetUserAgent
(config config.Config)
core/core.go:381
↓ 1 callersFunctiongetWaitPeriod
(res *http.Response, err error, attempt int)
httputil/httputil.go:142
↓ 1 callersFunctionget_bazel_path
()
bazelisk.py:508
↓ 1 callersFunctionget_bazelisk_directory
()
bazelisk.py:406
↓ 1 callersFunctionget_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 callersFunctionget_last_green_commit
()
bazelisk.py:182
↓ 1 callersFunctionget_releases_json
Returns the most recent versions of Bazel, in descending order.
bazelisk.py:189
↓ 1 callersFunctionget_supported_machine_archs
(version, operating_system)
bazelisk.py:279
↓ 1 callersFunctionget_version_history
(bazelisk_directory)
bazelisk.py:219
↓ 1 callersFunctionisFork
(value string)
versions/versions.go:91
↓ 1 callersFunctionisValidWorkspace
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 callersFunctionisVersionCommand
(args []string)
core/core.go:260
↓ 1 callersFunctionlinkLocalBazel
(baseDirectory string, bazelPath string)
core/core.go:673
↓ 1 callersFunctionlockedRenameIfDstAbsent
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 callersFunctionmain
(args)
bazelisk.js:55
↓ 1 callersFunctionmain
(argv=None)
bazelisk.py:522
↓ 1 callersFunctionmakeBatchScriptCmd
For .bat files, use cmd.exe and properly escape the command line
core/wrapper_helpers.go:13
↓ 1 callersFunctionmakePowerShellScriptCmd
For .ps1 files, use powershell.exe
core/wrapper_helpers.go:31
↓ 1 callersMethodmatchingVersions
(history []string, opts *core.FilterOpts)
repositories/gcs.go:134
↓ 1 callersFunctionmaybeDelegateToWrapper
(bazel string, config config.Config)
core/core.go:757
↓ 1 callersFunctionmigrate
migrate will run Bazel with each flag separately and report which ones are failing.
core/core.go:1201
↓ 1 callersFunctionnewFakeClock
()
httputil/httputil_test.go:21
↓ 1 callersFunctionparseBazelForkAndVersion
(bazelForkAndVersion string)
core/core.go:460
↓ 1 callersFunctionparseFileConfig
parseFileConfig parses a .bazeliskrc file as a map of key-value configuration values.
config/config.go:50
↓ 1 callersFunctionparseRetryHeader
(value string)
httputil/httputil.go:155
↓ 1 callersFunctionprepend_directory_to_path
Prepend binary directory to PATH
bazelisk.py:467
↓ 1 callersMethodresolveCommit
(bazeliskHome string, vi *versions.Info, config config.Config)
core/repositories.go:158
↓ 1 callersMethodresolveFork
(bazeliskHome string, vi *versions.Info, config config.Config)
core/repositories.go:102
↓ 1 callersMethodresolveLTS
(bazeliskHome string, vi *versions.Info, config config.Config)
core/repositories.go:129
↓ 1 callersMethodresolveRolling
(bazeliskHome string, vi *versions.Info, config config.Config)
core/repositories.go:173
↓ 1 callersFunctionresolve_latest_version
(version_history, offset)
bazelisk.py:234
↓ 1 callersFunctionresolve_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 callersFunctionsendRequest
(url string, config config.Config)
core/core.go:1020
↓ 1 callersFunctionshouldRetry
(res *http.Response, err error)
httputil/httputil.go:133
↓ 1 callersFunctiontransformHeaders
(original map[string]string)
httputil/fake.go:76
↓ 1 callersFunctiontrim_suffix
(string, suffix)
bazelisk.py:335
↓ 1 callersFunctiontryFindNetrcFileCreds
tryFindNetrcFileCreds returns base64-encoded login:password found in ~/.netrc file for a given `host`
httputil/httputil.go:168
MethodDownloadAtCommit
(commit, destDir, destFile string, config config.Config)
core/repositories.go:354
MethodDownloadAtCommit
DownloadAtCommit downloads a Bazel binary built at the given commit into the specified location and returns the absolute path.
repositories/gcs.go:221
MethodDownloadLTS
(version, destDir, destFile string, config config.Config)
core/repositories.go:330
MethodDownloadLTS
DownloadLTS downloads the given Bazel LTS release (candidate) into the specified location and returns the absolute path.
repositories/gcs.go:184
MethodDownloadRolling
(version, destDir, destFile string, config config.Config)
core/repositories.go:366
MethodDownloadRolling
DownloadRolling downloads the given Bazel version into the specified location and returns the absolute path.
repositories/gcs.go:269
MethodDownloadVersion
(fork, version, destDir, destFile string, config config.Config)
core/repositories.go:342
MethodDownloadVersion
DownloadVersion downloads a Bazel binary for the given version and fork to the specified location and returns the absolute path.
repositories/github.go:88
FunctionExecBazelisk
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
MethodGet
(name string)
config/config.go:26
MethodGet
(name string)
config/config.go:45
MethodGet
(name string)
config/config.go:111
MethodGetLTSVersions
(bazeliskHome string, opts *FilterOpts)
core/repositories.go:326
MethodGetLTSVersions
LTSRepo GetLTSVersions returns the versions of all available Bazel releases in this repository that match the given filter.
repositories/gcs.go:34
MethodGetLastGreenCommit
(bazeliskHome string)
core/repositories.go:350
MethodGetLastGreenCommit
CommitRepo GetLastGreenCommit returns the most recent commit at which a Bazel binary is successfully built.
repositories/gcs.go:205
MethodGetRollingVersions
(bazeliskHome string)
core/repositories.go:362
MethodGetRollingVersions
RollingRepo GetRollingVersions returns a list of all available rolling release versions for the newest release.
repositories/gcs.go:234
MethodGetVersions
(bazeliskHome, fork string)
core/repositories.go:338
MethodGetVersions
ForkRepo GetVersions returns the versions of all available Bazel binaries in the given fork.
repositories/github.go:29
MethodNow
()
httputil/httputil_test.go:30
MethodNow
()
httputil/httputil.go:61
MethodRoundTrip
RoundTrip returns a prerecorded response to the given request, if one exists. Otherwise its response indicates 404 - not found.
httputil/fake.go:42
FunctionRunBazelisk
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
MethodSleep
(d time.Duration)
httputil/httputil_test.go:25
MethodSleep
(d time.Duration)
httputil/httputil.go:57
FunctionTestAcceptRollingReleaseName
(t *testing.T)
bazelisk_version_test.go:273
FunctionTestAcceptTrackBasedReleaseVersions
(t *testing.T)
bazelisk_version_test.go:333
FunctionTestAllTriesFail
(t *testing.T)
httputil/httputil_test.go:121
FunctionTestBuildURLFromFormat
(t *testing.T)
core/repositories_test.go:12
FunctionTestCompletionScriptCaching
(t *testing.T)
core/core_test.go:653
FunctionTestConstructInstallerURL
(t *testing.T)
core/core_test.go:356
FunctionTestDarwinFallback
(t *testing.T)
platforms/platforms_test.go:5
← previousnext →101–200 of 249, ranked by callers