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: bzlmod setup #385

Merged
merged 4 commits into from
Aug 30, 2022
Merged

feat: bzlmod setup #385

merged 4 commits into from
Aug 30, 2022

Conversation

nickgooding
Copy link
Contributor

Creates MODULE.bazel and WORKSPACE.bzlmod files to enable bazel-skylib
to work with the --experimental_enable_bzlmod flag.

rules_go has been updated as the previously used version is not
available in the BCR.

stardoc has been updated due to a strange issue with Bzlmod enabled that
caused the diff_test and unittest docs to be generated without any
contents that was magically fixed upon updating.

bazelbuild/bazel-central-registry#124

Creates MODULE.bazel and WORKSPACE.bzlmod files to enable bazel-skylib
to work with the `--experimental_enable_bzlmod` flag.

rules_go has been updated as the previously used version is not
available in the BCR.

stardoc has been updated due to a strange issue with Bzlmod enabled that
caused the `diff_test` and `unittest` docs to be generated without any
contents that was magically fixed upon updating.
Copy link
Collaborator

@tetromino tetromino left a comment

Choose a reason for hiding this comment

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

Thanks for doing this!

The only issue is that we'd need to adapt MODULE.bazel to work with bazel_skylib's distribution tarball: we strip out all build-only dependencies and the gazelle extension (which is still experimental) to build the release tarball - see distribution/BUILD.

I think the best way to do that would be to cut everything below the platforms dep out of MODULE.bazel and put the result in the //:distribution filegroup.

I could make those changes myself, fwiw.

MODULE.bazel Show resolved Hide resolved
Copy link
Collaborator

@tetromino tetromino left a comment

Choose a reason for hiding this comment

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

Added a magic comment so that MODULE.bazel can be split into distro-able and non-distroable pieces via sed

@tetromino tetromino merged commit 31ab4c8 into bazelbuild:main Aug 30, 2022
@nickgooding nickgooding deleted the bzlmod-setup branch September 3, 2022 12:12
@nickgooding nickgooding restored the bzlmod-setup branch September 3, 2022 12:12
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