]> Cypherpunks repositories - gostls13.git/commit
cmd/go: refer to the right package in a test
authorDaniel Martí <mvdan@mvdan.cc>
Wed, 22 Sep 2021 13:59:42 +0000 (14:59 +0100)
committerDaniel Martí <mvdan@mvdan.cc>
Thu, 23 Sep 2021 21:59:30 +0000 (21:59 +0000)
commit4e308d73ba3610838305997b6f4793c4f4dcfc4e
tree36454862f8237ae090e47a5634a576b5d906b65a
parent93f964b4122b7f9a1ae3f80ad75363403a5753ca
cmd/go: refer to the right package in a test

The test checks that two packages aren't non-test dependencies.
There's a copy-paste typo, however.
When net/http is unexpectedly found as a dependendency,
we instead mention the other package in the error message.

Change-Id: I3232c6252255c839e08efa048f2232c192d0fb85
Reviewed-on: https://go-review.googlesource.com/c/go/+/351372
Trust: Daniel Martí <mvdan@mvdan.cc>
Reviewed-by: Jay Conrod <jayconrod@google.com>
Run-TryBot: Jay Conrod <jayconrod@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
src/cmd/go/internal/imports/scan_test.go