Skip to content

cmd/dist, cmd/go: Go tip leaving pkg/mod/golang.org/x/telemetry read-only files behind #67463

Description

@mvdan

In the past week or so, since @matloob started working on telemetry support in cmd/go, I've started having issues with my source builds from master where read-only module cache files are left behind inside GOROOT:

$ git clean -dffx
Removing VERSION.cache
Removing bin/
warning: failed to remove pkg/obj/gopath/pkg/mod/golang.org/x/telemetry/config@v0.21.0/config.json: Permission denied
warning: failed to remove pkg/obj/gopath/pkg/mod/golang.org/x/telemetry/config@v0.21.0/doc.go: Permission denied
warning: failed to remove pkg/obj/gopath/pkg/mod/golang.org/x/telemetry/config@v0.21.0/go.mod: Permission denied
warning: failed to remove pkg/obj/gopath/pkg/mod/golang.org/x/telemetry/config@v0.21.0/LICENSE: Permission denied
Removing pkg/obj/gopath/pkg/mod/cache
Removing pkg/obj/gopath/pkg/sumdb
Removing pkg/tool
Removing pkg/include
Removing src/cmd/cgo/zdefaultcc.go
Removing src/cmd/go/internal/cfg/zdefaultcc.go
Removing src/cmd/internal/objabi/zbootstrap.go
Removing src/go/build/zcgo.go
Removing src/internal/buildcfg/zbootstrap.go
Removing src/runtime/internal/sys/zversion.go
Removing src/time/tzdata/zzipdata.go
$ git clean -dffx
warning: failed to remove pkg/obj/gopath/pkg/mod/golang.org/x/telemetry/config@v0.21.0/config.json: Permission denied
warning: failed to remove pkg/obj/gopath/pkg/mod/golang.org/x/telemetry/config@v0.21.0/doc.go: Permission denied
warning: failed to remove pkg/obj/gopath/pkg/mod/golang.org/x/telemetry/config@v0.21.0/go.mod: Permission denied
warning: failed to remove pkg/obj/gopath/pkg/mod/golang.org/x/telemetry/config@v0.21.0/LICENSE: Permission denied

That was a build from d05af62. I just did a clean build of 2f64268 and the read-only files weren't created right away, but I'm not sure if they will be created at some point as I use cmd/go.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions