bazel-contrib / bazel-contrib/rules_foreign_cc

Call to build toolchains (rules_foreign_cc_dependencies()) is not working

Open
#1,225 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Starlark
Stars
737
Forks
270
PR merge metrics
No merged PRs in 30d

Description

Hello,

I don't have a repo to reference. This is a problem I am experiencing with the source code at my job. I am migrating the github dependencies to our personal repo. This just involved downloading the packages from github and adding them to out repo. Then, referencing the link in the source. Json.

I am experiencing a build error when calling rules_foreign_cc_dependencies(). It is apparently trying to build toolchains from github, but my system does not have access to github (i.e. it does not have internet connectivity) so it is failing. I need a work-around for this.

How can I manually/automatically include all of the toolchain dependencies built by rules_foreign_cc_dependencies()? What are the dependencies? Where can I download/include them in my WORKSPACE/BUILD files?

Contributor guide

Open the contributing guide

Research direction

Start at the rules_foreign_cc_dependencies() entry point and review how its dependencies are referenced from WORKSPACE and BUILD files. Reproduce the offline build failure in an environment without GitHub access, then identify the complete dependency set and verify that an offline configuration can include it without fetching from GitHub.

Written by the indexing model from the issue text.

Assessment

Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.