Skip to content

Fix generate_modmap: use default generate_modmap#496

Closed
PikachuHyA wants to merge 1 commit into
bazelbuild:mainfrom
PikachuHyA:fix_genmodmap
Closed

Fix generate_modmap: use default generate_modmap#496
PikachuHyA wants to merge 1 commit into
bazelbuild:mainfrom
PikachuHyA:fix_genmodmap

Conversation

@PikachuHyA

Copy link
Copy Markdown
Contributor

We previously expose generate_modmap attribute in bazelbuild/bazel@8028655 to support #447 . After migrating to the Starlark implementation, this attribute is no longer needed. Remove the override and rely on the default generate_modmap behavior.

@google-cla

google-cla Bot commented Sep 29, 2025

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

We previously expose generate_modmap attribute in bazelbuild/bazel@8028655 to support bazelbuild#447 . After migrating to the Starlark implementation, this attribute is no longer needed. Remove the override and rely on the default generate_modmap behavior.
@fmeum

fmeum commented Sep 29, 2025

Copy link
Copy Markdown
Collaborator

Is this missing the attr definition with a default?

@trybka

trybka commented Sep 29, 2025

Copy link
Copy Markdown
Collaborator

Do you mean this one?

Or is there another attr that needs to be added here?

@fmeum fmeum left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

@trybka Never mind then, please merge and release :-)

@PikachuHyA

Copy link
Copy Markdown
Contributor Author

@trybka some error on feedback/copybara . could you take a look?

@PikachuHyA

Copy link
Copy Markdown
Contributor Author

Is this missing the attr definition with a default?

here is the definition.

def _cpp_modules_tools():
return {
"_aggregate_ddi": attr.label(
executable = True,
cfg = "exec",
default = "@" + _get_repo() + "//tools/cpp:aggregate-ddi",
),
"_generate_modmap": attr.label(
executable = True,
cfg = "exec",
default = "@" + _get_repo() + "//tools/cpp:generate-modmap",
),
}

This patch applies the default value to fix the error: Error in fail: the ‘generate_modmap’ tool is not defined in the C++ toolchain.
see bazelbuild/bazel#22553 (comment)

@trybka

trybka commented Oct 1, 2025

Copy link
Copy Markdown
Collaborator

Thanks, looking into it, trying to address the internal checks.

@copybara-service copybara-service Bot closed this in 0b3cceb Oct 2, 2025
copybara-service Bot pushed a commit to bazelbuild/bazel that referenced this pull request Oct 2, 2025
Copybara Import from bazelbuild/rules_cc#496

BEGIN_PUBLIC
Fix generate_modmap: use default generate_modmap (#496)

We previously expose generate_modmap attribute in 8028655 to support bazelbuild/rules_cc#447 . After migrating to the Starlark implementation, this attribute is no longer needed. Remove the override and rely on the default generate_modmap behavior.

Closes #496
END_PUBLIC

PiperOrigin-RevId: 814203331
Change-Id: Ib34a678a0b91c31df086297eb24b56d7ee46cd9a
@PikachuHyA
PikachuHyA deleted the fix_genmodmap branch October 3, 2025 01:36
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.

3 participants