Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(125)

Issue 52310044: code review 52310044: cmd/pack: rewrite in Go (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 5 months ago by r
Modified:
11 years, 5 months ago
Reviewers:
rsc
CC:
rsc, dave_cheney.net, minux1, josharian, golang-codereviews
Visibility:
Public.

Description

cmd/pack: rewrite in Go Replace the pack command, a C program, with a clean reimplementation in Go. It does not need to reproduce the full feature set and it is no longer used by the build chain, but has a role in looking inside archives created by the build chain directly. Since it's not in C, it is no longer build by dist, so remove it from cmd/dist and make it a "tool" in cmd/go terminology. Fixes issue 2705

Patch Set 1 #

Total comments: 3

Patch Set 2 : diff -r d37c12e44993 https://code.google.com/p/go #

Total comments: 15

Patch Set 3 : diff -r 302bdb5b08b1 https://code.google.com/p/go #

Unified diffs Side-by-side diffs Delta from patch set Stats (+674 lines, -1613 lines) Patch
M src/cmd/dist/build.c View 2 chunks +0 lines, -2 lines 0 comments Download
M src/cmd/go/pkg.go View 1 chunk +1 line, -0 lines 0 comments Download
R src/cmd/pack/Makefile View 1 chunk +0 lines, -5 lines 0 comments Download
R src/cmd/pack/ar.c View 1 chunk +0 lines, -1589 lines 0 comments Download
M src/cmd/pack/doc.go View 1 chunk +24 lines, -17 lines 0 comments Download
A src/cmd/pack/pack.go View 1 2 1 chunk +397 lines, -0 lines 0 comments Download
A src/cmd/pack/pack_test.go View 1 2 1 chunk +252 lines, -0 lines 0 comments Download

Messages

Total messages: 9
r
Hello rsc (cc: golang-codereviews@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go
11 years, 5 months ago (2014-01-14 22:06:48 UTC) #1
dave_cheney.net
Maybe also close this long standing issue, https://code.google.com/p/go/issues/detail?id=2705 On Wed, Jan 15, 2014 at 9:06 ...
11 years, 5 months ago (2014-01-14 22:36:07 UTC) #2
r
Hello rsc@golang.org, dave@cheney.net (cc: golang-codereviews@googlegroups.com), Please take another look.
11 years, 5 months ago (2014-01-14 23:36:02 UTC) #3
minux1
https://codereview.appspot.com/52310044/diff/1/src/cmd/pack/pack.go File src/cmd/pack/pack.go (right): https://codereview.appspot.com/52310044/diff/1/src/cmd/pack/pack.go#newcode334 src/cmd/pack/pack.go:334: uid := 0 // TODO? it seems the old ...
11 years, 5 months ago (2014-01-15 00:32:30 UTC) #4
r
https://codereview.appspot.com/52310044/diff/1/src/cmd/pack/pack.go File src/cmd/pack/pack.go (right): https://codereview.appspot.com/52310044/diff/1/src/cmd/pack/pack.go#newcode334 src/cmd/pack/pack.go:334: uid := 0 // TODO? On 2014/01/15 00:32:30, minux ...
11 years, 5 months ago (2014-01-15 00:47:47 UTC) #5
josharian
https://codereview.appspot.com/52310044/diff/20001/src/cmd/pack/pack.go File src/cmd/pack/pack.go (right): https://codereview.appspot.com/52310044/diff/20001/src/cmd/pack/pack.go#newcode74 src/cmd/pack/pack.go:74: // These veriables hold the decoded operation specified by ...
11 years, 5 months ago (2014-01-15 01:49:37 UTC) #6
rsc
LGTM very nice https://codereview.appspot.com/52310044/diff/20001/src/cmd/pack/pack.go File src/cmd/pack/pack.go (right): https://codereview.appspot.com/52310044/diff/20001/src/cmd/pack/pack.go#newcode149 src/cmd/pack/pack.go:149: _, err := fd.Read(buf) io.ReadFull(fd, buf) ...
11 years, 5 months ago (2014-01-15 03:02:48 UTC) #7
r
https://codereview.appspot.com/52310044/diff/20001/src/cmd/pack/pack.go File src/cmd/pack/pack.go (right): https://codereview.appspot.com/52310044/diff/20001/src/cmd/pack/pack.go#newcode149 src/cmd/pack/pack.go:149: _, err := fd.Read(buf) On 2014/01/15 03:02:49, rsc wrote: ...
11 years, 5 months ago (2014-01-15 16:58:02 UTC) #8
r
11 years, 5 months ago (2014-01-15 17:13:20 UTC) #9
*** Submitted as https://code.google.com/p/go/source/detail?r=160cde0af860 ***

cmd/pack: rewrite in Go
Replace the pack command, a C program, with a clean reimplementation in Go.
It does not need to reproduce the full feature set and it is no longer used by
the build chain, but has a role in looking inside archives created by the build
chain directly.

Since it's not in C, it is no longer build by dist, so remove it from cmd/dist
and
make it a "tool" in cmd/go terminology.

Fixes issue 2705

R=rsc, dave, minux.ma, josharian
CC=golang-codereviews
https://codereview.appspot.com/52310044
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b