mirror of
https://github.com/kovidgoyal/kitty.git
synced 2024-11-14 12:11:12 +03:00
Merge branch 'fix-go-version-check' of https://github.com/Maytha8/kitty
This commit is contained in:
commit
c7d894d499
2
setup.py
2
setup.py
@ -971,7 +971,7 @@ def build_static_kittens(
|
||||
go = shutil.which('go')
|
||||
if not go:
|
||||
raise SystemExit('The go tool was not found on this system. Install Go')
|
||||
required_go_version = subprocess.check_output([go] + 'list -f {{.GoVersion}} -m'.split()).decode().strip()
|
||||
required_go_version = subprocess.check_output([go] + 'list -f {{.GoVersion}} -m'.split(), env=dict(os.environ, GO111MODULE="on")).decode().strip()
|
||||
current_go_version = subprocess.check_output([go, 'version']).decode().strip().split()[2][2:]
|
||||
if parse_go_version(required_go_version) > parse_go_version(current_go_version):
|
||||
raise SystemExit(f'The version of go on this system ({current_go_version}) is too old. go >= {required_go_version} is needed')
|
||||
|
Loading…
Reference in New Issue
Block a user