Skip to content

Commit

Permalink
fix for 1.22. Go 1.22 requires Go 1.20.6+
Browse files Browse the repository at this point in the history
  • Loading branch information
starius committed Feb 6, 2024
1 parent 932cd5f commit 8e9b509
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions gohere.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit 8e9b509

Please sign in to comment.