We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b41a3af commit 28d2ac4Copy full SHA for 28d2ac4
internal/orchestrator/config/config.go
@@ -108,6 +108,9 @@ func NewFromEnv() (Configuration, error) {
108
}
109
maxVersionStr := os.Getenv("ARDUINO_APP_CLI__MAX_UPDATE_MAJOR_VERSION")
110
111
+ // If the value is 0 (or unset), the updater logic defaults to the currently installed major version.
112
+ //This ensures we don't accidentally upgrade to a new major version (breaking changes) unless explicitly allowed.
113
+
114
maxVersion, err := strconv.Atoi(maxVersionStr)
115
if err != nil || maxVersion <= 0 {
116
maxVersion = 0
0 commit comments