christophd commented on code in PR #5188:
URL: https://github.com/apache/camel-k/pull/5188#discussion_r1515799045


##########
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:
   no offense to you the viper library totally offers the shared usage as a 
valid option. it took me some time to really understand why the tests hit the 
concurrency error though 😄 



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to