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

chore(deps): Migrate to bzl mod dependencies #61

Merged
merged 2 commits into from
Apr 11, 2024

Conversation

mrmeku
Copy link
Contributor

@mrmeku mrmeku commented Mar 18, 2024

TODO: Augment the release note generation to reference the new bzlmod setup.


Type of change

  • Refactor (a code change that neither fixes a bug or adds a new feature)

For changes visible to end-users

  • Relevant documentation has been updated

Test plan

  • Covered by existing test cases

@mrmeku mrmeku force-pushed the bzl_mod branch 5 times, most recently from ccfd06b to 9636f92 Compare March 18, 2024 02:37
@mrmeku mrmeku marked this pull request as ready for review March 18, 2024 02:39
.aspect/bazelrc/BUILD.bazel Outdated Show resolved Hide resolved
#
# Note that you should also run integration_tests against other Bazel
# versions you support.
7.1.0
Copy link
Member

Choose a reason for hiding this comment

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

Did version 7 with --enable_bzlmod=false cause any issues that can be fixed+merged on their own before enabling bzlmod?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'd prefer not to. There are errors since I'm using rules that aren't bazel 7 compatible (the version of rules_js is quite old). I'd prefer to update the deps once rather than twice if that's okay

MODULE.bazel Outdated Show resolved Hide resolved
e2e/workspace/BUILD Outdated Show resolved Hide resolved
Move all tests to the e2e directory so that they
properly test the bzl_mod setup.
@@ -13,3 +13,15 @@ build --reuse_sandbox_directories
# Avoid this flag being enabled by remote_download_minimal or remote_download_toplevel
# See https://meroton.com/blog/bazel-6-errors-build-without-the-bytes/
build --noexperimental_action_cache_store_output_metadata

Copy link
Member

Choose a reason for hiding this comment

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

Were these caused by bzlmod using a newer version of aspect_bazel_lib then what we had declared in WORKSPACE? Now bzlmod takes the latest declared dep instead of the first declared...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yep, you nailed it

@mrmeku mrmeku merged commit cf5ed54 into aspect-build:main Apr 11, 2024
5 checks passed
gregmagolan added a commit that referenced this pull request Apr 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants