Skip to content

Use text/template to generate NOTICE (a collection of LICENSE files)

Takuya Noguchi requested to merge text-template-noticegen into master

Instead of html/template (introduced in !1889 (merged)), we should use text/template to generate NOTICE, a collection of LICENSE files, by _support/noticegen/noticegen.go.

Almost same as s/&#34;/"/g; s/&#39;/'/g; s/&lt;/</g; s/&gt;/>/g;.

With the new code, NOTICE regenerated by make notice is included.

cf. the implementation of govendor license, which has been used before !1889 (merged), https://github.com/kardianos/govendor/blob/e31350db9750308ce016ebef8350a8ff1e0a37d0/run/license.go#L15

I am not sure why we are not using google/go-licenses.

Signed-off-by: Takuya Noguchi takninnovationresearch@gmail.com

Edited by Takuya Noguchi

Merge request reports