mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
[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:
parent
f900d6014e
commit
3a185d7468
5 changed files with 297 additions and 390 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue