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: add bzlmod #46

Merged
merged 5 commits into from
Feb 27, 2023
Merged

chore: add bzlmod #46

merged 5 commits into from
Feb 27, 2023

Conversation

alexeagle
Copy link
Contributor

So far the repo itself relies only on fetching via WORKSPACE, but produces a ruleset that users can consume with bzlmod

Fixes #33

@alexeagle alexeagle force-pushed the bzlmod branch 2 times, most recently from de0e767 to 3157586 Compare February 4, 2023 20:23
@alexeagle alexeagle enabled auto-merge (squash) February 4, 2023 20:43
.github/workflows/ci.yaml Outdated Show resolved Hide resolved
.github/workflows/ci.yaml Show resolved Hide resolved
Copy link
Member

@fmeum fmeum left a comment

Choose a reason for hiding this comment

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

Looks good!

MODULE.bazel Outdated Show resolved Hide resolved
mylang/extensions.bzl Outdated Show resolved Hide resolved
mylang/extensions.bzl Outdated Show resolved Hide resolved
alexeagle and others added 3 commits February 22, 2023 17:28
So far the repo itself relies only on fetching via WORKSPACE,
but produces a ruleset that users can consume with bzlmod

Fixes #33
Co-authored-by: Andreas Herrmann <andreash87@gmx.ch>
Comment on lines +58 to +61
# Broken due to stardoc usage, see
# https://github.com/bazelbuild/stardoc/issues/117#issuecomment-1380744704
- folder: .
bzlmodEnabled: true
Copy link
Member

Choose a reason for hiding this comment

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

An alternative could be to set --deleted_packages=docs. That will exclude //docs but will still be able to build and test the rest on CI.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That would be nice... but there's no way to make that flag conditional on bzlmod so we'd have to introduce a --config like aspect-build/rules_js@48d0228#diff-874728f39b9bba99bc8a2949132b868dd74225faaa504ae43810a45516eaa613R76 (which has that complexity for exactly the same reason)

I hear commits are landing in Bazel to fix stardoc so I'd rather keep this simple and wait for a proper fix, I think

mylang/extensions.bzl Show resolved Hide resolved
@alexeagle
Copy link
Contributor Author

@aherrmann if this LGTY would you approve pls?

Copy link
Member

@aherrmann aherrmann left a comment

Choose a reason for hiding this comment

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

LGTM

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.

Consider using bzlmod
6 participants