Skip to content

Commit b9ef740

Browse files
committed
feat(catalog): add pinned_versions to prevent runtime auto-updates
Add pinned_versions with "never" to prevent auto-update triggers: - go: pin 1.24 cycle - php: pin 8.2 cycle - ruby: pin 3.3 and 3.4 cycles This prevents newly-added version cycles from triggering unnecessary auto-update prompts during audit.
1 parent a282bb6 commit b9ef740

3 files changed

Lines changed: 32 additions & 8 deletions

File tree

catalog/go.json

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,16 @@
1919
"product": "go",
2020
"max_versions": 2,
2121
"binary_pattern": "go{cycle}",
22-
"candidates": ["go{cycle}", "/usr/local/go{cycle}/bin/go"],
23-
"version_files": ["go.mod"]
22+
"candidates": [
23+
"go{cycle}",
24+
"/usr/local/go{cycle}/bin/go"
25+
],
26+
"version_files": [
27+
"go.mod"
28+
]
2429
},
25-
"notes": "Go supports 2 versions (current + previous). Uses goenv if available, otherwise single system install."
30+
"notes": "Go supports 2 versions (current + previous). Uses goenv if available, otherwise single system install.",
31+
"pinned_versions": {
32+
"1.24": "never"
33+
}
2634
}

catalog/php.json

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,17 @@
2525
"product": "php",
2626
"max_versions": 4,
2727
"binary_pattern": "php{cycle}",
28-
"candidates": ["php{cycle}", "/usr/bin/php{cycle}"],
29-
"version_files": [".php-version", "composer.json"]
28+
"candidates": [
29+
"php{cycle}",
30+
"/usr/bin/php{cycle}"
31+
],
32+
"version_files": [
33+
".php-version",
34+
"composer.json"
35+
]
3036
},
31-
"notes": "Uses ondrej/php PPA for latest PHP version on Ubuntu/Debian. Required for Composer. Supports multiple concurrent versions (8.5, 8.4, 8.3, 8.2)."
37+
"notes": "Uses ondrej/php PPA for latest PHP version on Ubuntu/Debian. Required for Composer. Supports multiple concurrent versions (8.5, 8.4, 8.3, 8.2).",
38+
"pinned_versions": {
39+
"8.2": "never"
40+
}
3241
}

catalog/ruby.json

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,14 @@
2121
"version_prefix": "",
2222
"binary_subpath": "bin",
2323
"binary_name": "ruby",
24-
"version_files": [".ruby-version", "Gemfile"]
24+
"version_files": [
25+
".ruby-version",
26+
"Gemfile"
27+
]
2528
},
26-
"notes": "Managed via rbenv for version management. Supports multiple concurrent versions."
29+
"notes": "Managed via rbenv for version management. Supports multiple concurrent versions.",
30+
"pinned_versions": {
31+
"3.4": "never",
32+
"3.3": "never"
33+
}
2734
}

0 commit comments

Comments
 (0)