Skip to content

Commit

Permalink
add arm support
Browse files Browse the repository at this point in the history
  • Loading branch information
slamdev committed Feb 6, 2022
1 parent cee4587 commit b6f53d4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 2 additions & 2 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ load("//kubedog:repositories.bzl", "kubedog_register_toolchains", "rules_kubedog
rules_kubedog_dependencies()

kubedog_register_toolchains(
name = "kubedog0_6_1",
kubedog_version = "0.6.1",
name = "kubedog0_6_2",
kubedog_version = "0.6.2",
)

############################################
Expand Down
6 changes: 6 additions & 0 deletions kubedog/private/toolchains_repo.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ PLATFORMS = {
"@platforms//cpu:x86_64",
],
),
"darwin-arm64": struct(
compatible_with = [
"@platforms//os:macos",
"@platforms//cpu:arm64",
],
),
"linux-amd64": struct(
compatible_with = [
"@platforms//os:linux",
Expand Down
2 changes: 1 addition & 1 deletion kubedog/toolchain.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def _kubedog_toolchain_impl(ctx):
template_variables = platform_common.TemplateVariableInfo({
"KUBEDOG_BIN": target_tool_path,
# Variable to use with disabled legacy_external_runfiles
"KUBEDOG_RUNFILES_BIN": target_tool_path.replace("external/", "../", 1)
"KUBEDOG_RUNFILES_BIN": target_tool_path.replace("external/", "../", 1),
})
default = DefaultInfo(
files = depset(tool_files),
Expand Down

0 comments on commit b6f53d4

Please sign in to comment.