Skip to content

Support Apple Silicon chips #97

Open
@dplaton

Description

@dplaton

Description of the problem / feature request:

Running the bazel test //... command for this repo on a macOS running on Apple M1 throws the following error:

ERROR: While resolving toolchains for target //vendor/github.com/davecgh/go-spew/spew:go_default_library: no matching toolchains found for types @io_bazel_rules_go//go:toolchain
ERROR: Analysis of target '//vendor/github.com/davecgh/go-spew/spew:go_default_library' failed; build aborted: no matching toolchains found for types @io_bazel_rules_go//go:toolchain

Feature requests: what underlying problem are you trying to solve with this feature?

Use rules_gitops on Apple M1-equipped laptops.

Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.

Prerequisites: an Apple laptop with Apple M1 chip.

  1. Clone this repository
  2. Run bazel test //...

What operating system are you running Bazel on?

macOS Monterey

What's the output of bazel info release?

release 4.2.1

If bazel info release returns "development version" or "(@Non-Git)", tell us how you built Bazel.

N/A

Snippet of the WORKSPACE file that includes rules_gitops rules.

http_archive(
    name = "com_adobe_rules_gitops",
    sha256 = rules_gitops_sha256,
    strip_prefix = "rules_gitops-%s" % rules_gitops_version,
    urls = [
        # This is the main fork, hosted in github
        "https://github.com/adobe/rules_gitops/archive/%s.zip" % rules_gitops_version,

        # Experiment only
        "https://github.com/jinfwhuang/rules_gitops/archive/%s.zip" % rules_gitops_version,
    ],

Have you found anything relevant by searching the web?

I found this issue](bazel-contrib/rules_go#2795) filed for rules_go back in 2021. Basically, rules_go needs to be updated to 0.29 (this project currently uses 0.23)

Any other information, logs, or outputs that you want to share?

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions