After using latest next, I have an issue with dump failing.
It works for everything that comes from a repository, but for local files that are not under version control I end up with
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/kas/kas.py", line 237, in main
kas(sys.argv[1:])
File "/usr/local/lib/python3.10/dist-packages/kas/kas.py", line 211, in kas
plugin.run(args)
File "/usr/local/lib/python3.10/dist-packages/kas/plugins/dump.py", line 213, in run
super().run(args)
File "/usr/local/lib/python3.10/dist-packages/kas/plugins/checkout.py", line 58, in run
ctx.config = Config(ctx, args.config)
File "/usr/local/lib/python3.10/dist-packages/kas/config.py", line 53, in __init__
top_repo_path = Repo.get_root_path(
File "/usr/local/lib/python3.10/dist-packages/kas/repos.py", line 282, in get_root_path
(ret, output) = run_cmd(['hg', 'root'],
File "/usr/local/lib/python3.10/dist-packages/kas/libkas.py", line 188, in run_cmd
ret = subprocess_run(cmd, env=env, cwd=cwd, stdout=PIPE)
File "/usr/lib/python3.10/subprocess.py", line 503, in run
with Popen(*popenargs, **kwargs) as process:
File "/usr/lib/python3.10/subprocess.py", line 971, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/lib/python3.10/subprocess.py", line 1863, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'hg'
Does that mean hg module is now required to run kas?
Would a sanity check for git tool make sense as well?
BTW that doesn’t happen on master
Regards
Konrad
We continuously commit to comply with the applicable
data protection laws and ensure fair and transparent processing of your personal
data.
Please read our privacy statement including an information notice and
data protection policy for detailed information on our website.