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

Update BUILD.bazel to remove constat patterns from glob #3397

Merged
merged 1 commit into from
Jun 27, 2022
Merged

Update BUILD.bazel to remove constat patterns from glob #3397

merged 1 commit into from
Jun 27, 2022

Conversation

lzhzero
Copy link
Contributor

@lzhzero lzhzero commented Jun 16, 2022

Constant patterns in glob can be error-prone,
moving the files outside the globs.

Constant patterns in glob can be error-prone,
moving the files outside the globs.
"backends/dpdk/*.cpp",
"backends/dpdk/control-plane/*.cpp",
],
exclude = [
Copy link
Contributor

Choose a reason for hiding this comment

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

so the patterns in exclude, which are constant, but inside glob, are not a problem?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The issue with the default include=[] is that constant patterns such as the backends/bmv2/common/lower.cpp, will be silently ignored if the file is not available.

@mihaibudiu mihaibudiu merged commit da63f29 into p4lang:main Jun 27, 2022
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