Skip to content

Conversation

@ayj
Copy link

@ayj ayj commented Dec 23, 2025

Use the module name '@lowrisc_opentitan' instead of '@' when referencing targets in the same workspace. This is the approach recommended by https://bazel.build/external/migration#specify-repo-name and allows manufactoring code (e.g. perso_tlv_data) to be used in downstream repos that use the opentitan repo as a submodule.

Change-Id: I30401894b71a230e3144f9ec564d42a170e3218e

@timothytrippel timothytrippel self-requested a review December 23, 2025 23:08

load("@//rules:manuf.bzl", "device_id_header")
load("@//rules:signing.bzl", "offline_presigning_artifacts", "offline_signature_attach")
load("@lowrisc_opentitan//rules:manuf.bzl", "device_id_header")
Copy link
Contributor

Choose a reason for hiding this comment

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

Why not just //rules:manuf.bzl, i.e. dropping the @ entirely? Unless this file is used outside of the lowRISC repository, it is not necessary to specifiy the repo name.

Copy link
Contributor

Choose a reason for hiding this comment

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

it is used outside this repo.

@timothytrippel
Copy link
Contributor

please fix the lint errors

Use the module name '@lowrisc_opentitan' instead of '@' when referencing
targets in the same workspace. This is the approach recommended by
https://bazel.build/external/migration#specify-repo-name and allows
manufactoring code (e.g. perso_tlv_data) to be used in downstream repos
that use the opentitan repo as a submodule.

Change-Id: I30401894b71a230e3144f9ec564d42a170e3218e
Signed-off-by: Jason Young <[email protected]>
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.

3 participants