diff --git a/ros2nix/ros2nix.py b/ros2nix/ros2nix.py index 499c421..22afc5b 100755 --- a/ros2nix/ros2nix.py +++ b/ros2nix/ros2nix.py @@ -598,6 +598,7 @@ def ros2nix(args): # TODO generate also release.nix (for testing/CI)? if not args.no_cache: + os.makedirs(os.path.dirname(cache_file), exist_ok=True) with open(cache_file, "w") as f: json.dump(git_cache, f)