in main/handlersettings.go [263:283]
func GetExtensionManifestVersion() (string, error) {
// First attempting to read the version set during build time.
v := GetExtensionVersion()
if v != "" {
return v, nil
}
// If the version is not set during build time, then reading it from the manifest file as fallback.
processDirectory, err := GetProcessDirectory()
if err != nil {
return "", err
}
processDirectory = filepath.Dir(processDirectory)
fp := filepath.Join(processDirectory, ExtensionManifestFileName)
manifest, err := GetExtensionManifest(fp)
if err != nil {
return "", err
}
return manifest.Version, nil
}