Skip to content
This repository has been archived by the owner on Feb 6, 2024. It is now read-only.

Commit

Permalink
Merge pull request #708 from fejta/common
Browse files Browse the repository at this point in the history
Make go_version an argument to deps()
  • Loading branch information
fejta authored Jun 16, 2022
2 parents 8d24cac + f13e42c commit 6323c19
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions k8s/k8s_go_deps.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,15 @@ load(
)
load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies")

def deps():
def deps(go_version = "1.18.3"):
"""Import dependencies for Go binaries in rules_k8s.
This macro assumes k8s_repositories in //k8s:k8s.bzl has been called
already.
"""
go_rules_dependencies()
go_register_toolchains("1.18.3")
if go_version:
go_register_toolchains(go_version)
gazelle_dependencies()
rules_docker_repositories()
rules_docker_go_deps()
Expand Down

0 comments on commit 6323c19

Please sign in to comment.