class Zap::Lockfile

Included Modules

Defined in:

lockfile.cr

Constant Summary

Log = Zap::Log.for(self)
NAME = "zap.lock"

Constructors

Instance Method Summary

Instance methods inherited from class Object

or(other : T) : T | self forall T or, pipe(&) pipe

Constructor Detail

def self.new(ctx : YAML::ParseContext, node : YAML::Nodes::Node) #

[View source]
def self.new(pull : MessagePack::Unpacker) #

[View source]
def self.new(project_path : Path | String, *, default_format : Format | Nil = nil) #

[View source]

Instance Method Detail

def add_dependency(name : String, version : String, type : DependencyType, scope : String, scope_version : String) #

[View source]
def crawl_roots(*, roots = self.roots, &block : Package, DependencyType, Root, Deque(Tuple(Package, DependencyType)) -> ) #

[View source]
def filter_roots(package : Package, workspaces : Array(Package | Workspaces::Workspace)) #

[View source]
def format : Format #

[View source]
def format=(format : Format) #

[View source]
def get_package(name : String, specifier : String | Package::Alias) #

[View source]
def get_package?(name : String, specifier : String | Package::Alias) #

[View source]
def get_root(name : String, version : String) #

[View source]
def lockfile_path : Path #

def lockfile_path=(lockfile_path : Path) #

[View source]
def lockfile_path? : Path | Nil #

def mark_transitive_peers(*, roots = self.roots) : Array(Tuple(Zap::Lockfile::Root, Array(Tuple(String, Zap::Utils::Semver::Range, Zap::Package)))) #

[View source]
def overrides : Package::Overrides | Nil #

[View source]
def overrides=(overrides : Package::Overrides | Nil) #

[View source]
def packages : Hash(String, Package) #

[View source]
def packages_lock : Zap::Utils::Concurrent::RWLock #

[View source]
def prune(scope : Set(String)) : Set(Tuple(String, String | Package::Alias, String)) #

[View source]
def read_status : ReadStatus #

[View source]
def read_status=(read_status : ReadStatus) #

[View source]
def reduce_roots(_type : T.class, *, roots = self.roots, &block : Package, DependencyType, Root, Deque(Tuple(Package, DependencyType)), Array(T) -> Array(T)) forall T #

[View source]
def roots : Hash(String, Root) #

[View source]
def serialize(format = @format) #

[View source]
def set_root(package : Package) #

[View source]
def set_roots(package : Package, workspaces : Workspaces | Nil) #

[View source]

[View source]
def strategy=(strategy : Commands::Install::Config::InstallStrategy | Nil) #

[View source]
def update_hoisting_shasum(main_package : Package) : Bool #

[View source]
def update_package_extensions_shasum(main_package : Package) : Bool #

[View source]
def write(format : Format | Nil = nil) #

[View source]