Documentation
¶
Index ¶
- func ComputeTreeHash(repoURL, commit string) (string, error)
- func ExtractRepoURLFromModulePath(modulePath string) string
- func GetCommitForTag(repoURL, tag string) (string, error)
- func GetGitRemoteURL(dir string) (string, error)
- func InferModulePath(dir string) (string, error)
- func IsGitRepo(dir string) bool
- func LsRemoteTags(repoURL string) ([]string, error)
- func ModulePathToRepoURL(modulePath string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ComputeTreeHash ¶
func ExtractRepoURLFromModulePath ¶
ExtractRepoURLFromModulePath extracts the repository URL from a module path, handling subpaths. For example:
- github.com/user/repo -> github.com/user/repo
- github.com/user/repo/subpath -> github.com/user/repo
func GetCommitForTag ¶
func GetGitRemoteURL ¶
func InferModulePath ¶
func LsRemoteTags ¶
func ModulePathToRepoURL ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.