Skip to content

Commit b2ff500

Browse files
endothermicdevrustyrussell
authored andcommitted
reckless: store source locations as correct type
1 parent 41d31dc commit b2ff500

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tools/reckless

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ class InstInfo:
312312
return False
313313
log.debug(f"falling back to cloning remote repo {self}")
314314
# Update to reflect use of a local clone
315-
self.source_loc = target.location
315+
self.source_loc = str(target.location)
316316
self.srctype = target.srctype
317317
result = search_dir(self, target, False, 5)
318318

@@ -1135,7 +1135,7 @@ def _source_search(name: str, src: str) -> Union[InstInfo, None]:
11351135
if _git_update(source, local_clone_location):
11361136
log.debug(f"Using local clone of {src}: "
11371137
f"{local_clone_location}")
1138-
source.source_loc = local_clone_location
1138+
source.source_loc = str(local_clone_location)
11391139
source.srctype = Source.GIT_LOCAL_CLONE
11401140

11411141
if source.get_inst_details():
@@ -1341,7 +1341,7 @@ def _install_plugin(src: InstInfo) -> Union[InstInfo, None]:
13411341
if not cloned_src.entry:
13421342
# The plugin entrypoint may not be discernable prior to cloning.
13431343
# Need to search the newly cloned directory, not the original
1344-
cloned_src.source_loc = plugin_path
1344+
cloned_src.source_loc = str(plugin_path)
13451345

13461346
# Relocate plugin to a staging directory prior to testing
13471347
if not Path(inst_path).exists():

0 commit comments

Comments
 (0)