Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Apple Silicon chips #97

Open
dplaton opened this issue Jun 22, 2022 · 0 comments
Open

Support Apple Silicon chips #97

dplaton opened this issue Jun 22, 2022 · 0 comments

Comments

@dplaton
Copy link

dplaton commented Jun 22, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant