Skip to content

Commit

Permalink
pkg_managers: gomod: Bump the maximum supported Go version to 1.22
Browse files Browse the repository at this point in the history
This commit introduces just preliminary support of 1.22. More
specifically, we still reject any project relying on workspaces, be it
original workspaces, or vendored workspaces as the feature introduced
by 1.22.

Signed-off-by: Erik Skultety <eskultet@redhat.com>
  • Loading branch information
eskultety committed Jun 3, 2024
1 parent 17ddbf1 commit fe18efa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cachito/workers/pkg_managers/gomod.py
Original file line number Diff line number Diff line change
Expand Up @@ -1077,7 +1077,7 @@ def _get_gomod_version(go_mod_file: Path) -> Tuple[Optional[str], Optional[str]]
def _select_go_toolchain(go_mod_file: Path) -> Go:
go = Go()
target_version = None
go_max_version = pkgver.Version("1.21")
go_max_version = pkgver.Version("1.22")
go_121_version = pkgver.Version("1.21")
go_base_version = go.version
go_mod_version_msg = "go.mod reported versions: '{}'[go], '{}'[toolchain]"
Expand Down

0 comments on commit fe18efa

Please sign in to comment.