lburgazzoli commented on code in PR #5188: URL: https://github.com/apache/camel-k/pull/5188#discussion_r1512280139
########## pkg/cmd/root.go: ########## @@ -93,6 +97,10 @@ func kamelPreAddCommandInit(options *RootCmdOptions) *cobra.Command { } func kamelPostAddCommandInit(cmd *cobra.Command) error { + // Requires synchronization as viper bind flag is not able to handle concurrency + m.Lock() + defer m.Unlock() + Review Comment: Wonder if the culprit is the fact that we are using a shared viper instance instead of using one per command instance (which may not be super easy to get rid of) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org