metadata: virtual manifest dont have JSON
This commit is contained in:
parent
653037692f
commit
1c2247ea93
1 changed files with 7 additions and 1 deletions
|
@ -386,7 +386,13 @@ class Metadata:
|
|||
["cargo", "read-manifest", f"--manifest-path={path}"],
|
||||
check=check, capture_output=True
|
||||
)
|
||||
return json.loads(output.stdout)
|
||||
try:
|
||||
result = json.loads(output.stdout)
|
||||
except json.decoder.JSONDecodeError:
|
||||
# Pure virtual manifest cannot be readed, we need to use
|
||||
# one from the different workspaces
|
||||
result = {}
|
||||
return result
|
||||
|
||||
@staticmethod
|
||||
def metadata(path, deps=False):
|
||||
|
|
Loading…
Reference in a new issue