diff --git a/gohere.py b/gohere.py index 9fe3413..5a21f7f 100755 --- a/gohere.py +++ b/gohere.py @@ -228,8 +228,10 @@ } BOOTSTRAP_VERSION = '1.4-bootstrap-20171003' BOOTSTRAP_VERSION_1_17_13 = '1.17.13' +BOOTSTRAP_VERSION_1_20_14 = '1.20.14' MIN_VERSION_BUILT_WITH_GO = '1.5' MIN_VERSION_BUILT_WITH_GO_1_17_13 = '1.20' +MIN_VERSION_BUILT_WITH_GO_1_20_14 = '1.22' RELOCATION_TYPE_42_VERSIONS = ('1.4.1', '1.4.2', '1.4.3') MIN_VERSION_WITHOUT_INCLUDE = '1.5' MIN_VERSION_GOENV_REQUIRED = '1.21.0' @@ -542,6 +544,8 @@ def version_tuple(version): return tuple(map(int, (version.split('.')))) def is_build_with_go(version): + if version_tuple(version) >= version_tuple(MIN_VERSION_BUILT_WITH_GO_1_20_14): + return BOOTSTRAP_VERSION_1_20_14 if version_tuple(version) >= version_tuple(MIN_VERSION_BUILT_WITH_GO_1_17_13): return BOOTSTRAP_VERSION_1_17_13 if version_tuple(version) >= version_tuple(MIN_VERSION_BUILT_WITH_GO):