[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH for-4.14] golang/xenlight: remove call to go fmt in gengotypes.py



On Mon, Jun 08, 2020 at 11:39:43AM +0000, George Dunlap wrote:
> 
> > On Jun 6, 2020, at 5:10 PM, Nick Rosbrook <rosbrookn@xxxxxxxxx> wrote:
> > 
> > Since the golang bindings are now set to be re-generated whenever a
> > change is made to tools/libxl/libxl_types.idl, the call to go fmt in
> > gengotypes.py results in a dirty git tree for users without go
> > installed.
> > 
> > As an immediate fix, just remove the call to go fmt from gengotypes.py.
> > While here, make sure the DO NOT EDIT comment and package declaration
> > remain formatted correctly. All other generated code is left
> > un-formatted for now.
> > 
> > Signed-off-by: Nick Rosbrook <rosbrookn@xxxxxxxxxxxx>
> 
> Reviewed-by: George Dunlap <george.dunlap@xxxxxxxxxx>
> 
> With one note: git complains that the resulting patch introduces loads of 
> trailing whitespace.  I went though gengotypes.py and essentially did `s/ 
> \n/\n/g`.  With your permission I’ll fold that (and the resulting patches) 
> into this before checking it in.

Yes, that's fine. Thank you.

-NR



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.