package loader import "galaxy/connector" func (l *loader) newerVersion(version string) bool { current := l.cli.Version() return compareSemver(current, version) > 0 } // downloadVersion fetches given version artifact, when newer to the current version, // and stores at the App's local storage with a pre-defined name with semver suffix func (l *loader) downloadVersion(v connector.VersionInfo) { if !l.newerVersion(v.Version) { return } l.conn.DownloadVersion(v.URL) }