not sure why we need any of this. https://codereview.appspot.com/12978043/diff/1/cmd/bake/bake.go File cmd/bake/bake.go (right): https://codereview.appspot.com/12978043/diff/1/cmd/bake/bake.go#newcode86 cmd/bake/bake.go:86: // ...
11 years, 10 months ago
(2013-08-15 06:26:46 UTC)
#3
On 15 August 2013 16:24, Brad Fitzpatrick <bradfitz@golang.org> wrote: > You've seen camlistore's fileembed, right? ...
11 years, 10 months ago
(2013-08-15 06:44:52 UTC)
#5
On 15 August 2013 16:24, Brad Fitzpatrick <bradfitz@golang.org> wrote:
> You've seen camlistore's fileembed, right? It generates embed files that
> have similar line breaks to minimize diff sizes, and uses strings instead
> of []byte and gives you an io interface to read it.
>
I'd forgotten about fileembed. But this shouldn't be a go installable tool,
anyway. I've made it simpler still.
I still don't like the template.go auto-generated file. It will forever produce gigantic diffs too ...
11 years, 10 months ago
(2013-08-16 00:07:22 UTC)
#11
I still don't like the template.go auto-generated file.
It will forever produce gigantic diffs too large to email and get angry
with tools in other ways (hg diff, etc).
I would really like you to do it Camlistore's fileembed way, with a string
and line breaks in the same place, which makes a small diff. I don't care
about fileembed as a tool being goinstallable. I'm only caring here about
the look of the auto-generated file.
On Wed, Aug 14, 2013 at 11:13 PM, <adg@golang.org> wrote:
> Reviewers: golang-dev1,
>
> Message:
> Hello golang-dev@googlegroups.com,
>
> I'd like you to review this change to
> https://code.google.com/p/go.**tools <https://code.google.com/p/go.tools>
>
>
> Description:
> cmd/godoc: bake templates and scripts into godoc binary
>
> Add bake utility to cmd/bake.
>
> Fixes issue 6010.
>
> Please review this at
https://codereview.appspot.**com/12978043/<https://codereview.appspot.com/129...
>
> Affected files:
> A cmd/bake/bake.go
> A cmd/godoc/bake.sh
> M cmd/godoc/handlers.go
> A cmd/godoc/template.go
>
>
> --
>
> ---You received this message because you are subscribed to the Google
> Groups "golang-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
golang-dev+unsubscribe@**googlegroups.com<golang-dev%2Bunsubscribe@googlegrou...
> .
> For more options, visit
https://groups.google.com/**groups/opt_out<https://groups.google.com/groups/o...
> .
>
On 16 August 2013 10:07, Brad Fitzpatrick <bradfitz@golang.org> wrote: > with a string and line ...
11 years, 10 months ago
(2013-08-16 00:11:59 UTC)
#12
On 16 August 2013 10:07, Brad Fitzpatrick <bradfitz@golang.org> wrote:
> with a string and line breaks in the same place, which makes a small diff
I don't understand this.
+r The previous version of this tool stored the data as raw strings. Rob asked ...
11 years, 10 months ago
(2013-08-16 00:19:54 UTC)
#14
+r
The previous version of this tool stored the data as raw strings. Rob asked
me to change it to []byte, and said he wouldn't approve the change
otherwise.
I'm past caring at this point. Please let me know what you two resolve to
do here.
On 16 August 2013 10:16, Brad Fitzpatrick <bradfitz@golang.org> wrote:
> On Thu, Aug 15, 2013 at 5:11 PM, Andrew Gerrand <adg@golang.org> wrote:
>
>>
>> On 16 August 2013 10:07, Brad Fitzpatrick <bradfitz@golang.org> wrote:
>>
>>> with a string and line breaks in the same place, which makes a small diff
>>
>>
>> I don't understand this.
>>
>
> My diffs look like this:
>
>
>
https://camlistore-review.googlesource.com/#/c/360/1/server/camlistored/ui/ze...
>
> Readable.
>
> Yours look like one line of 5 MB of numbers.
>
My version doesn't use a raw string and only a subset of ASCII goes through ...
11 years, 10 months ago
(2013-08-16 00:26:07 UTC)
#15
My version doesn't use a raw string and only a subset of ASCII goes through
unescaped.
I like seeing clean diffs.
At least put in newlines in-between your numbers both every so often and
whenever you see a 0x0a byte, so they're aligned with human-authored html
and css. That will also produce diffs that fit in emails, even if half the
diff is gibberish looking.
On Thu, Aug 15, 2013 at 5:19 PM, Andrew Gerrand <adg@golang.org> wrote:
> +r
>
> The previous version of this tool stored the data as raw strings. Rob
> asked me to change it to []byte, and said he wouldn't approve the change
> otherwise.
>
> I'm past caring at this point. Please let me know what you two resolve to
> do here.
>
>
> On 16 August 2013 10:16, Brad Fitzpatrick <bradfitz@golang.org> wrote:
>
>> On Thu, Aug 15, 2013 at 5:11 PM, Andrew Gerrand <adg@golang.org> wrote:
>>
>>>
>>> On 16 August 2013 10:07, Brad Fitzpatrick <bradfitz@golang.org> wrote:
>>>
>>>> with a string and line breaks in the same place, which makes a small
>>>> diff
>>>
>>>
>>> I don't understand this.
>>>
>>
>> My diffs look like this:
>>
>>
>>
https://camlistore-review.googlesource.com/#/c/360/1/server/camlistored/ui/ze...
>>
>> Readable.
>>
>> Yours look like one line of 5 MB of numbers.
>>
>
>
To address the concerns raised by Brad and Russ I have switched to using raw ...
11 years, 10 months ago
(2013-08-16 00:59:15 UTC)
#18
To address the concerns raised by Brad and Russ I have switched to using
raw strings. bake.go is still much simpler than it was in the first
revision of this CL.
Andrew
That's unfortunate and silly but you play the hand you're dealt. Andrew, with apologies I ...
11 years, 10 months ago
(2013-08-16 00:59:39 UTC)
#19
That's unfortunate and silly but you play the hand you're dealt.
Andrew, with apologies I withdraw all my requests to make this the
simple obvious thing, since that's clearly stupid. Complexity rules.
Issue 12978043: code review 12978043: cmd/godoc: bake templates and scripts into godoc binary
(Closed)
Created 11 years, 10 months ago by adg
Modified 11 years, 10 months ago
Reviewers:
Base URL:
Comments: 9