fix persisting manifest
This commit is contained in:
parent
da82718a60
commit
81fca0e2cf
2 changed files with 3 additions and 3 deletions
|
|
@ -1,7 +1,7 @@
|
|||
import json
|
||||
from enum import Enum, auto
|
||||
from pathlib import Path
|
||||
from typing import Dict, List, Optional, Union, Any
|
||||
from typing import Dict, List, Optional, Any
|
||||
from urllib.parse import ParseResult, urlparse
|
||||
|
||||
from .fileutils import PathType, to_path
|
||||
|
|
@ -110,7 +110,7 @@ def load_locked_versions(path: Path) -> Dict[str, LockedVersion]:
|
|||
if path.exists():
|
||||
return _load_locked_versions(path)
|
||||
else:
|
||||
return dict(repos={})
|
||||
return {}
|
||||
|
||||
|
||||
def load_manifest(manifest_path: PathType, lock_path: PathType) -> Manifest:
|
||||
|
|
|
|||
|
|
@ -74,7 +74,7 @@ def update_lock_file(repos: List[Repo]) -> None:
|
|||
if repo.locked_version:
|
||||
locked_repos[repo.name] = repo.locked_version.as_json()
|
||||
|
||||
write_json_file(locked_repos, LOCK_PATH)
|
||||
write_json_file(dict(repos=locked_repos), LOCK_PATH)
|
||||
|
||||
|
||||
def update_command(args: Namespace) -> None:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue