class Zap::Lockfile
- Zap::Lockfile
- Reference
- Object
Included Modules
- MessagePack::Serializable
- YAML::Serializable
- Zap::Utils::Macros
Defined in:
lockfile.crConstant Summary
-
Log =
Zap::Log.for(self)
-
NAME =
"zap.lock"
Constructors
- .new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
- .new(pull : MessagePack::Unpacker)
- .new(project_path : Path | String, *, default_format : Format | Nil = nil)
Instance Method Summary
- #add_dependency(name : String, version : String, type : DependencyType, scope : String, scope_version : String)
- #crawl_roots(*, roots = self.roots, &block : Package, DependencyType, Root, Deque(Tuple(Package, DependencyType)) -> )
- #filter_roots(package : Package, workspaces : Array(Package | Workspaces::Workspace))
- #format : Format
- #format=(format : Format)
- #get_package(name : String, specifier : String | Package::Alias)
- #get_package?(name : String, specifier : String | Package::Alias)
- #get_root(name : String, version : String)
- #lockfile_path : Path
- #lockfile_path=(lockfile_path : Path)
- #lockfile_path? : Path | Nil
- #mark_transitive_peers(*, roots = self.roots) : Array(Tuple(Zap::Lockfile::Root, Array(Tuple(String, Zap::Utils::Semver::Range, Zap::Package))))
- #overrides : Package::Overrides | Nil
- #overrides=(overrides : Package::Overrides | Nil)
- #packages : Hash(String, Package)
- #packages_lock : Zap::Utils::Concurrent::RWLock
- #prune(scope : Set(String)) : Set(Tuple(String, String | Package::Alias, String))
- #read_status : ReadStatus
- #read_status=(read_status : ReadStatus)
- #reduce_roots(_type : T.class, *, roots = self.roots, &block : Package, DependencyType, Root, Deque(Tuple(Package, DependencyType)), Array(T) -> Array(T)) forall T
- #roots : Hash(String, Root)
- #serialize(format = @format)
- #set_root(package : Package)
- #set_roots(package : Package, workspaces : Workspaces | Nil)
- #strategy : Commands::Install::Config::InstallStrategy | Nil
- #strategy=(strategy : Commands::Install::Config::InstallStrategy | Nil)
- #update_hoisting_shasum(main_package : Package) : Bool
- #update_package_extensions_shasum(main_package : Package) : Bool
- #write(format : Format | Nil = nil)
Constructor Detail
Instance Method Detail
def add_dependency(name : String, version : String, type : DependencyType, scope : String, scope_version : String)
#
def crawl_roots(*, roots = self.roots, &block : Package, DependencyType, Root, Deque(Tuple(Package, DependencyType)) -> )
#
def mark_transitive_peers(*, roots = self.roots) : Array(Tuple(Zap::Lockfile::Root, Array(Tuple(String, Zap::Utils::Semver::Range, Zap::Package))))
#
def prune(scope : Set(String)) : Set(Tuple(String, String | Package::Alias, String))
#
def reduce_roots(_type : T.class, *, roots = self.roots, &block : Package, DependencyType, Root, Deque(Tuple(Package, DependencyType)), Array(T) -> Array(T)) forall T
#