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

File resolution rules #9

Open
coordt opened this issue Apr 22, 2023 · 0 comments
Open

File resolution rules #9

coordt opened this issue Apr 22, 2023 · 0 comments
Labels
feature-request New feature or request
Milestone

Comments

@coordt
Copy link
Member

coordt commented Apr 22, 2023

Description

Ensure the following rules are followed for resolving file locations (and document them):

  • when specified on the command line:
    • relative paths are resolved from the current working directory
    • full paths are used as-is
  • when specified in the configuration file
    • relative paths are resolved from the location of the configuration file
    • full paths are used as-is

Option: A formatting option, like {repo_root}, allows the path to specify it is relative to the code repo's root.

For example:

[[ tool.bumpversion.files ]]
filename = "{repo_root}/mylibrary/__init__.py"

Based on this issue

@coordt coordt added the feature-request New feature or request label Apr 22, 2023
@coordt coordt added this to the 1.0 Release milestone Jul 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant