[dev.link] cmd/pack: use cmd/internal/archive package

Rewrite part of cmd/pack to use the cmd/internal/archive package.

Change-Id: Ia7688810d3ea4d0277056870091f59cf09cffcad
Reviewed-on: https://go-review.googlesource.com/c/go/+/247917
Run-TryBot: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Than McIntosh <thanm@google.com>
This commit is contained in:
Cherry Zhang 2020-08-05 21:16:52 -04:00
parent f900d6014e
commit 3a185d7468
5 changed files with 297 additions and 390 deletions

View file

@ -27,7 +27,7 @@ type goobjFile struct {
}
func openGoFile(f *os.File) (*File, error) {
a, err := archive.Parse(f)
a, err := archive.Parse(f, false)
if err != nil {
return nil, err
}