Forum: Cfengine Help
Subject: Re: Syntax checking without promise analyze
Author: zzamboni
Link to topic: https://cfengine.com/forum/read.php?3,18689,18849#msg-18849

Eduard,

I think this is actually a nice idea - use svn hooks to check the syntax and 
prevent check-in of incorrect files.

What I would suggest is simply run cf-promises on the main promises.cf file, or 
whatever the main files that are going to be used by the clients, rather than 
trying to check a single file (I do not know how to do this). This would have 
the added benefit that it could catch cross-file errors by checking the whole 
package at once.

As an example, I could imagine the case of removing a body in a library that is 
still being used by some other file - this error would not be caught by 
syntax-checking only the changed file, but it would be caught by starting the 
check from the main promises file.

_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to