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 creating cache dirs when in sub dir #260

Merged
merged 1 commit into from
Sep 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/sinol_make/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from sinol_make.task_type.interactive import InteractiveTaskType # noqa


__version__ = "1.8.1"
__version__ = "1.8.2"


def configure_parsers():
Expand Down Expand Up @@ -83,7 +83,6 @@ def main_exn():
if command:
if len(arguments) > 1:
print(f' {command.get_name()} command '.center(util.get_terminal_size()[1], '='))
cache.create_cache_dirs()
command.run(args)
else:
parser.print_help()
Expand Down
1 change: 1 addition & 0 deletions src/sinol_make/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ def exit_if_not_package():
"""
if not find_and_chdir_package():
exit_with_error('You are not in a package directory (couldn\'t find config.yml in current directory).')
cache.create_cache_dirs()
cache.check_can_access_cache()


Expand Down
Loading