Open seankhliao opened 1 year ago
cc @bcmills @matloob
It's probably not important to distinguish -mod=readonly
from -mod=mod
. -mod=vendor
is probably relevant, though, since folks sometimes do make modifications to the vendor
directory.
Hello, I was looking through the issue tracker for some easy tickets to work on to get familiar with contributing to Go. AFAICT, the fix for this issue only requires adding a couple lines to https://cs.opensource.google/go/go/+/master:src/cmd/go/internal/load/pkg.go;l=2283;bpv=1;bpt=1
Is anyone working on this ticket? If not, I can send a CL.
Change https://go.dev/cl/536415 mentions this issue: cmd/go/internal/load: record build mod in buildinfo
@quantonganh , CL LGTM. Approved.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
tip
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
What did you expect to see?
usage of vendor (and/or
-mod
flag) recorded in build infoWhat did you see instead?
no difference from buildinfo built without vendor: