Skip to content

x/tools/go/gcexportdata: drop experimental bundle API #69573

Open
@adonovan

Description

@adonovan

The gcexportdata package has two functions, WriteBundle and ReadBundle, that have always been marked as experimental and are not used within x/tools, nor, to my knowledge, anywhere else. The only match in GitHub was a single call from apidiff in the obsolete golang/exp repo (and forks thereof), which I have since updated.

package gcexportdata

func ReadBundle(in io.Reader, fset *token.FileSet, imports map[string]*types.Package) ([]*types.Package, error)
func WriteBundle(out io.Writer, fset *token.FileSet, pkgs []*types.Package) error

We propose to drop bundle functionality by making both functions return an error unconditionally.

Related:

Metadata

Metadata

Assignees

No one assigned

    Labels

    ProposalProposal-AcceptedToolsThis label describes issues relating to any tools in the x/tools repository.

    Type

    No type

    Projects

    Status

    Accepted

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions