Skip to content

Commit 06a4213

Browse files
committed
feat(catalog): add multi_version config to Go
- Enable endoflife.date as version source - Track 2 supported versions (current + previous) - Map default go binary to cycle automatically - Add go.mod as version file
1 parent e98f7c8 commit 06a4213

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

catalog/go.json

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,15 @@
1212
"display_name": "Go toolchain",
1313
"install_action": "install",
1414
"order": 50
15-
}
15+
},
16+
"multi_version": {
17+
"enabled": true,
18+
"source": "endoflife",
19+
"product": "go",
20+
"max_versions": 2,
21+
"binary_pattern": "go{cycle}",
22+
"candidates": ["go{cycle}", "/usr/local/go{cycle}/bin/go"],
23+
"version_files": ["go.mod"]
24+
},
25+
"notes": "Go supports 2 versions (current + previous). Uses goenv if available, otherwise single system install."
1626
}

0 commit comments

Comments
 (0)