Skip to content

x/pkgsite: canonical go-source documentation #56666

Open
@dolanor

Description

@dolanor

What is the URL of the page with the issue?

https://pkg.go.dev/dagger.io/[email protected]#section-sourcefiles

What is your user agent?

Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:106.0) Gecko/20100101 Firefox/106.0

Screenshot

Capture d’écran de 2022-11-09 12-27-37

What did you do?

Clicked on the error.go file link

What did you expect to see?

It should have led me to: https://github.com/dagger/dagger/blob/sdk/go/v0.4.0/sdk/go/error.go

What did you see instead?

https://github.com/dagger/dagger/tree/main/sdk/go/blob/v0.4.0/error.go

Fix

- https://github.com/dagger/dagger/tree/main/sdk/go/blob/v0.4.0/error.go
+ https://github.com/dagger/dagger/blob/sdk/go/v0.4.0/sdk/go/error.go

Issue

it seems when using a submodule with the correct way of tagging it (with a tag containing its subdirectory location), the pkgsite doesn't concatenate the relative to repository root path of the file, but only relative to its respective go.mod submodule.

Metadata

Metadata

Assignees

No one assigned

    Labels

    NeedsDecisionFeedback is required from experts, contributors, and/or the community before a change can be made.pkgsite

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions