Skip to content

x/pkgsite: examples don't properly run for preview release modules #46689

@codyoss

Description

@codyoss

What did you do?

Went to run the WithLabels example.

What did you expect to see?

A runnable example.

What did you see instead?

The following error in output:

go: finding module for package cloud.google.com/go/logging/jsonlog
go: downloading cloud.google.com/go/logging v1.4.2
go: downloading cloud.google.com/go v0.84.0
prog.go:4:2: module cloud.google.com/go/logging@latest found (v1.4.2), but does not contain package cloud.google.com/go/logging/jsonlog

Additional Context

  • This is likely to to this being based off a pre-release tag: cloud.google.com/go/logging@v1.5.0-jsonlog-preview.
  • This example does not actually produce any meaningful output, just noticed the error when I had click on it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.pkgsite

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions