MCPcopy Create free account
hub / github.com/apache/kvrocks / download_package

Function download_package

x.py:255–259  ·  view source on GitHub ↗
(bindir: str)

Source from the content-addressed store, hash-verified

253 return golangci_command, version_str
254
255 def download_package(bindir: str) -> None:
256 output = run_pipe('curl', '-sfL', 'https://golangci-lint.run/install.sh',
257 verbose=True)
258 version_str = 'v' + '.'.join(map(str, GOLANGCI_LINT_REQUIRED_VERSION))
259 run('sh', '-s', '--', '-b', bindir, version_str, verbose=True, stdin=output)
260
261 if which(golangci_lint_path) is None:
262 bindir, binpath = get_gopath()

Callers 1

golangci_lintFunction · 0.85

Calls 2

run_pipeFunction · 0.85
runFunction · 0.85

Tested by

no test coverage detected