Skip to content

fix: remove non-root overrides from MODULE.bazel#4157

Closed
oharboe wants to merge 1 commit intoThe-OpenROAD-Project:masterfrom
oharboe:cleanup
Closed

fix: remove non-root overrides from MODULE.bazel#4157
oharboe wants to merge 1 commit intoThe-OpenROAD-Project:masterfrom
oharboe:cleanup

Conversation

@oharboe
Copy link
Copy Markdown
Collaborator

@oharboe oharboe commented Apr 17, 2026

When ORFS is fetched as a non-root dependency, git_override and orfs.default() directives are ignored/illegal. Remove them so the module can be used as a dependency without errors.

When ORFS is fetched as a non-root dependency, git_override and
orfs.default() directives are ignored/illegal.  Remove them so
the module can be used as a dependency without errors.

Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
@oharboe oharboe requested a review from maliberty April 17, 2026 15:21
@maliberty
Copy link
Copy Markdown
Member

what replaces To bump version, run: bazelisk run @bazel-orfs//:bump ?

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request removes the git override and default configuration for the bazel-orfs dependency in MODULE.bazel. Feedback indicates that removing the git override requires adding a version to the bazel_dep declaration to ensure proper resolution. Additionally, the removal of use_repo calls for the orfs extension will likely cause build failures as those repositories will no longer be visible to the module.

Comment thread MODULE.bazel
@@ -7,13 +7,6 @@ module(

bazel_dep(name = "bazel-orfs")
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

The bazel_dep for bazel-orfs is missing a version. Since the git_override is being removed, a version must be specified so that Bazel can resolve the dependency via a registry. Without a version, this module will fail to load when used as a dependency by other projects.

Suggested change
bazel_dep(name = "bazel-orfs")
bazel_dep(name = "bazel-orfs", version = "0.0.1")

Comment thread MODULE.bazel
@@ -32,15 +25,3 @@ pip.parse(
use_repo(pip, "orfs-pip")

orfs = use_extension("@bazel-orfs//:extension.bzl", "orfs_repositories")
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

The use_repo calls for com_github_nixos_patchelf_download and docker_orfs were removed, but they are likely still required. While the orfs.default() configuration tag might be restricted to the root module (depending on the extension's implementation), use_repo is the mechanism that makes the extension's repositories visible to this module. Removing these will cause build failures for any targets in this module that reference these repositories.

Suggested change
orfs = use_extension("@bazel-orfs//:extension.bzl", "orfs_repositories")
orfs = use_extension("@bazel-orfs//:extension.bzl", "orfs_repositories")
use_repo(orfs, "com_github_nixos_patchelf_download")
use_repo(orfs, "docker_orfs")

@oharboe
Copy link
Copy Markdown
Collaborator Author

oharboe commented Apr 17, 2026

ugh. Leave be for now. There's some boot strapping problem here I need to clean up with ORFS being a bazel project and also used to get to scripts+pdk.

@oharboe oharboe closed this Apr 17, 2026
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

Successfully merging this pull request may close these issues.

2 participants