go /
mod /
8827845e442c45e504ec0d962aeee53ca26a43a2 zip: add package for creating and extracting module zip files
zip provides three new functions:
* Create - build a zip from an abstract list of files, filtering out
files in submodules and vendor directories. This is useful for
filtering a zip produced by a VCS tool (as the go command does).
* CreateFromDir - build a zip from a directory. This is a convenience
wrapper for Create.
* Unzip - extract a zip file, checking various restrictions.
A list of restrictions on module paths, versions, files within zips,
and size limits is included in the package documentation. Both Create
and Unzip enforce these restrictions.
Also: copied cmd/go/internal/txtar to internal/txtar for testing.
Updates golang/go#31302
Updates golang/go#33312
Updates golang/go#33778
Change-Id: I6fedb8b839a0cd991c9b210e73bafedc4b286ec5
Reviewed-on: https://go-review.googlesource.com/c/mod/+/202042
Run-TryBot: Jay Conrod <jayconrod@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
45 files changed