Skip to content

cmd/link: dumpdep output is missing 'from' #73625

@kruskall

Description

@kruskall

Go version

go1.24.2

Output of go env in your module/workspace:

GOVERSION='go1.24.2'

What did you do?

Consider the following:

package main

import (
	"fmt"
)

func main() {
	fmt.Println("Hi!")
}

built with go build -gcflags="all=-N -l" -ldflags=-dumpdep .

What did you see happen?

Most of the output is of the form from -> to:

e.g.

main.main -> fmt.Println
fmt.Println -> os.Stdout
fmt.Println -> go:itab.*os.File,io.Writer
fmt.Println -> fmt.Fprintln
fmt.Fprintln -> fmt.newPrinter
fmt.Fprintln -> fmt.(*pp).doPrintln
fmt.Fprintln -> fmt.(*pp).free

However some of the lines seem to be missing a from value.

 -> go:info.*fmt.fmt
 -> go:info.*fmt.buffer
 -> go:info.fmt.buffer
 -> go:info.[6]uint8
 -> go:info.*fmt.pp
 -> go:info.io.Writer
 -> go:info.[]interface {}
 -> go:info.reflect.Value
 -> go:info.fmt.fmtFlags
 -> go:info.fmt.Formatter
 -> go:info.fmt.GoStringer
 -> go:info.fmt.Stringer
 -> go:info.int16
 -> go:info.internal/fmtsort.SortedMap
 -> go:info.internal/fmtsort.KeyValue
 -> go:info.reflect.Type

What did you expect to see?

Unless I'm missing something If the parent is missing I'd expect at least a _ (

) but instead the output shows an empty string.

Metadata

Metadata

Assignees

No one assigned

    Labels

    NeedsDecisionFeedback is required from experts, contributors, and/or the community before a change can be made.compiler/runtimeIssues related to the Go compiler and/or runtime.

    Type

    No type

    Projects

    Status

    Todo

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions