-
Notifications
You must be signed in to change notification settings - Fork 28
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
devcontainer clang-format version should match RAPIDS pre-commit requirements #55
Comments
I just installed clang-format-17 in our cccl containers. Maybe that would also be a solution for rapids? |
We need to match the version used by CI. |
Which one is that, I installed the 17.* as a fixed version, we can any version we want through pip |
The problem is that RAPIDS currently uses You can't just rely on whatever clang-format version happens to be in the container. |
You can specify the exact version installed, which is the exact point of the devcontainer. To create a hermetic pre-defined environment. |
The point is you'd have to manually sync the version specified in the pre-commit config and the devcontainer definition. There's no way to automatically have one just use the other. |
From my point of view a devcontainer needs to be independent. The moment I require a user to install additional tools that have an additional non-obvious dependency on the configuration of the devcontainer, then the whole idea of a devcontainer is broken. |
Can't we use rapids-dependency-file-generator for this? |
Currently just about every time I push to CI my PRs fail clang-format checks because the clang-format in the devcontainer (cuSpatial) is v16, and RAPIDS pre-commit uses something like v11. Small things like bracket wrapping and comment alignment have changed between versions.
Would be nice for these to align.
The text was updated successfully, but these errors were encountered: