mirror of
https://github.com/golang/go
synced 2024-11-19 03:54:42 -07:00
428f1ab0ca
This change adds a test to ensure that your go.mod file remains unchanged when the tempModfile flag is activated. Specifically, it adds a test to ensure that a go directive does not get added to a user's go.mod file when there was not one included before. Updates golang/go#36247 Change-Id: If8db5508ace5b7222112408255ffa66e4d38797f Reviewed-on: https://go-review.googlesource.com/c/tools/+/214260 Reviewed-by: Rebecca Stambler <rstambler@golang.org> Run-TryBot: Rebecca Stambler <rstambler@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
7 lines
84 B
Go
7 lines
84 B
Go
// Package unchanged does something
|
|
package unchanged
|
|
|
|
func Yo() {
|
|
println("yo")
|
|
}
|