Skip to content

Commit

Permalink
Merge pull request #2144 from SUSE/golang-limit-version-to-three-digits
Browse files Browse the repository at this point in the history
Limit the go version to three components
  • Loading branch information
dirkmueller authored Dec 20, 2024
2 parents aa2f676 + cddb682 commit 3107b7f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/bci_build/package/golang.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
from bci_build.package import DOCKERFILE_RUN
from bci_build.package import LOG_CLEAN
from bci_build.package import DevelopmentContainer
from bci_build.package import ParseVersion
from bci_build.package import Replacement
from bci_build.package import generate_disk_size_constraints

Expand Down Expand Up @@ -57,7 +58,9 @@ def _get_golang_kwargs(
},
"replacements_via_service": [
Replacement(
regex_in_build_description=golang_version_regex, package_name=go
regex_in_build_description=golang_version_regex,
package_name=go,
parse_version=ParseVersion.PATCH,
)
],
"custom_end": textwrap.dedent(
Expand Down

0 comments on commit 3107b7f

Please sign in to comment.