MCPcopy Create free account
hub / github.com/wailsapp/wails / GetLatestPreRelease

Function GetLatestPreRelease

v2/internal/github/github.go:116–129  ·  view source on GitHub ↗

GetLatestPreRelease gets the latest prerelease on GitHub

()

Source from the content-addressed store, hash-verified

114
115// GetLatestPreRelease gets the latest prerelease on GitHub
116func GetLatestPreRelease() (result *SemanticVersion, err error) {
117 tags, err := GetVersionTags()
118 if err != nil {
119 return nil, err
120 }
121
122 for _, tag := range tags {
123 if tag.IsPreRelease() {
124 return tag, nil
125 }
126 }
127
128 return nil, fmt.Errorf("no prerelease tag found")
129}
130
131// IsValidTag returns true if the given string is a valid tag
132func IsValidTag(tagVersion string) (bool, error) {

Callers

nothing calls this directly

Calls 3

GetVersionTagsFunction · 0.85
IsPreReleaseMethod · 0.80
ErrorfMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…