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

feat(IDX): enable bzlmod #1959

Merged
merged 7 commits into from
Oct 10, 2024
Merged

feat(IDX): enable bzlmod #1959

merged 7 commits into from
Oct 10, 2024

Conversation

nmattia
Copy link
Contributor

@nmattia nmattia commented Oct 10, 2024

This turns on Bazel modules and moves some of our (Bazel) dependency declarations to MODULE.bazel. This means those dependencies are specified declaratively and not imperatively as was the case in the WORKSPACE. This also allows us to update some dependencies, like rules_python, which previously created conflicts in transitive dependencies.

Some dependencies were also replaced (rules_gazelle -> gazelle).

This also adds a new workflow that ensures the Bazel lockfile, MODULE.bazel.lock, is up to date on all the platforms we support (Apple Intel, Apple Silicon, Linux x86). See workflow file for logic and details.

This turns on [Bazel modules](https://bazel.build/external/module) and
moves some of our (Bazel) dependency declarations to `MODULE.bazel`.
This means those dependencies are specified declaratively and not
imperatively as was the case in the `WORKSPACE`. This also allows us to
update some dependencies, like `rules_python`, which previously created
conflicts in transitive dependencies.

Some dependencies were also replaced (`rules_gazelle` -> `gazelle`).

This also adds a new workflow that ensures the Bazel lockfile,
`MODULE.bazel.lock`, is up to date on all the platforms we support
(Apple Intel, Apple Silicon, Linux x86). See workflow file for logic and
details.
BUILD.bazel Show resolved Hide resolved
@nmattia nmattia force-pushed the nm-bzlmod-lockfile branch from 27eaf6f to 32f4551 Compare October 10, 2024 12:19
@nmattia nmattia force-pushed the nm-bzlmod-lockfile branch from 32f4551 to 78cfb1a Compare October 10, 2024 12:33
@nmattia nmattia requested a review from a team as a code owner October 10, 2024 12:33
Co-authored-by: Marko Kosmerl <marko.kosmerl@dfinity.org>
Copy link
Collaborator

@basvandijk basvandijk left a comment

Choose a reason for hiding this comment

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

Nice! Just a heads-up that #1946 also modifies WORKSPACE.bazel so whoever merges last should make sure the right ubuntu_base is being used.

nmattia and others added 3 commits October 10, 2024 16:03
Co-authored-by: Marko Kosmerl <marko.kosmerl@dfinity.org>
Copy link
Member

@oggy-dfin oggy-dfin left a comment

Choose a reason for hiding this comment

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

The formal models related changes LGTM

Co-authored-by: Marko Kosmerl <marko.kosmerl@dfinity.org>
@nmattia nmattia enabled auto-merge October 10, 2024 14:57
@nmattia nmattia added this pull request to the merge queue Oct 10, 2024
Merged via the queue into master with commit 292b462 Oct 10, 2024
29 of 30 checks passed
@nmattia nmattia deleted the nm-bzlmod-lockfile branch October 10, 2024 15:40
basvandijk added a commit that referenced this pull request Oct 10, 2024
github-merge-queue bot pushed a commit that referenced this pull request Oct 10, 2024
Test broken after #1959
Fix redfish dependency after #1959
Full context:
https://dfinity.slack.com/archives/C026JQ1B2AF/p1728578113038139

---------

Co-authored-by: IDX GitHub Automation <IDX GitHub Automation>
marko-k0 pushed a commit that referenced this pull request Oct 11, 2024
Test broken after #1959
Fix redfish dependency after #1959
Full context:
https://dfinity.slack.com/archives/C026JQ1B2AF/p1728578113038139

---------

Co-authored-by: IDX GitHub Automation <IDX GitHub Automation>
nikolay-komarevskiy pushed a commit that referenced this pull request Oct 11, 2024
This turns on [Bazel modules](https://bazel.build/external/module) and
moves some of our (Bazel) dependency declarations to `MODULE.bazel`.
This means those dependencies are specified declaratively and not
imperatively as was the case in the `WORKSPACE`. This also allows us to
update some dependencies, like `rules_python`, which previously created
conflicts in transitive dependencies.

Some dependencies were also replaced (`rules_gazelle` -> `gazelle`).

This also adds a new workflow that ensures the Bazel lockfile,
`MODULE.bazel.lock`, is up to date on all the platforms we support
(Apple Intel, Apple Silicon, Linux x86). See workflow file for logic and
details.

---------

Co-authored-by: Marko Kosmerl <marko.kosmerl@dfinity.org>
nikolay-komarevskiy pushed a commit that referenced this pull request Oct 11, 2024
Test broken after #1959
Fix redfish dependency after #1959
Full context:
https://dfinity.slack.com/archives/C026JQ1B2AF/p1728578113038139

---------

Co-authored-by: IDX GitHub Automation <IDX GitHub Automation>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants