internal/task: update for golang.org → go.dev website move
Start using the new shorter go.dev domain name where applicable,
such as when making announcement tweets. The previous name will
always work too, but we want to be consistent and up to date in
our external communication.
Continue to use golang.org/dl when it refers to the module path
since that hasn't changed.
Change-Id: I897ae4cdfb0b4af396923691887e701b95b8f93b
Reviewed-on: https://go-review.googlesource.com/c/build/+/368975
Trust: Dmitri Shuralyov <dmitshur@golang.org>
Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Alexander Rakoczy <alex@golang.org>
Reviewed-by: Carlos Amedee <carlos@golang.org>
diff --git a/internal/task/tweet_test.go b/internal/task/tweet_test.go
index 590b2e0..68bbdf1 100644
--- a/internal/task/tweet_test.go
+++ b/internal/task/tweet_test.go
@@ -21,7 +21,7 @@
// This test is useful when modifying the tweet text and image templates,
// but don't run it in -short mode since tweetImage involves making some
// HTTP GET requests to the internet.
- t.Skip("skipping test that hits golang.org/dl/?mode=json read-only API in -short mode")
+ t.Skip("skipping test that hits go.dev/dl/?mode=json read-only API in -short mode")
}
tests := [...]struct {
@@ -47,7 +47,7 @@
📢 Announcement: https://groups.google.com/g/golang-announce/c/dx9d7IOseHw/m/KNH37k37AAAJ
-⬇️ Download: https://golang.org/dl/#go1.17.1
+⬇️ Download: https://go.dev/dl/#go1.17.1
#golang
tweet image:
@@ -72,11 +72,11 @@
wantLog: `tweet text:
⚡️ Go 1.17 Beta 1 is released!
-⚙️ Try it! File bugs! https://golang.org/issue/new
+⚙️ Try it! File bugs! https://go.dev/issue/new
🗣 Announcement: https://groups.google.com/g/golang-announce/c/i4EliPDV9Ok/m/MxA-nj53AAAJ
-📦 Download: https://golang.org/dl/#go1.17beta1
+📦 Download: https://go.dev/dl/#go1.17beta1
#golang
tweet image:
@@ -101,11 +101,11 @@
wantLog: `tweet text:
🎉 Go 1.17 Release Candidate 2 is released!
-🏖 Run it in dev! Run it in prod! File bugs! https://golang.org/issue/new
+🏖 Run it in dev! Run it in prod! File bugs! https://go.dev/issue/new
🔈 Announcement: https://groups.google.com/g/golang-announce/c/yk30ovJGXWY/m/p9uUnKbbBQAJ
-📦 Download: https://golang.org/dl/#go1.17rc2
+📦 Download: https://go.dev/dl/#go1.17rc2
#golang
tweet image:
@@ -132,9 +132,9 @@
🔐 Security: Includes a super duper security fix (CVE-123).
-📝 Release notes: https://golang.org/doc/go1.17
+📝 Release notes: https://go.dev/doc/go1.17
-📦 Download: https://golang.org/dl/#go1.17
+📦 Download: https://go.dev/dl/#go1.17
#golang
tweet image:
@@ -163,7 +163,7 @@
t.Errorf("unexpected tweetURL: got = %q, want %q", got, want)
}
if got, want := buf.String(), tc.wantLog; got != want {
- t.Errorf("unexpected log: got = %q, want %q", got, want)
+ t.Errorf("unexpected log:\n got: %q\nwant: %q", got, want)
}
})
}