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

migrate rules_cc dependency to MOUDULE.bazel #352

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

metamorphosis0328
Copy link

Hi Light-City,

I want to thank you for creating and maintaining this amazing project! I am a beginner in C++, and I am using this project as a way to practice and learn more.

However, I ran into an issue while following your tutorial video on Bilibili, and I believe it might be due to recent updates to Bazel. Specifically, it seems that the contents of the WORKSPACE file have been moved to MODULE.bazel in newer versions of Bazel. As a result, I encountered an error related to missing the rules_cc dependency when trying to run the project with Bazel.

I found that in order to resolve this issue, I needed to add the rules_cc dependency to the MODULE.bazel file. I'm not completely sure about the purpose of MODULE.bazel.lock, but I believe it might be auto-generated and related to managing dependencies.

For reference, here is the information about my system:

  • Operating System: Ubuntu 24.04.1 LTS
  • VS Code version: 1.96.4
  • Bazel version: 8.0.1

This is my first pull request, and I hope this change will be helpful for you and other learners who may encounter the same issue. I'm not sure if my changes are correct, but you can just take it as a reminder.

Thank you again for your hard work on this project!

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.

1 participant