Skip to content

Conversation

@jwnrt
Copy link
Contributor

@jwnrt jwnrt commented Dec 19, 2024

  1. Remove two unused dependencies from WORKSPACE.bzlmod.
    • that should have been dropped in previous PRs but were missed.
  2. Fix #include "external/..." paths to included directories in linker scripts.
    • These paths were never stable and have now changed with bzlmod enabled.
    • Directories are now added to the search path for includes.
  3. Make _repos() functions private, run them from extensions, and extract repos.
  4. Move patch files into patches subdirectories to match existing third_party convention.
  5. Remove now-unused http_archive_or_local rule.
    • This is now implemented in bzlmod using override_repo and inject_repo.

@jwnrt jwnrt requested a review from cfrantz as a code owner December 19, 2024 16:20
@jwnrt jwnrt marked this pull request as draft December 19, 2024 16:20
@jwnrt jwnrt force-pushed the bzlmod-misc-repos branch 3 times, most recently from b3481bd to a5c4ee5 Compare December 19, 2024 17:00
@jwnrt jwnrt requested review from nbdd0121 and pamaury December 19, 2024 17:15
@jwnrt jwnrt marked this pull request as ready for review December 19, 2024 17:16
@jwnrt jwnrt requested a review from a team as a code owner December 19, 2024 17:16
@jwnrt jwnrt mentioned this pull request Dec 19, 2024
17 tasks
@moidx moidx removed the request for review from a team December 20, 2024 00:58
@jwnrt jwnrt force-pushed the bzlmod-misc-repos branch from a5c4ee5 to 37da460 Compare January 2, 2025 14:16
@jwnrt jwnrt requested a review from rswarbrick as a code owner January 2, 2025 14:16
@jwnrt jwnrt removed the request for review from rswarbrick January 2, 2025 14:16
@jwnrt jwnrt force-pushed the bzlmod-misc-repos branch from 37da460 to 58367c5 Compare January 2, 2025 15:33
@jwnrt jwnrt force-pushed the bzlmod-misc-repos branch from 58367c5 to babc171 Compare January 3, 2025 14:03
@jwnrt jwnrt requested a review from pamaury January 3, 2025 14:03
jwnrt added 7 commits January 3, 2025 14:20
The verible syntax python file here is used directly within our Bazel
repository, not through its own repository. Removed.

The `lowrisc_misc_linters` repository should have been removed when it
was migrated to Bzlmod.

Signed-off-by: James Wainwright <[email protected]>
This was a transitive dependency of Buildifier that should have been
removed when that was migrated to Bzlmod.

Signed-off-by: James Wainwright <[email protected]>
These paths are not stable and should not be hard coded. Files must
use the path relative to `includes = [...]` parameters added to
`cc_library` rules. These paths change under bzlmod.

Signed-off-by: James Wainwright <[email protected]>
These repositories are not Bazel-aware, we're only using them for their
sources. Each dependency's `_repos()` function is made private and run
from a bzlmod extension which is called from `MODULE.bazel` and the
repositories are brought into the module's namespace.

Signed-off-by: James Wainwright <[email protected]>
This matches the convention of other third party packages with patches.

Signed-off-by: James Wainwright <[email protected]>
This is no longer used / usable with Bzlmod. Use `override_repo` in the
`MODULE.bazel` instead.

Signed-off-by: James Wainwright <[email protected]>
This functionality is now implemented directly in bzlmod using the
`override_repo` and `inject_repo` functions in `MODULE.bazel`.

Signed-off-by: James Wainwright <[email protected]>
@jwnrt jwnrt force-pushed the bzlmod-misc-repos branch from babc171 to 1b61e88 Compare January 3, 2025 14:28
@jwnrt jwnrt merged commit 07f5af4 into lowRISC:master Jan 3, 2025
38 checks passed
@jwnrt jwnrt deleted the bzlmod-misc-repos branch January 3, 2025 20:28
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