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

module_prefix for adjusting interface file (hi/dyn_hi) path #60

Open
wants to merge 1 commit into
base: wavewave/worker-id
Choose a base branch
from

Conversation

wavewave
Copy link
Collaborator

If BUCK file is located inside a package source tree, then the earlier part of module source paths are truncated, and thus the resultant pkg.conf will have wrong information.
Though it is desirable to get correct module names, they are only correctly available as a result of parsing, i.e. needs to be implemented as dynamic values, which can complicate the situation. So for now (or forever), I assume that user can provide module prefix for that target without difficulty. Interface path is then adjusted with the prefix.

@wavewave wavewave requested review from aherrmann and avdv December 20, 2024 03:41
Copy link

@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.

How did the issue manifest? Is it causing build errors, or is it a user interface issue with the generated per-module sub-targets?

I'm asking because we infer source prefixes dynamically, see #26, which replaced the previous source prefix stripping attribute, see #23. One motivation for automatic inference was support for multiple source directories, see #31. I think the prefix added here should not be an issue for multiple source dirs, since they would all share a common prefix.

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