File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -176,9 +176,12 @@ def build_charm(self, bases_config: BasesConfiguration) -> str:
176176 with charmcraft .instrum .Timer ("Lifecycle run" ):
177177 lifecycle .run (Step .PRIME )
178178
179- create_actions_yaml (lifecycle .prime_dir , self .config )
180- create_config_yaml (lifecycle .prime_dir , self .config )
181- create_metadata_yaml (lifecycle .prime_dir , self .config )
179+ # skip creation yaml files if using reactive, reactive will create them
180+ # in a incompatible way
181+ if self ._parts .get ("charm" , {}).get ("plugin" , None ) != "reactive" :
182+ create_actions_yaml (lifecycle .prime_dir , self .config )
183+ create_config_yaml (lifecycle .prime_dir , self .config )
184+ create_metadata_yaml (lifecycle .prime_dir , self .config )
182185
183186 # run linters and show the results
184187 linting_results = charmcraft .linters .analyze (self .config , lifecycle .prime_dir )
You can’t perform that action at this time.
0 commit comments