class ShardLockEntry
- ShardLockEntry
- Reference
- Object
Overview
Represents a single entry within the shards section of a shard.lock file.
It provides details about a specific dependency.
Included Modules
- YAML::Serializable
Defined in:
shard/shard_lock_file.crConstant Summary
-
GIT_COMMIT_VERSION =
/\+git\.commit\.([0-9a-f]{7,40})\z/ -
X.Y.Z+git.commit.<sha>is what shards writes when the resolved commit is not itself a released tag. The trailing SHA is the only value that actually identifies the tree, so it is what apkg:github/#gitlab/#bitbucketPURL should carry — those PURL types define the version as a tag or a commit, and the composite string is neither.
Constructors
Instance Method Summary
-
#bitbucket : String | Nil
The Bitbucket repository path (e.g., "owner/repo").
-
#codeberg : String | Nil
The Codeberg repository path (e.g., "owner/repo").
-
#commit : String | Nil
The commit SHA embedded in
#version, when shards recorded one. -
#fossil : String | Nil
The Fossil repository URL.
-
#git : String | Nil
The Git URL if the dependency is sourced from a Git repository.
-
#github : String | Nil
The GitHub repository path (e.g., "owner/repo") if sourced from GitHub.
-
#gitlab : String | Nil
The GitLab repository path (e.g., "owner/repo") if sourced from GitLab.
-
#hg : String | Nil
The Mercurial repository URL.
-
#path : String | Nil
The local path if the dependency is a local path dependency.
-
#version : String | Nil
The version of the locked dependency.
Constructor Detail
Instance Method Detail
The version of the locked dependency. Absent for path: entries (and some
other lock shapes), in which case it stays nil rather than being filled in
with a placeholder: no version is a fact, "unknown" is a fabrication.