Skip to content

Commit

Permalink
Update src/python/pants/backend/go/util_rules/goroot.py
Browse files Browse the repository at this point in the history
Co-authored-by: Huon Wilson <wilson.huon@gmail.com>
  • Loading branch information
SvenW and huonw committed Nov 4, 2024
1 parent 719c291 commit bb2c38b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/python/pants/backend/go/util_rules/goroot.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def is_compatible_version(self, version: str) -> bool:

def major_version(self, version: str) -> str:
_version_components = version.split(".") # e.g. [1, 17] or [1, 17, 1]
major_version = f"{_version_components[0]}.{_version_components[1]}"
major_version = ".".join(_version_components[:2])
return major_version

@property
Expand Down

0 comments on commit bb2c38b

Please sign in to comment.