]> Cypherpunks repositories - gostls13.git/commit
cmd/compile/internal/noder,go/internal/gcimporter: return an error if not an archive...
authorTim King <taking@google.com>
Fri, 8 Nov 2024 19:49:00 +0000 (11:49 -0800)
committerGo LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Tue, 12 Nov 2024 19:51:37 +0000 (19:51 +0000)
commit3efbc30f3d6a35cb5b0fc29d8bb3f43d59304771
tree1872749e12c0e76a14da2d2eea4668de9f6e4a61
parent95c729cf06d2d8d73832f9c9cfc83c0fb0051f54
cmd/compile/internal/noder,go/internal/gcimporter: return an error if not an archive file

Return an error from FindExportData variants if the contents are not
an archive file.

Change-Id: I2fa8d3553638ef1de6a03e2ce46341f00ed6965f
Reviewed-on: https://go-review.googlesource.com/c/go/+/626697
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Robert Griesemer <gri@google.com>
Commit-Queue: Tim King <taking@google.com>
src/cmd/compile/internal/importer/exportdata.go
src/cmd/compile/internal/importer/gcimporter_test.go
src/cmd/compile/internal/noder/import.go
src/go/internal/gcimporter/exportdata.go
src/go/internal/gcimporter/gcimporter_test.go