Skip to content

Conversation

@brandonskiser
Copy link
Contributor

@brandonskiser brandonskiser commented Nov 7, 2025

Description of changes:

  • Changing support for disable_autoupdate in the index.json to instead updateConditions, where we specify special conditions that are applied when clients are updating into a specific version.

This enables us to mark versions that require some conditions to be met before being updated into.

Currently, we only require preventing certain product names from auto-updating into a version with another product name.

With an example:

"versions": [
    {
      // Only allow clients with the product name "Amazon Q" can update into "1.2.1"
      "version": "1.2.1",
      "updateConditions": [
          {
              "allowedAutoUpdateProductNames": ["Amazon Q"]
          }
      ],
      "packages": [ .. ]
   },
   {
      // All clients can update into 1.2.2
      "version": "1.2.2",
      "packages": [ .. ]
   },
   {
      // NO clients can update into "1.2.3"
      "version": "1.2.3",
      "updateConditions": [
          {
              "allowedAutoUpdateProductNames": [""]
          }
      ],
      "packages": [ .. ]
   },
]

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@brandonskiser brandonskiser marked this pull request as ready for review November 7, 2025 01:26
@brandonskiser brandonskiser requested a review from a team as a code owner November 7, 2025 01:26
@brandonskiser brandonskiser merged commit 998af94 into main Nov 7, 2025
17 of 27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants