Skip to content

api: handle the case where contexts re-converge #4303

@bradfitz

Description

@bradfitz
from golang-dev from brainman:

"""
This CL breaks goapi check. I have introduced windows
syscall.RawSockaddrInet6, and now

# go run goapi.go | grep RawSockaddrInet6
pkg syscall (darwin-386), type RawSockaddrInet6 struct, Family uint8
pkg syscall (darwin-386), type RawSockaddrInet6 struct, Len uint8
pkg syscall (darwin-386-cgo), type RawSockaddrInet6 struct, Family uint8
pkg syscall (darwin-386-cgo), type RawSockaddrInet6 struct, Len uint8
pkg syscall (darwin-amd64), type RawSockaddrInet6 struct, Family uint8
pkg syscall (darwin-amd64), type RawSockaddrInet6 struct, Len uint8
pkg syscall (darwin-amd64-cgo), type RawSockaddrInet6 struct, Family
uint8
pkg syscall (darwin-amd64-cgo), type RawSockaddrInet6 struct, Len uint8
pkg syscall (freebsd-386), type RawSockaddrInet6 struct, Family uint8
pkg syscall (freebsd-386), type RawSockaddrInet6 struct, Len uint8
pkg syscall (freebsd-amd64), type RawSockaddrInet6 struct, Family uint8
pkg syscall (freebsd-amd64), type RawSockaddrInet6 struct, Len uint8
pkg syscall (linux-386), type RawSockaddrInet6 struct, Family uint16
pkg syscall (linux-386-cgo), type RawSockaddrInet6 struct, Family uint16
pkg syscall (linux-amd64), type RawSockaddrInet6 struct, Family uint16
pkg syscall (linux-amd64-cgo), type RawSockaddrInet6 struct, Family
uint16
pkg syscall (linux-arm), type RawSockaddrInet6 struct, Family uint16
pkg syscall (windows-386), type RawSockaddrInet6 struct, Family uint16
pkg syscall (windows-amd64), type RawSockaddrInet6 struct, Family uint16
pkg syscall, type RawSockaddrInet6 struct
pkg syscall, type RawSockaddrInet6 struct, Addr [16]byte
pkg syscall, type RawSockaddrInet6 struct, Flowinfo uint32
pkg syscall, type RawSockaddrInet6 struct, Port uint16
pkg syscall, type RawSockaddrInet6 struct, Scope_id uint32

while in the past

# cat $GOROOT/api/go1.txt | grep RawSockaddrInet6
pkg syscall (darwin-386), type RawSockaddrInet6 struct
pkg syscall (darwin-386), type RawSockaddrInet6 struct, Addr [16]byte
pkg syscall (darwin-386), type RawSockaddrInet6 struct, Family uint8
pkg syscall (darwin-386), type RawSockaddrInet6 struct, Flowinfo uint32
pkg syscall (darwin-386), type RawSockaddrInet6 struct, Len uint8
pkg syscall (darwin-386), type RawSockaddrInet6 struct, Port uint16
pkg syscall (darwin-386), type RawSockaddrInet6 struct, Scope_id uint32
pkg syscall (darwin-386-cgo), type RawSockaddrInet6 struct
pkg syscall (darwin-386-cgo), type RawSockaddrInet6 struct, Addr
[16]byte
pkg syscall (darwin-386-cgo), type RawSockaddrInet6 struct, Family uint8
pkg syscall (darwin-386-cgo), type RawSockaddrInet6 struct, Flowinfo
uint32
pkg syscall (darwin-386-cgo), type RawSockaddrInet6 struct, Len uint8
pkg syscall (darwin-386-cgo), type RawSockaddrInet6 struct, Port uint16
pkg syscall (darwin-386-cgo), type RawSockaddrInet6 struct, Scope_id
uint32
pkg syscall (darwin-amd64), type RawSockaddrInet6 struct
pkg syscall (darwin-amd64), type RawSockaddrInet6 struct, Addr [16]byte
pkg syscall (darwin-amd64), type RawSockaddrInet6 struct, Family uint8
pkg syscall (darwin-amd64), type RawSockaddrInet6 struct, Flowinfo
uint32
pkg syscall (darwin-amd64), type RawSockaddrInet6 struct, Len uint8
pkg syscall (darwin-amd64), type RawSockaddrInet6 struct, Port uint16
pkg syscall (darwin-amd64), type RawSockaddrInet6 struct, Scope_id
uint32
pkg syscall (darwin-amd64-cgo), type RawSockaddrInet6 struct
pkg syscall (darwin-amd64-cgo), type RawSockaddrInet6 struct, Addr
[16]byte
pkg syscall (darwin-amd64-cgo), type RawSockaddrInet6 struct, Family
uint8
pkg syscall (darwin-amd64-cgo), type RawSockaddrInet6 struct, Flowinfo
uint32
pkg syscall (darwin-amd64-cgo), type RawSockaddrInet6 struct, Len uint8
pkg syscall (darwin-amd64-cgo), type RawSockaddrInet6 struct, Port
uint16
pkg syscall (darwin-amd64-cgo), type RawSockaddrInet6 struct, Scope_id
uint32
pkg syscall (freebsd-386), type RawSockaddrInet6 struct
pkg syscall (freebsd-386), type RawSockaddrInet6 struct, Addr [16]byte
pkg syscall (freebsd-386), type RawSockaddrInet6 struct, Family uint8
pkg syscall (freebsd-386), type RawSockaddrInet6 struct, Flowinfo uint32
pkg syscall (freebsd-386), type RawSockaddrInet6 struct, Len uint8
pkg syscall (freebsd-386), type RawSockaddrInet6 struct, Port uint16
pkg syscall (freebsd-386), type RawSockaddrInet6 struct, Scope_id uint32
pkg syscall (freebsd-amd64), type RawSockaddrInet6 struct
pkg syscall (freebsd-amd64), type RawSockaddrInet6 struct, Addr [16]byte
pkg syscall (freebsd-amd64), type RawSockaddrInet6 struct, Family uint8
pkg syscall (freebsd-amd64), type RawSockaddrInet6 struct, Flowinfo
uint32
pkg syscall (freebsd-amd64), type RawSockaddrInet6 struct, Len uint8
pkg syscall (freebsd-amd64), type RawSockaddrInet6 struct, Port uint16
pkg syscall (freebsd-amd64), type RawSockaddrInet6 struct, Scope_id
uint32
pkg syscall (linux-386), type RawSockaddrInet6 struct
pkg syscall (linux-386), type RawSockaddrInet6 struct, Addr [16]byte
pkg syscall (linux-386), type RawSockaddrInet6 struct, Family uint16
pkg syscall (linux-386), type RawSockaddrInet6 struct, Flowinfo uint32
pkg syscall (linux-386), type RawSockaddrInet6 struct, Port uint16
pkg syscall (linux-386), type RawSockaddrInet6 struct, Scope_id uint32
pkg syscall (linux-386-cgo), type RawSockaddrInet6 struct
pkg syscall (linux-386-cgo), type RawSockaddrInet6 struct, Addr [16]byte
pkg syscall (linux-386-cgo), type RawSockaddrInet6 struct, Family uint16
pkg syscall (linux-386-cgo), type RawSockaddrInet6 struct, Flowinfo
uint32
pkg syscall (linux-386-cgo), type RawSockaddrInet6 struct, Port uint16
pkg syscall (linux-386-cgo), type RawSockaddrInet6 struct, Scope_id
uint32
pkg syscall (linux-amd64), type RawSockaddrInet6 struct
pkg syscall (linux-amd64), type RawSockaddrInet6 struct, Addr [16]byte
pkg syscall (linux-amd64), type RawSockaddrInet6 struct, Family uint16
pkg syscall (linux-amd64), type RawSockaddrInet6 struct, Flowinfo uint32
pkg syscall (linux-amd64), type RawSockaddrInet6 struct, Port uint16
pkg syscall (linux-amd64), type RawSockaddrInet6 struct, Scope_id uint32
pkg syscall (linux-amd64-cgo), type RawSockaddrInet6 struct
pkg syscall (linux-amd64-cgo), type RawSockaddrInet6 struct, Addr
[16]byte
pkg syscall (linux-amd64-cgo), type RawSockaddrInet6 struct, Family
uint16
pkg syscall (linux-amd64-cgo), type RawSockaddrInet6 struct, Flowinfo
uint32
pkg syscall (linux-amd64-cgo), type RawSockaddrInet6 struct, Port uint16
pkg syscall (linux-amd64-cgo), type RawSockaddrInet6 struct, Scope_id
uint32
pkg syscall (linux-arm), type RawSockaddrInet6 struct
pkg syscall (linux-arm), type RawSockaddrInet6 struct, Addr [16]byte
pkg syscall (linux-arm), type RawSockaddrInet6 struct, Family uint16
pkg syscall (linux-arm), type RawSockaddrInet6 struct, Flowinfo uint32
pkg syscall (linux-arm), type RawSockaddrInet6 struct, Port uint16
pkg syscall (linux-arm), type RawSockaddrInet6 struct, Scope_id uint32

I can change $GOROOT/api/go1.txt, but, I think, the idea is that is
stays unchanged. I am not sure how to change goapi command to make it
work. Suggestions are welcome.

Alex

http://golang.org/cl/6822045/

"""

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions