zip: update zip hashes for new flate compression This is like CL 767543, but for a similar test in x/mod/zip. It's a bit more involved because golang.org/x/mod/zip needs to support Go 1.26 and 1.25, too. Use the //go:build-constraint syntax to encode expected zip hashes both post- and pre- CL 707355. For golang/go#75532. Fixes golang/go#66927. Change-Id: I20ea40e7060448a2f25691400d87292fcca14aaa Cq-Include-Trybots: luci.golang.try:x_mod-gotip-darwin-amd64-longtest,x_mod-gotip-darwin-arm64-longtest,x_mod-gotip-linux-386-longtest,x_mod-gotip-linux-amd64-longtest,x_mod-gotip-linux-arm64-longtest,x_mod-gotip-windows-amd64-longtest Reviewed-on: https://go-review.googlesource.com/c/mod/+/772781 Reviewed-by: Cherry Mui <cherryyz@google.com> LUCI-TryBot-Result: golang-scoped@luci-project-accounts.iam.gserviceaccount.com <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
This repository holds packages for writing tools that work directly with Go module mechanics. That is, it is for direct manipulation of Go modules themselves.
It is NOT about supporting general development tools that need to do things like load packages in module mode. That use case, where modules are incidental rather than the focus, should remain in x/tools, specifically x/tools/go/packages.
The specific case of loading packages should still be done by invoking the go command, which remains the single point of truth for package loading algorithms.