@@ -55,18 +55,19 @@ type RuntimeBinaries struct {
5555
5656// ToolPluginConfig holds the structure of the tool plugin.yaml file
5757type ToolPluginConfig struct {
58- Name string `yaml:"name"`
59- Description string `yaml:"description"`
60- DefaultVersion string `yaml:"default_version"`
61- Runtime string `yaml:"runtime"`
62- RuntimeBinaries RuntimeBinaries `yaml:"runtime_binaries"`
63- Installation InstallationConfig `yaml:"installation"`
64- Download DownloadConfig `yaml:"download"`
65- Environment map [string ]string `yaml:"environment"`
66- Binaries []ToolBinary `yaml:"binaries"`
67- Formatters []Formatter `yaml:"formatters"`
68- OutputOptions OutputOptions `yaml:"output_options"`
69- AnalysisOptions AnalysisOptions `yaml:"analysis_options"`
58+ Name string `yaml:"name"`
59+ Description string `yaml:"description"`
60+ DefaultVersion string `yaml:"default_version"`
61+ Runtime string `yaml:"runtime"`
62+ RuntimeBinaries RuntimeBinaries `yaml:"runtime_binaries"`
63+ Installation InstallationConfig `yaml:"installation"`
64+ Download DownloadConfig `yaml:"download"`
65+ Environment map [string ]string `yaml:"environment"`
66+ Binaries []ToolBinary `yaml:"binaries"`
67+ Formatters []Formatter `yaml:"formatters"`
68+ OutputOptions OutputOptions `yaml:"output_options"`
69+ AnalysisOptions AnalysisOptions `yaml:"analysis_options"`
70+ NeedsSourceIdUpload bool `yaml:"needs_source_id_upload"`
7071}
7172
7273// ToolConfig represents configuration for a tool
@@ -98,7 +99,8 @@ type ToolInfo struct {
9899 FileName string
99100 Extension string
100101 // Environment variables
101- Environment map [string ]string
102+ Environment map [string ]string
103+ NeedsSourceIdUpload bool
102104}
103105
104106// ProcessTools processes a list of tool configurations and returns a map of tool information
@@ -151,7 +153,8 @@ func ProcessTools(configs []ToolConfig, toolDir string, runtimes map[string]*Run
151153 InstallCommand : pluginConfig .Installation .Command ,
152154 RegistryCommand : pluginConfig .Installation .RegistryTemplate ,
153155 // Store environment variables
154- Environment : make (map [string ]string ),
156+ Environment : make (map [string ]string ),
157+ NeedsSourceIdUpload : pluginConfig .NeedsSourceIdUpload ,
155158 }
156159
157160 // Handle download configuration for directly downloaded tools
0 commit comments