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

fix: relative config path error fix #171

Merged
merged 1 commit into from
Dec 6, 2023
Merged

fix: relative config path error fix #171

merged 1 commit into from
Dec 6, 2023

Conversation

slashformotion
Copy link
Contributor

@slashformotion slashformotion commented Dec 5, 2023

fixes #168

It works with relative path

(tbump-py3.12) ➜  tbump git:(main) ✗ tbump --config ./../tbump/tbump.toml 0.10.1 --only-patch
:: Bumping from 6.11.0 to 0.10.1
/home/slash/CODE/github.com/slashformotion/tbump
../tbump/tbump.toml
/home/slash/CODE/github.com/slashformotion/tbump/../tbump/tbump.toml
=> Would update current version in /home/slash/CODE/github.com/slashformotion/tbump/../tbump/tbump.toml
/home/slash/CODE/github.com/slashformotion/tbump
../tbump/tbump.toml
/home/slash/CODE/github.com/slashformotion/tbump/../tbump/tbump.toml
- /home/slash/CODE/github.com/slashformotion/tbump/../tbump/tbump.toml:6 current = "6.11.0"
+ /home/slash/CODE/github.com/slashformotion/tbump/../tbump/tbump.toml:6 current = "0.10.1"
=> Would patch these files
- pyproject.toml:6 version = "6.11.0"
+ pyproject.toml:6 version = "0.10.1"
- tbump/cli.py:21 TBUMP_VERSION = "6.11.0"
+ tbump/cli.py:21 TBUMP_VERSION = "0.10.1"
:: Looking good? (y/N)
> n
Error: Canceled by user

@dmerejkowsky dmerejkowsky merged commit 146c9b3 into your-tools:main Dec 6, 2023
16 checks passed
@dmerejkowsky
Copy link
Collaborator

Thanks for the fix !

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

Successfully merging this pull request may close these issues.

[6.11.0] --config option fails when given a relative path
2 participants