-
Notifications
You must be signed in to change notification settings - Fork 8
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
Implement name-like search paths #31
base: main
Are you sure you want to change the base?
Conversation
1c079c3
to
b450aa4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I appreciate the additional test cases a lot!
I might need some time with an IDE to fully digest this change, so I'll call this a neutral set of comments.
Probably @mwoehlke-kitware should take a look too. If he wants to approve this change, don't wait on me to land. I can circle back later with my own PRs.
179b6cb
to
bb1055c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to merge.
Let's make sure we circle back on the lowercase attributes and come up with a plan for TODO hygiene.
bb1055c
to
ecb82f4
Compare
Rebased on main, lets indeed circle back on some of the hygene stuff, I think it might be appropriate to have an issue or two around some of that in the cps-config repo |
1219010
to
063501a
Compare
I've rebased on top of the other great work going on, and updated the CPS_PATH and CPS_PREFIX_PATH to match what the spec has upstream as of now. |
7f0627c
to
8acd27a
Compare
@dcbaker I'm just looking through the PR backlog. Is this ready to review? Can we put PRs in Draft state otherwise so I know they're not ready? |
I think this is ready for review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
At a minimum, we'll want an intentional assertion failure or something.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mainly need:
- Error handling on undefined environment variables (i.e., nullptr handling)
- Test cases for undefined environment variables, at least to prevent crashes
- Consistent use of
CPS_CONFIG_LIBDIR_NAME
instead ofCPS_LIBDIR
- Test cases for
CPS_CONFIG_LIBDIR_NAME
8acd27a
to
0835d2b
Compare
0173c9a
to
6d1cf3d
Compare
This adds support for finding cps files in `$ROOT/$name/*.cps`, as well as files with capitalization.
6d1cf3d
to
fea8d32
Compare
With this set of changes search paths are implemented for name-like paths, this includes:
The current version has been completely rewritten from the original version of this PR, as much of the underlying problems I encountered have since been fixed by changes to the spec or by other PRs to cps-config itself.