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

.fmf/config allow to redefine tree root relatively #200

Open
LecrisUT opened this issue Aug 8, 2023 · 0 comments
Open

.fmf/config allow to redefine tree root relatively #200

LecrisUT opened this issue Aug 8, 2023 · 0 comments

Comments

@LecrisUT
Copy link
Contributor

LecrisUT commented Aug 8, 2023

For example:

root: ../tests

This would be helpful for projects that want to consolidate the configurations outside the git root.

Issues:

  • detecting the .fmf folder when navigating the tree files.
    Although this could be handled by specifying --root, it could be helpful to expose the navigation api via entry-points. E.g. a default implementation could be to read the closest pyproject.toml file and extract the root from there, but in non-python projects, alternative logics could be installed from an external fmf plugin e.g. fmf[github]
  • recursiveness
    This one could be problematic when fmf is able to read hidden folders, but since .fmf name is fixed, it should be easy to handle
  • ambiguity if multiple .fmf are found
    E.g. if the current directory has a .fmf folder and there is a main .fmf in the repository is desired. This is an ambiguity for the current structure as well, but if this can be customized from the plugins, this could resolve the ambiguity by the choice of installed/enabled plugins, e.g. if a fmf[toml] is enabled, look for a top-level pyproject.toml before navigating the file tree. This could also help with making tmt options be read from user/system config files
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

No branches or pull requests

1 participant