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

Function get_gopath

x.py:238–243  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

236
237def golangci_lint(golangci_lint_path: str) -> None:
238 def get_gopath() -> Tuple[Path, Path]:
239 go = find_command('go', msg='go is required for testing')
240 gopath = run_pipe(go, 'env', 'GOPATH').read().strip()
241 bindir = Path(gopath).absolute() / 'bin'
242 binpath = bindir / 'golangci-lint'
243 return bindir, binpath
244
245 def get_syspath(sys_path: str) -> Tuple[str, str]:
246 golangci_command = find_command(sys_path, msg="golangci-lint is required")

Callers 1

golangci_lintFunction · 0.85

Calls 3

find_commandFunction · 0.85
run_pipeFunction · 0.85
readMethod · 0.80

Tested by

no test coverage detected