Copyright headers for auto-generated files?
Ian Booth
ian.booth at canonical.com
Thu Jan 7 08:11:53 UTC 2016
We're already using go generate in the cloud-credentials feature branch. And the
code we generate has the correct header.
We have a top level generate package into which it is intended various
generators will live.
Here's a generator which reads the contents of a file and assigns that to a Go
constant.
https://github.com/juju/juju/blob/cloud-credentials/generate/filetoconst.go
On 07/01/16 17:47, Andrew McDermott wrote:
> Can the "thing" that is generating the content not add the header?
>
> On 6 January 2016 at 22:18, Katherine Cox-Buday <
> katherine.cox-buday at canonical.com> wrote:
>
>> Nate ran into an interesting problem yesterday. If we begin to use go
>> generate directives to auto-generate code, do we care that this code
>> doesn't have a Copyright header? We check the generated file into source
>> control, but as the file is meant to be regenerated in the event of a
>> change, we don't want to edit it by hand to add the header.
>>
>> --
>> -
>> Katherine
>>
>>
>> --
>> Juju-dev mailing list
>> Juju-dev at lists.ubuntu.com
>> Modify settings or unsubscribe at:
>> https://lists.ubuntu.com/mailman/listinfo/juju-dev
>>
>
>
>
>
>
More information about the Juju-dev
mailing list