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
Improve handling of the default schema paths #980
Conversation
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.
Can you revert the change to the lookup order? PREFIX/etc/vast/vast.conf
should come before /etc/vast/vast.conf
in the ordering, and this PR changes that.
That was intentional. As a user, I would intuitively edit |
I don't get it. The usual behavior for programs is that the more specific a path to a configuration file, the earlier it should be in the lookup path. I think we should discuss this separately within the team (including ops) and have a vote on the expected and desired user experience. As a side note: if this change was intentional, it should be reflected as such in the changelog. |
That's also my understanding. A home config file takes precedence over system-wide installed version. In that sense, |
I can only speak of what I'm used to and to some extent expect: The configuration of a program is normally composed of 3 parts in order of precedence:
What vast does at the moment:
This is not the way I think about the issue. |
I think this change should be discussed in a separate thread though. I'm going to revert the change for this PR. |
d51a246
to
a08c113
Compare
Co-authored-by: Dominik Lohmann <mail@dominiklohmann.de>
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 verified in a Docker container that the additional schema paths get picked up.
This PR removes the baking to the install prefix from the binary.
vast.conf
is now also determined by the runtime location.This fixes 2 bugs:
VAST_RELOCATABLE_INSTALL
was not really relocatable because the paths above would not update on relocations.CMAKE_INSTALL_PREFIX
leaked into the static binary, which is relocatable by definition.In addition, this PR also adds
/etc/vast/schema
to the schema file lookup path.