summaryrefslogtreecommitdiffhomepage
path: root/gomod_test.go
diff options
context:
space:
mode:
authorNick Khyl <nickk@tailscale.com>2024-12-05 13:16:48 -0600
committerNick Khyl <nickk@tailscale.com>2024-12-05 13:16:48 -0600
commit0267fe83b200f1702a2fa0a395442c02a053fadb (patch)
tree63654c55225eeb834de59a5a0bc8d19033c6145b /gomod_test.go
parent87546a5edf6b6503a87eeb2d666baba57398a066 (diff)
downloadtailscale-1.78.0.tar.xz
tailscale-1.78.0.zip
VERSION.txt: this is v1.78.0v1.78.0
Signed-off-by: Nick Khyl <nickk@tailscale.com>
Diffstat (limited to 'gomod_test.go')
-rw-r--r--gomod_test.go50
1 files changed, 25 insertions, 25 deletions
diff --git a/gomod_test.go b/gomod_test.go
index f984b5d6f..52fdd4639 100644
--- a/gomod_test.go
+++ b/gomod_test.go
@@ -1,25 +1,25 @@
-// Copyright (c) Tailscale Inc & AUTHORS
-// SPDX-License-Identifier: BSD-3-Clause
-
-package tailscaleroot
-
-import (
- "os"
- "testing"
-
- "golang.org/x/mod/modfile"
-)
-
-func TestGoMod(t *testing.T) {
- goMod, err := os.ReadFile("go.mod")
- if err != nil {
- t.Fatal(err)
- }
- f, err := modfile.Parse("go.mod", goMod, nil)
- if err != nil {
- t.Fatal(err)
- }
- if len(f.Replace) > 0 {
- t.Errorf("go.mod has %d replace directives; expect zero in this repo", len(f.Replace))
- }
-}
+// Copyright (c) Tailscale Inc & AUTHORS
+// SPDX-License-Identifier: BSD-3-Clause
+
+package tailscaleroot
+
+import (
+ "os"
+ "testing"
+
+ "golang.org/x/mod/modfile"
+)
+
+func TestGoMod(t *testing.T) {
+ goMod, err := os.ReadFile("go.mod")
+ if err != nil {
+ t.Fatal(err)
+ }
+ f, err := modfile.Parse("go.mod", goMod, nil)
+ if err != nil {
+ t.Fatal(err)
+ }
+ if len(f.Replace) > 0 {
+ t.Errorf("go.mod has %d replace directives; expect zero in this repo", len(f.Replace))
+ }
+}