Skip to content

cmd/go: compile net/http when GO15VENDOREXPERIMENT=0 #13961

@cespare

Description

@cespare

In the Go 1.6 cycle, users should be able to disable vendoring (in case they use directories named vendor) using GO15VENDOREXPERIMENT=0. This mostly works, but if the user imports net/http, it will not compile because net/http uses the new vendoring mechanism for http2.

See https://groups.google.com/d/msg/golang-dev/DJNCzxcLvgE/UW15IK6rEwAJ.

@bradfitz suggests that the fix is for the go tool to force-enable vendoring for the standard library even when GO15VENDOREXPERIMENT=0.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions