Explicitly fetch the tags.

The behavior of `git fetch` with regards to tags varies depending on version.

Bug: https://github.com/flutter/flutter/issues/62174
Change-Id: I86e2264ca59b9d38ec9edc7a4ac0379ffd7aa12b
Reviewed-on: https://flutter-review.googlesource.com/c/recipes/+/4680
Reviewed-by: Godofredo Contreras <godofredoc@google.com>
Commit-Queue: Godofredo Contreras <godofredoc@google.com>
Commit-Queue: Christopher Fujino <fujino@google.com>
diff --git a/recipes/engine.expected/Linux Fuchsia failing test.json b/recipes/engine.expected/Linux Fuchsia failing test.json
index 3dfb2ba..a497f38 100644
--- a/recipes/engine.expected/Linux Fuchsia failing test.json
+++ b/recipes/engine.expected/Linux Fuchsia failing test.json
@@ -206,7 +206,8 @@
   {
     "cmd": [
       "git",
-      "fetch"
+      "fetch",
+      "--tags"
     ],
     "cwd": "[CACHE]/builder/src/third_party/dart",
     "env": {
diff --git a/recipes/engine.expected/clobber.json b/recipes/engine.expected/clobber.json
index 2fbe5b5..80bfdc9 100644
--- a/recipes/engine.expected/clobber.json
+++ b/recipes/engine.expected/clobber.json
@@ -208,7 +208,8 @@
   {
     "cmd": [
       "git",
-      "fetch"
+      "fetch",
+      "--tags"
     ],
     "cwd": "[CACHE]/builder/src/third_party/dart",
     "env": {
diff --git a/recipes/engine.expected/experimental.json b/recipes/engine.expected/experimental.json
index 17656c3..148a259 100644
--- a/recipes/engine.expected/experimental.json
+++ b/recipes/engine.expected/experimental.json
@@ -206,7 +206,8 @@
   {
     "cmd": [
       "git",
-      "fetch"
+      "fetch",
+      "--tags"
     ],
     "cwd": "[CACHE]/builder/src/third_party/dart",
     "env": {
diff --git a/recipes/engine.expected/experimental_upload.json b/recipes/engine.expected/experimental_upload.json
index 413c7e6..dcfb5e5 100644
--- a/recipes/engine.expected/experimental_upload.json
+++ b/recipes/engine.expected/experimental_upload.json
@@ -206,7 +206,8 @@
   {
     "cmd": [
       "git",
-      "fetch"
+      "fetch",
+      "--tags"
     ],
     "cwd": "[CACHE]/builder/src/third_party/dart",
     "env": {
diff --git a/recipes/engine.expected/first_bot_update_failed.json b/recipes/engine.expected/first_bot_update_failed.json
index 94591da..b583496 100644
--- a/recipes/engine.expected/first_bot_update_failed.json
+++ b/recipes/engine.expected/first_bot_update_failed.json
@@ -314,7 +314,8 @@
   {
     "cmd": [
       "git",
-      "fetch"
+      "fetch",
+      "--tags"
     ],
     "cwd": "[CACHE]/builder/src/third_party/dart",
     "env": {
diff --git a/recipes/engine.expected/linux.json b/recipes/engine.expected/linux.json
index 53fde2a..77bf05c 100644
--- a/recipes/engine.expected/linux.json
+++ b/recipes/engine.expected/linux.json
@@ -206,7 +206,8 @@
   {
     "cmd": [
       "git",
-      "fetch"
+      "fetch",
+      "--tags"
     ],
     "cwd": "[CACHE]/builder/src/third_party/dart",
     "env": {
diff --git a/recipes/engine.expected/linux_maven_or_bitcode.json b/recipes/engine.expected/linux_maven_or_bitcode.json
index 53fde2a..77bf05c 100644
--- a/recipes/engine.expected/linux_maven_or_bitcode.json
+++ b/recipes/engine.expected/linux_maven_or_bitcode.json
@@ -206,7 +206,8 @@
   {
     "cmd": [
       "git",
-      "fetch"
+      "fetch",
+      "--tags"
     ],
     "cwd": "[CACHE]/builder/src/third_party/dart",
     "env": {
diff --git a/recipes/engine.expected/linux_maven_or_bitcode_publish_cipd.json b/recipes/engine.expected/linux_maven_or_bitcode_publish_cipd.json
index 53fde2a..77bf05c 100644
--- a/recipes/engine.expected/linux_maven_or_bitcode_publish_cipd.json
+++ b/recipes/engine.expected/linux_maven_or_bitcode_publish_cipd.json
@@ -206,7 +206,8 @@
   {
     "cmd": [
       "git",
-      "fetch"
+      "fetch",
+      "--tags"
     ],
     "cwd": "[CACHE]/builder/src/third_party/dart",
     "env": {
diff --git a/recipes/engine.expected/linux_publish_cipd.json b/recipes/engine.expected/linux_publish_cipd.json
index 53fde2a..77bf05c 100644
--- a/recipes/engine.expected/linux_publish_cipd.json
+++ b/recipes/engine.expected/linux_publish_cipd.json
@@ -206,7 +206,8 @@
   {
     "cmd": [
       "git",
-      "fetch"
+      "fetch",
+      "--tags"
     ],
     "cwd": "[CACHE]/builder/src/third_party/dart",
     "env": {
diff --git a/recipes/engine.expected/linux_upload.json b/recipes/engine.expected/linux_upload.json
index 271bbcb..f69bb27 100644
--- a/recipes/engine.expected/linux_upload.json
+++ b/recipes/engine.expected/linux_upload.json
@@ -206,7 +206,8 @@
   {
     "cmd": [
       "git",
-      "fetch"
+      "fetch",
+      "--tags"
     ],
     "cwd": "[CACHE]/builder/src/third_party/dart",
     "env": {
diff --git a/recipes/engine.expected/linux_upload_maven_or_bitcode.json b/recipes/engine.expected/linux_upload_maven_or_bitcode.json
index 0708cf4..4f5437c 100644
--- a/recipes/engine.expected/linux_upload_maven_or_bitcode.json
+++ b/recipes/engine.expected/linux_upload_maven_or_bitcode.json
@@ -206,7 +206,8 @@
   {
     "cmd": [
       "git",
-      "fetch"
+      "fetch",
+      "--tags"
     ],
     "cwd": "[CACHE]/builder/src/third_party/dart",
     "env": {
diff --git a/recipes/engine.expected/linux_upload_maven_or_bitcode_publish_cipd.json b/recipes/engine.expected/linux_upload_maven_or_bitcode_publish_cipd.json
index 1b8768a..f49ed2e 100644
--- a/recipes/engine.expected/linux_upload_maven_or_bitcode_publish_cipd.json
+++ b/recipes/engine.expected/linux_upload_maven_or_bitcode_publish_cipd.json
@@ -206,7 +206,8 @@
   {
     "cmd": [
       "git",
-      "fetch"
+      "fetch",
+      "--tags"
     ],
     "cwd": "[CACHE]/builder/src/third_party/dart",
     "env": {
diff --git a/recipes/engine.expected/linux_upload_publish_cipd.json b/recipes/engine.expected/linux_upload_publish_cipd.json
index a61c82a..f121e0a 100644
--- a/recipes/engine.expected/linux_upload_publish_cipd.json
+++ b/recipes/engine.expected/linux_upload_publish_cipd.json
@@ -206,7 +206,8 @@
   {
     "cmd": [
       "git",
-      "fetch"
+      "fetch",
+      "--tags"
     ],
     "cwd": "[CACHE]/builder/src/third_party/dart",
     "env": {
diff --git a/recipes/engine.expected/mac.json b/recipes/engine.expected/mac.json
index f9d863e..ab2566e 100644
--- a/recipes/engine.expected/mac.json
+++ b/recipes/engine.expected/mac.json
@@ -158,7 +158,8 @@
   {
     "cmd": [
       "git",
-      "fetch"
+      "fetch",
+      "--tags"
     ],
     "cwd": "[CACHE]/builder/src/third_party/dart",
     "env": {
diff --git a/recipes/engine.expected/mac_maven_or_bitcode.json b/recipes/engine.expected/mac_maven_or_bitcode.json
index 8c28ece..6d9e6cb 100644
--- a/recipes/engine.expected/mac_maven_or_bitcode.json
+++ b/recipes/engine.expected/mac_maven_or_bitcode.json
@@ -158,7 +158,8 @@
   {
     "cmd": [
       "git",
-      "fetch"
+      "fetch",
+      "--tags"
     ],
     "cwd": "[CACHE]/builder/src/third_party/dart",
     "env": {
diff --git a/recipes/engine.expected/mac_maven_or_bitcode_publish_cipd.json b/recipes/engine.expected/mac_maven_or_bitcode_publish_cipd.json
index 8c28ece..6d9e6cb 100644
--- a/recipes/engine.expected/mac_maven_or_bitcode_publish_cipd.json
+++ b/recipes/engine.expected/mac_maven_or_bitcode_publish_cipd.json
@@ -158,7 +158,8 @@
   {
     "cmd": [
       "git",
-      "fetch"
+      "fetch",
+      "--tags"
     ],
     "cwd": "[CACHE]/builder/src/third_party/dart",
     "env": {
diff --git a/recipes/engine.expected/mac_publish_cipd.json b/recipes/engine.expected/mac_publish_cipd.json
index f9d863e..ab2566e 100644
--- a/recipes/engine.expected/mac_publish_cipd.json
+++ b/recipes/engine.expected/mac_publish_cipd.json
@@ -158,7 +158,8 @@
   {
     "cmd": [
       "git",
-      "fetch"
+      "fetch",
+      "--tags"
     ],
     "cwd": "[CACHE]/builder/src/third_party/dart",
     "env": {
diff --git a/recipes/engine.expected/mac_upload.json b/recipes/engine.expected/mac_upload.json
index a5a0783..3061141 100644
--- a/recipes/engine.expected/mac_upload.json
+++ b/recipes/engine.expected/mac_upload.json
@@ -158,7 +158,8 @@
   {
     "cmd": [
       "git",
-      "fetch"
+      "fetch",
+      "--tags"
     ],
     "cwd": "[CACHE]/builder/src/third_party/dart",
     "env": {
diff --git a/recipes/engine.expected/mac_upload_maven_or_bitcode.json b/recipes/engine.expected/mac_upload_maven_or_bitcode.json
index a6cd3b0..5988648 100644
--- a/recipes/engine.expected/mac_upload_maven_or_bitcode.json
+++ b/recipes/engine.expected/mac_upload_maven_or_bitcode.json
@@ -158,7 +158,8 @@
   {
     "cmd": [
       "git",
-      "fetch"
+      "fetch",
+      "--tags"
     ],
     "cwd": "[CACHE]/builder/src/third_party/dart",
     "env": {
diff --git a/recipes/engine.expected/mac_upload_maven_or_bitcode_publish_cipd.json b/recipes/engine.expected/mac_upload_maven_or_bitcode_publish_cipd.json
index a6cd3b0..5988648 100644
--- a/recipes/engine.expected/mac_upload_maven_or_bitcode_publish_cipd.json
+++ b/recipes/engine.expected/mac_upload_maven_or_bitcode_publish_cipd.json
@@ -158,7 +158,8 @@
   {
     "cmd": [
       "git",
-      "fetch"
+      "fetch",
+      "--tags"
     ],
     "cwd": "[CACHE]/builder/src/third_party/dart",
     "env": {
diff --git a/recipes/engine.expected/mac_upload_publish_cipd.json b/recipes/engine.expected/mac_upload_publish_cipd.json
index a5a0783..3061141 100644
--- a/recipes/engine.expected/mac_upload_publish_cipd.json
+++ b/recipes/engine.expected/mac_upload_publish_cipd.json
@@ -158,7 +158,8 @@
   {
     "cmd": [
       "git",
-      "fetch"
+      "fetch",
+      "--tags"
     ],
     "cwd": "[CACHE]/builder/src/third_party/dart",
     "env": {
diff --git a/recipes/engine.expected/pull_request.json b/recipes/engine.expected/pull_request.json
index 587a572..66a4c6b 100644
--- a/recipes/engine.expected/pull_request.json
+++ b/recipes/engine.expected/pull_request.json
@@ -208,7 +208,8 @@
   {
     "cmd": [
       "git",
-      "fetch"
+      "fetch",
+      "--tags"
     ],
     "cwd": "[CACHE]/builder/src/third_party/dart",
     "env": {
diff --git a/recipes/engine.expected/win.json b/recipes/engine.expected/win.json
index 8079a12..cdb2dfb 100644
--- a/recipes/engine.expected/win.json
+++ b/recipes/engine.expected/win.json
@@ -161,7 +161,8 @@
   {
     "cmd": [
       "git",
-      "fetch"
+      "fetch",
+      "--tags"
     ],
     "cwd": "[CACHE]\\builder\\src\\third_party\\dart",
     "env": {
diff --git a/recipes/engine.expected/win_maven_or_bitcode.json b/recipes/engine.expected/win_maven_or_bitcode.json
index 8079a12..cdb2dfb 100644
--- a/recipes/engine.expected/win_maven_or_bitcode.json
+++ b/recipes/engine.expected/win_maven_or_bitcode.json
@@ -161,7 +161,8 @@
   {
     "cmd": [
       "git",
-      "fetch"
+      "fetch",
+      "--tags"
     ],
     "cwd": "[CACHE]\\builder\\src\\third_party\\dart",
     "env": {
diff --git a/recipes/engine.expected/win_maven_or_bitcode_publish_cipd.json b/recipes/engine.expected/win_maven_or_bitcode_publish_cipd.json
index 8079a12..cdb2dfb 100644
--- a/recipes/engine.expected/win_maven_or_bitcode_publish_cipd.json
+++ b/recipes/engine.expected/win_maven_or_bitcode_publish_cipd.json
@@ -161,7 +161,8 @@
   {
     "cmd": [
       "git",
-      "fetch"
+      "fetch",
+      "--tags"
     ],
     "cwd": "[CACHE]\\builder\\src\\third_party\\dart",
     "env": {
diff --git a/recipes/engine.expected/win_publish_cipd.json b/recipes/engine.expected/win_publish_cipd.json
index 8079a12..cdb2dfb 100644
--- a/recipes/engine.expected/win_publish_cipd.json
+++ b/recipes/engine.expected/win_publish_cipd.json
@@ -161,7 +161,8 @@
   {
     "cmd": [
       "git",
-      "fetch"
+      "fetch",
+      "--tags"
     ],
     "cwd": "[CACHE]\\builder\\src\\third_party\\dart",
     "env": {
diff --git a/recipes/engine.expected/win_upload.json b/recipes/engine.expected/win_upload.json
index 4255b8d..66e9c2a 100644
--- a/recipes/engine.expected/win_upload.json
+++ b/recipes/engine.expected/win_upload.json
@@ -161,7 +161,8 @@
   {
     "cmd": [
       "git",
-      "fetch"
+      "fetch",
+      "--tags"
     ],
     "cwd": "[CACHE]\\builder\\src\\third_party\\dart",
     "env": {
diff --git a/recipes/engine.expected/win_upload_maven_or_bitcode.json b/recipes/engine.expected/win_upload_maven_or_bitcode.json
index 4255b8d..66e9c2a 100644
--- a/recipes/engine.expected/win_upload_maven_or_bitcode.json
+++ b/recipes/engine.expected/win_upload_maven_or_bitcode.json
@@ -161,7 +161,8 @@
   {
     "cmd": [
       "git",
-      "fetch"
+      "fetch",
+      "--tags"
     ],
     "cwd": "[CACHE]\\builder\\src\\third_party\\dart",
     "env": {
diff --git a/recipes/engine.expected/win_upload_maven_or_bitcode_publish_cipd.json b/recipes/engine.expected/win_upload_maven_or_bitcode_publish_cipd.json
index 4255b8d..66e9c2a 100644
--- a/recipes/engine.expected/win_upload_maven_or_bitcode_publish_cipd.json
+++ b/recipes/engine.expected/win_upload_maven_or_bitcode_publish_cipd.json
@@ -161,7 +161,8 @@
   {
     "cmd": [
       "git",
-      "fetch"
+      "fetch",
+      "--tags"
     ],
     "cwd": "[CACHE]\\builder\\src\\third_party\\dart",
     "env": {
diff --git a/recipes/engine.expected/win_upload_publish_cipd.json b/recipes/engine.expected/win_upload_publish_cipd.json
index 4255b8d..66e9c2a 100644
--- a/recipes/engine.expected/win_upload_publish_cipd.json
+++ b/recipes/engine.expected/win_upload_publish_cipd.json
@@ -161,7 +161,8 @@
   {
     "cmd": [
       "git",
-      "fetch"
+      "fetch",
+      "--tags"
     ],
     "cwd": "[CACHE]\\builder\\src\\third_party\\dart",
     "env": {
diff --git a/recipes/engine.py b/recipes/engine.py
index 49ec00c..d930210 100644
--- a/recipes/engine.py
+++ b/recipes/engine.py
@@ -1493,7 +1493,7 @@
     # Presence of tags in git repo is critical for determining dart version.
     dart_sdk_dir = GetCheckoutPath(api).join('third_party', 'dart')
     with api.context(cwd=dart_sdk_dir):
-      api.step('Fetch dart tags', ['git', 'fetch'])
+      api.step('Fetch dart tags', ['git', 'fetch', '--tags'])
     api.gclient.runhooks()
 
     with api.step.nest('Android SDK Licenses'):
diff --git a/recipes/engine_1_20_0.expected/Linux Fuchsia failing test.json b/recipes/engine_1_20_0.expected/Linux Fuchsia failing test.json
index c5b3731..a9dd493 100644
--- a/recipes/engine_1_20_0.expected/Linux Fuchsia failing test.json
+++ b/recipes/engine_1_20_0.expected/Linux Fuchsia failing test.json
@@ -158,7 +158,8 @@
   {
     "cmd": [
       "git",
-      "fetch"
+      "fetch",
+      "--tags"
     ],
     "cwd": "[CACHE]/builder/src/third_party/dart",
     "env": {
diff --git a/recipes/engine_1_20_0.expected/clobber.json b/recipes/engine_1_20_0.expected/clobber.json
index 9be244c..2a1c146 100644
--- a/recipes/engine_1_20_0.expected/clobber.json
+++ b/recipes/engine_1_20_0.expected/clobber.json
@@ -160,7 +160,8 @@
   {
     "cmd": [
       "git",
-      "fetch"
+      "fetch",
+      "--tags"
     ],
     "cwd": "[CACHE]/builder/src/third_party/dart",
     "env": {
diff --git a/recipes/engine_1_20_0.expected/experimental.json b/recipes/engine_1_20_0.expected/experimental.json
index 80c145b..e3af183 100644
--- a/recipes/engine_1_20_0.expected/experimental.json
+++ b/recipes/engine_1_20_0.expected/experimental.json
@@ -158,7 +158,8 @@
   {
     "cmd": [
       "git",
-      "fetch"
+      "fetch",
+      "--tags"
     ],
     "cwd": "[CACHE]/builder/src/third_party/dart",
     "env": {
diff --git a/recipes/engine_1_20_0.expected/experimental_upload.json b/recipes/engine_1_20_0.expected/experimental_upload.json
index f79ede6..98d6a48 100644
--- a/recipes/engine_1_20_0.expected/experimental_upload.json
+++ b/recipes/engine_1_20_0.expected/experimental_upload.json
@@ -158,7 +158,8 @@
   {
     "cmd": [
       "git",
-      "fetch"
+      "fetch",
+      "--tags"
     ],
     "cwd": "[CACHE]/builder/src/third_party/dart",
     "env": {
diff --git a/recipes/engine_1_20_0.expected/first_bot_update_failed.json b/recipes/engine_1_20_0.expected/first_bot_update_failed.json
index 6608246..f2a14d3 100644
--- a/recipes/engine_1_20_0.expected/first_bot_update_failed.json
+++ b/recipes/engine_1_20_0.expected/first_bot_update_failed.json
@@ -266,7 +266,8 @@
   {
     "cmd": [
       "git",
-      "fetch"
+      "fetch",
+      "--tags"
     ],
     "cwd": "[CACHE]/builder/src/third_party/dart",
     "env": {
diff --git a/recipes/engine_1_20_0.expected/linux.json b/recipes/engine_1_20_0.expected/linux.json
index 5a33dd2..92083ef 100644
--- a/recipes/engine_1_20_0.expected/linux.json
+++ b/recipes/engine_1_20_0.expected/linux.json
@@ -158,7 +158,8 @@
   {
     "cmd": [
       "git",
-      "fetch"
+      "fetch",
+      "--tags"
     ],
     "cwd": "[CACHE]/builder/src/third_party/dart",
     "env": {
diff --git a/recipes/engine_1_20_0.expected/linux_maven_or_bitcode.json b/recipes/engine_1_20_0.expected/linux_maven_or_bitcode.json
index 5a33dd2..92083ef 100644
--- a/recipes/engine_1_20_0.expected/linux_maven_or_bitcode.json
+++ b/recipes/engine_1_20_0.expected/linux_maven_or_bitcode.json
@@ -158,7 +158,8 @@
   {
     "cmd": [
       "git",
-      "fetch"
+      "fetch",
+      "--tags"
     ],
     "cwd": "[CACHE]/builder/src/third_party/dart",
     "env": {
diff --git a/recipes/engine_1_20_0.expected/linux_maven_or_bitcode_publish_cipd.json b/recipes/engine_1_20_0.expected/linux_maven_or_bitcode_publish_cipd.json
index 5a33dd2..92083ef 100644
--- a/recipes/engine_1_20_0.expected/linux_maven_or_bitcode_publish_cipd.json
+++ b/recipes/engine_1_20_0.expected/linux_maven_or_bitcode_publish_cipd.json
@@ -158,7 +158,8 @@
   {
     "cmd": [
       "git",
-      "fetch"
+      "fetch",
+      "--tags"
     ],
     "cwd": "[CACHE]/builder/src/third_party/dart",
     "env": {
diff --git a/recipes/engine_1_20_0.expected/linux_publish_cipd.json b/recipes/engine_1_20_0.expected/linux_publish_cipd.json
index 5a33dd2..92083ef 100644
--- a/recipes/engine_1_20_0.expected/linux_publish_cipd.json
+++ b/recipes/engine_1_20_0.expected/linux_publish_cipd.json
@@ -158,7 +158,8 @@
   {
     "cmd": [
       "git",
-      "fetch"
+      "fetch",
+      "--tags"
     ],
     "cwd": "[CACHE]/builder/src/third_party/dart",
     "env": {
diff --git a/recipes/engine_1_20_0.expected/linux_upload.json b/recipes/engine_1_20_0.expected/linux_upload.json
index 675ef1d..11e8b84 100644
--- a/recipes/engine_1_20_0.expected/linux_upload.json
+++ b/recipes/engine_1_20_0.expected/linux_upload.json
@@ -158,7 +158,8 @@
   {
     "cmd": [
       "git",
-      "fetch"
+      "fetch",
+      "--tags"
     ],
     "cwd": "[CACHE]/builder/src/third_party/dart",
     "env": {
diff --git a/recipes/engine_1_20_0.expected/linux_upload_maven_or_bitcode.json b/recipes/engine_1_20_0.expected/linux_upload_maven_or_bitcode.json
index 1ce33f1..7ecdb9b 100644
--- a/recipes/engine_1_20_0.expected/linux_upload_maven_or_bitcode.json
+++ b/recipes/engine_1_20_0.expected/linux_upload_maven_or_bitcode.json
@@ -158,7 +158,8 @@
   {
     "cmd": [
       "git",
-      "fetch"
+      "fetch",
+      "--tags"
     ],
     "cwd": "[CACHE]/builder/src/third_party/dart",
     "env": {
diff --git a/recipes/engine_1_20_0.expected/linux_upload_maven_or_bitcode_publish_cipd.json b/recipes/engine_1_20_0.expected/linux_upload_maven_or_bitcode_publish_cipd.json
index a00b3cc..ec2a42d 100644
--- a/recipes/engine_1_20_0.expected/linux_upload_maven_or_bitcode_publish_cipd.json
+++ b/recipes/engine_1_20_0.expected/linux_upload_maven_or_bitcode_publish_cipd.json
@@ -158,7 +158,8 @@
   {
     "cmd": [
       "git",
-      "fetch"
+      "fetch",
+      "--tags"
     ],
     "cwd": "[CACHE]/builder/src/third_party/dart",
     "env": {
diff --git a/recipes/engine_1_20_0.expected/linux_upload_publish_cipd.json b/recipes/engine_1_20_0.expected/linux_upload_publish_cipd.json
index 701d2a9..76dba0a 100644
--- a/recipes/engine_1_20_0.expected/linux_upload_publish_cipd.json
+++ b/recipes/engine_1_20_0.expected/linux_upload_publish_cipd.json
@@ -158,7 +158,8 @@
   {
     "cmd": [
       "git",
-      "fetch"
+      "fetch",
+      "--tags"
     ],
     "cwd": "[CACHE]/builder/src/third_party/dart",
     "env": {
diff --git a/recipes/engine_1_20_0.expected/mac.json b/recipes/engine_1_20_0.expected/mac.json
index f9d863e..ab2566e 100644
--- a/recipes/engine_1_20_0.expected/mac.json
+++ b/recipes/engine_1_20_0.expected/mac.json
@@ -158,7 +158,8 @@
   {
     "cmd": [
       "git",
-      "fetch"
+      "fetch",
+      "--tags"
     ],
     "cwd": "[CACHE]/builder/src/third_party/dart",
     "env": {
diff --git a/recipes/engine_1_20_0.expected/mac_maven_or_bitcode.json b/recipes/engine_1_20_0.expected/mac_maven_or_bitcode.json
index 8c28ece..6d9e6cb 100644
--- a/recipes/engine_1_20_0.expected/mac_maven_or_bitcode.json
+++ b/recipes/engine_1_20_0.expected/mac_maven_or_bitcode.json
@@ -158,7 +158,8 @@
   {
     "cmd": [
       "git",
-      "fetch"
+      "fetch",
+      "--tags"
     ],
     "cwd": "[CACHE]/builder/src/third_party/dart",
     "env": {
diff --git a/recipes/engine_1_20_0.expected/mac_maven_or_bitcode_publish_cipd.json b/recipes/engine_1_20_0.expected/mac_maven_or_bitcode_publish_cipd.json
index 8c28ece..6d9e6cb 100644
--- a/recipes/engine_1_20_0.expected/mac_maven_or_bitcode_publish_cipd.json
+++ b/recipes/engine_1_20_0.expected/mac_maven_or_bitcode_publish_cipd.json
@@ -158,7 +158,8 @@
   {
     "cmd": [
       "git",
-      "fetch"
+      "fetch",
+      "--tags"
     ],
     "cwd": "[CACHE]/builder/src/third_party/dart",
     "env": {
diff --git a/recipes/engine_1_20_0.expected/mac_publish_cipd.json b/recipes/engine_1_20_0.expected/mac_publish_cipd.json
index f9d863e..ab2566e 100644
--- a/recipes/engine_1_20_0.expected/mac_publish_cipd.json
+++ b/recipes/engine_1_20_0.expected/mac_publish_cipd.json
@@ -158,7 +158,8 @@
   {
     "cmd": [
       "git",
-      "fetch"
+      "fetch",
+      "--tags"
     ],
     "cwd": "[CACHE]/builder/src/third_party/dart",
     "env": {
diff --git a/recipes/engine_1_20_0.expected/mac_upload.json b/recipes/engine_1_20_0.expected/mac_upload.json
index a5a0783..3061141 100644
--- a/recipes/engine_1_20_0.expected/mac_upload.json
+++ b/recipes/engine_1_20_0.expected/mac_upload.json
@@ -158,7 +158,8 @@
   {
     "cmd": [
       "git",
-      "fetch"
+      "fetch",
+      "--tags"
     ],
     "cwd": "[CACHE]/builder/src/third_party/dart",
     "env": {
diff --git a/recipes/engine_1_20_0.expected/mac_upload_maven_or_bitcode.json b/recipes/engine_1_20_0.expected/mac_upload_maven_or_bitcode.json
index a6cd3b0..5988648 100644
--- a/recipes/engine_1_20_0.expected/mac_upload_maven_or_bitcode.json
+++ b/recipes/engine_1_20_0.expected/mac_upload_maven_or_bitcode.json
@@ -158,7 +158,8 @@
   {
     "cmd": [
       "git",
-      "fetch"
+      "fetch",
+      "--tags"
     ],
     "cwd": "[CACHE]/builder/src/third_party/dart",
     "env": {
diff --git a/recipes/engine_1_20_0.expected/mac_upload_maven_or_bitcode_publish_cipd.json b/recipes/engine_1_20_0.expected/mac_upload_maven_or_bitcode_publish_cipd.json
index a6cd3b0..5988648 100644
--- a/recipes/engine_1_20_0.expected/mac_upload_maven_or_bitcode_publish_cipd.json
+++ b/recipes/engine_1_20_0.expected/mac_upload_maven_or_bitcode_publish_cipd.json
@@ -158,7 +158,8 @@
   {
     "cmd": [
       "git",
-      "fetch"
+      "fetch",
+      "--tags"
     ],
     "cwd": "[CACHE]/builder/src/third_party/dart",
     "env": {
diff --git a/recipes/engine_1_20_0.expected/mac_upload_publish_cipd.json b/recipes/engine_1_20_0.expected/mac_upload_publish_cipd.json
index a5a0783..3061141 100644
--- a/recipes/engine_1_20_0.expected/mac_upload_publish_cipd.json
+++ b/recipes/engine_1_20_0.expected/mac_upload_publish_cipd.json
@@ -158,7 +158,8 @@
   {
     "cmd": [
       "git",
-      "fetch"
+      "fetch",
+      "--tags"
     ],
     "cwd": "[CACHE]/builder/src/third_party/dart",
     "env": {
diff --git a/recipes/engine_1_20_0.expected/pull_request.json b/recipes/engine_1_20_0.expected/pull_request.json
index d992d9c..6b7644d 100644
--- a/recipes/engine_1_20_0.expected/pull_request.json
+++ b/recipes/engine_1_20_0.expected/pull_request.json
@@ -160,7 +160,8 @@
   {
     "cmd": [
       "git",
-      "fetch"
+      "fetch",
+      "--tags"
     ],
     "cwd": "[CACHE]/builder/src/third_party/dart",
     "env": {
diff --git a/recipes/engine_1_20_0.expected/win.json b/recipes/engine_1_20_0.expected/win.json
index 8079a12..cdb2dfb 100644
--- a/recipes/engine_1_20_0.expected/win.json
+++ b/recipes/engine_1_20_0.expected/win.json
@@ -161,7 +161,8 @@
   {
     "cmd": [
       "git",
-      "fetch"
+      "fetch",
+      "--tags"
     ],
     "cwd": "[CACHE]\\builder\\src\\third_party\\dart",
     "env": {
diff --git a/recipes/engine_1_20_0.expected/win_maven_or_bitcode.json b/recipes/engine_1_20_0.expected/win_maven_or_bitcode.json
index 8079a12..cdb2dfb 100644
--- a/recipes/engine_1_20_0.expected/win_maven_or_bitcode.json
+++ b/recipes/engine_1_20_0.expected/win_maven_or_bitcode.json
@@ -161,7 +161,8 @@
   {
     "cmd": [
       "git",
-      "fetch"
+      "fetch",
+      "--tags"
     ],
     "cwd": "[CACHE]\\builder\\src\\third_party\\dart",
     "env": {
diff --git a/recipes/engine_1_20_0.expected/win_maven_or_bitcode_publish_cipd.json b/recipes/engine_1_20_0.expected/win_maven_or_bitcode_publish_cipd.json
index 8079a12..cdb2dfb 100644
--- a/recipes/engine_1_20_0.expected/win_maven_or_bitcode_publish_cipd.json
+++ b/recipes/engine_1_20_0.expected/win_maven_or_bitcode_publish_cipd.json
@@ -161,7 +161,8 @@
   {
     "cmd": [
       "git",
-      "fetch"
+      "fetch",
+      "--tags"
     ],
     "cwd": "[CACHE]\\builder\\src\\third_party\\dart",
     "env": {
diff --git a/recipes/engine_1_20_0.expected/win_publish_cipd.json b/recipes/engine_1_20_0.expected/win_publish_cipd.json
index 8079a12..cdb2dfb 100644
--- a/recipes/engine_1_20_0.expected/win_publish_cipd.json
+++ b/recipes/engine_1_20_0.expected/win_publish_cipd.json
@@ -161,7 +161,8 @@
   {
     "cmd": [
       "git",
-      "fetch"
+      "fetch",
+      "--tags"
     ],
     "cwd": "[CACHE]\\builder\\src\\third_party\\dart",
     "env": {
diff --git a/recipes/engine_1_20_0.expected/win_upload.json b/recipes/engine_1_20_0.expected/win_upload.json
index 4255b8d..66e9c2a 100644
--- a/recipes/engine_1_20_0.expected/win_upload.json
+++ b/recipes/engine_1_20_0.expected/win_upload.json
@@ -161,7 +161,8 @@
   {
     "cmd": [
       "git",
-      "fetch"
+      "fetch",
+      "--tags"
     ],
     "cwd": "[CACHE]\\builder\\src\\third_party\\dart",
     "env": {
diff --git a/recipes/engine_1_20_0.expected/win_upload_maven_or_bitcode.json b/recipes/engine_1_20_0.expected/win_upload_maven_or_bitcode.json
index 4255b8d..66e9c2a 100644
--- a/recipes/engine_1_20_0.expected/win_upload_maven_or_bitcode.json
+++ b/recipes/engine_1_20_0.expected/win_upload_maven_or_bitcode.json
@@ -161,7 +161,8 @@
   {
     "cmd": [
       "git",
-      "fetch"
+      "fetch",
+      "--tags"
     ],
     "cwd": "[CACHE]\\builder\\src\\third_party\\dart",
     "env": {
diff --git a/recipes/engine_1_20_0.expected/win_upload_maven_or_bitcode_publish_cipd.json b/recipes/engine_1_20_0.expected/win_upload_maven_or_bitcode_publish_cipd.json
index 4255b8d..66e9c2a 100644
--- a/recipes/engine_1_20_0.expected/win_upload_maven_or_bitcode_publish_cipd.json
+++ b/recipes/engine_1_20_0.expected/win_upload_maven_or_bitcode_publish_cipd.json
@@ -161,7 +161,8 @@
   {
     "cmd": [
       "git",
-      "fetch"
+      "fetch",
+      "--tags"
     ],
     "cwd": "[CACHE]\\builder\\src\\third_party\\dart",
     "env": {
diff --git a/recipes/engine_1_20_0.expected/win_upload_publish_cipd.json b/recipes/engine_1_20_0.expected/win_upload_publish_cipd.json
index 4255b8d..66e9c2a 100644
--- a/recipes/engine_1_20_0.expected/win_upload_publish_cipd.json
+++ b/recipes/engine_1_20_0.expected/win_upload_publish_cipd.json
@@ -161,7 +161,8 @@
   {
     "cmd": [
       "git",
-      "fetch"
+      "fetch",
+      "--tags"
     ],
     "cwd": "[CACHE]\\builder\\src\\third_party\\dart",
     "env": {
diff --git a/recipes/engine_1_20_0.py b/recipes/engine_1_20_0.py
index bdc01e3..cad4af1 100644
--- a/recipes/engine_1_20_0.py
+++ b/recipes/engine_1_20_0.py
@@ -1481,7 +1481,7 @@
     # Presence of tags in git repo is critical for determining dart version.
     dart_sdk_dir = GetCheckoutPath(api).join('third_party', 'dart')
     with api.context(cwd=dart_sdk_dir):
-      api.step('Fetch dart tags', ['git', 'fetch'])
+      api.step('Fetch dart tags', ['git', 'fetch', '--tags'])
     api.gclient.runhooks()
 
     with api.step.nest('Android SDK Licenses'):
diff --git a/recipes/engine_v1_17_0.expected/Linux Fuchsia failing test.json b/recipes/engine_v1_17_0.expected/Linux Fuchsia failing test.json
index d26f072..b4c851d 100644
--- a/recipes/engine_v1_17_0.expected/Linux Fuchsia failing test.json
+++ b/recipes/engine_v1_17_0.expected/Linux Fuchsia failing test.json
@@ -174,7 +174,8 @@
   {
     "cmd": [
       "git",
-      "fetch"
+      "fetch",
+      "--tags"
     ],
     "cwd": "[CACHE]/builder/src/third_party/dart",
     "env": {
diff --git a/recipes/engine_v1_17_0.expected/clobber.json b/recipes/engine_v1_17_0.expected/clobber.json
index c37fdd6..82d326d 100644
--- a/recipes/engine_v1_17_0.expected/clobber.json
+++ b/recipes/engine_v1_17_0.expected/clobber.json
@@ -189,7 +189,8 @@
   {
     "cmd": [
       "git",
-      "fetch"
+      "fetch",
+      "--tags"
     ],
     "cwd": "[CACHE]/builder/src/third_party/dart",
     "env": {
diff --git a/recipes/engine_v1_17_0.expected/experimental.json b/recipes/engine_v1_17_0.expected/experimental.json
index d39b4d4..a2014eb 100644
--- a/recipes/engine_v1_17_0.expected/experimental.json
+++ b/recipes/engine_v1_17_0.expected/experimental.json
@@ -174,7 +174,8 @@
   {
     "cmd": [
       "git",
-      "fetch"
+      "fetch",
+      "--tags"
     ],
     "cwd": "[CACHE]/builder/src/third_party/dart",
     "env": {
diff --git a/recipes/engine_v1_17_0.expected/experimental_upload.json b/recipes/engine_v1_17_0.expected/experimental_upload.json
index 2522329..f490211 100644
--- a/recipes/engine_v1_17_0.expected/experimental_upload.json
+++ b/recipes/engine_v1_17_0.expected/experimental_upload.json
@@ -174,7 +174,8 @@
   {
     "cmd": [
       "git",
-      "fetch"
+      "fetch",
+      "--tags"
     ],
     "cwd": "[CACHE]/builder/src/third_party/dart",
     "env": {
diff --git a/recipes/engine_v1_17_0.expected/linux.json b/recipes/engine_v1_17_0.expected/linux.json
index 39086fc..1582ea4 100644
--- a/recipes/engine_v1_17_0.expected/linux.json
+++ b/recipes/engine_v1_17_0.expected/linux.json
@@ -174,7 +174,8 @@
   {
     "cmd": [
       "git",
-      "fetch"
+      "fetch",
+      "--tags"
     ],
     "cwd": "[CACHE]/builder/src/third_party/dart",
     "env": {
diff --git a/recipes/engine_v1_17_0.expected/linux_maven_or_bitcode.json b/recipes/engine_v1_17_0.expected/linux_maven_or_bitcode.json
index 39086fc..1582ea4 100644
--- a/recipes/engine_v1_17_0.expected/linux_maven_or_bitcode.json
+++ b/recipes/engine_v1_17_0.expected/linux_maven_or_bitcode.json
@@ -174,7 +174,8 @@
   {
     "cmd": [
       "git",
-      "fetch"
+      "fetch",
+      "--tags"
     ],
     "cwd": "[CACHE]/builder/src/third_party/dart",
     "env": {
diff --git a/recipes/engine_v1_17_0.expected/linux_maven_or_bitcode_publish_cipd.json b/recipes/engine_v1_17_0.expected/linux_maven_or_bitcode_publish_cipd.json
index 39086fc..1582ea4 100644
--- a/recipes/engine_v1_17_0.expected/linux_maven_or_bitcode_publish_cipd.json
+++ b/recipes/engine_v1_17_0.expected/linux_maven_or_bitcode_publish_cipd.json
@@ -174,7 +174,8 @@
   {
     "cmd": [
       "git",
-      "fetch"
+      "fetch",
+      "--tags"
     ],
     "cwd": "[CACHE]/builder/src/third_party/dart",
     "env": {
diff --git a/recipes/engine_v1_17_0.expected/linux_publish_cipd.json b/recipes/engine_v1_17_0.expected/linux_publish_cipd.json
index 39086fc..1582ea4 100644
--- a/recipes/engine_v1_17_0.expected/linux_publish_cipd.json
+++ b/recipes/engine_v1_17_0.expected/linux_publish_cipd.json
@@ -174,7 +174,8 @@
   {
     "cmd": [
       "git",
-      "fetch"
+      "fetch",
+      "--tags"
     ],
     "cwd": "[CACHE]/builder/src/third_party/dart",
     "env": {
diff --git a/recipes/engine_v1_17_0.expected/linux_upload.json b/recipes/engine_v1_17_0.expected/linux_upload.json
index 5c8fa53..00b86cd 100644
--- a/recipes/engine_v1_17_0.expected/linux_upload.json
+++ b/recipes/engine_v1_17_0.expected/linux_upload.json
@@ -174,7 +174,8 @@
   {
     "cmd": [
       "git",
-      "fetch"
+      "fetch",
+      "--tags"
     ],
     "cwd": "[CACHE]/builder/src/third_party/dart",
     "env": {
diff --git a/recipes/engine_v1_17_0.expected/linux_upload_maven_or_bitcode.json b/recipes/engine_v1_17_0.expected/linux_upload_maven_or_bitcode.json
index faa024e..7bc9ede 100644
--- a/recipes/engine_v1_17_0.expected/linux_upload_maven_or_bitcode.json
+++ b/recipes/engine_v1_17_0.expected/linux_upload_maven_or_bitcode.json
@@ -174,7 +174,8 @@
   {
     "cmd": [
       "git",
-      "fetch"
+      "fetch",
+      "--tags"
     ],
     "cwd": "[CACHE]/builder/src/third_party/dart",
     "env": {
diff --git a/recipes/engine_v1_17_0.expected/linux_upload_maven_or_bitcode_publish_cipd.json b/recipes/engine_v1_17_0.expected/linux_upload_maven_or_bitcode_publish_cipd.json
index 2ad8a13..028fb63 100644
--- a/recipes/engine_v1_17_0.expected/linux_upload_maven_or_bitcode_publish_cipd.json
+++ b/recipes/engine_v1_17_0.expected/linux_upload_maven_or_bitcode_publish_cipd.json
@@ -174,7 +174,8 @@
   {
     "cmd": [
       "git",
-      "fetch"
+      "fetch",
+      "--tags"
     ],
     "cwd": "[CACHE]/builder/src/third_party/dart",
     "env": {
diff --git a/recipes/engine_v1_17_0.expected/linux_upload_publish_cipd.json b/recipes/engine_v1_17_0.expected/linux_upload_publish_cipd.json
index 875d9fe..ebf5fd4 100644
--- a/recipes/engine_v1_17_0.expected/linux_upload_publish_cipd.json
+++ b/recipes/engine_v1_17_0.expected/linux_upload_publish_cipd.json
@@ -174,7 +174,8 @@
   {
     "cmd": [
       "git",
-      "fetch"
+      "fetch",
+      "--tags"
     ],
     "cwd": "[CACHE]/builder/src/third_party/dart",
     "env": {
diff --git a/recipes/engine_v1_17_0.expected/mac.json b/recipes/engine_v1_17_0.expected/mac.json
index e66241f..8c5c44a 100644
--- a/recipes/engine_v1_17_0.expected/mac.json
+++ b/recipes/engine_v1_17_0.expected/mac.json
@@ -174,7 +174,8 @@
   {
     "cmd": [
       "git",
-      "fetch"
+      "fetch",
+      "--tags"
     ],
     "cwd": "[CACHE]/builder/src/third_party/dart",
     "env": {
diff --git a/recipes/engine_v1_17_0.expected/mac_maven_or_bitcode.json b/recipes/engine_v1_17_0.expected/mac_maven_or_bitcode.json
index 83eba53..2191f88 100644
--- a/recipes/engine_v1_17_0.expected/mac_maven_or_bitcode.json
+++ b/recipes/engine_v1_17_0.expected/mac_maven_or_bitcode.json
@@ -174,7 +174,8 @@
   {
     "cmd": [
       "git",
-      "fetch"
+      "fetch",
+      "--tags"
     ],
     "cwd": "[CACHE]/builder/src/third_party/dart",
     "env": {
diff --git a/recipes/engine_v1_17_0.expected/mac_maven_or_bitcode_publish_cipd.json b/recipes/engine_v1_17_0.expected/mac_maven_or_bitcode_publish_cipd.json
index 83eba53..2191f88 100644
--- a/recipes/engine_v1_17_0.expected/mac_maven_or_bitcode_publish_cipd.json
+++ b/recipes/engine_v1_17_0.expected/mac_maven_or_bitcode_publish_cipd.json
@@ -174,7 +174,8 @@
   {
     "cmd": [
       "git",
-      "fetch"
+      "fetch",
+      "--tags"
     ],
     "cwd": "[CACHE]/builder/src/third_party/dart",
     "env": {
diff --git a/recipes/engine_v1_17_0.expected/mac_publish_cipd.json b/recipes/engine_v1_17_0.expected/mac_publish_cipd.json
index e66241f..8c5c44a 100644
--- a/recipes/engine_v1_17_0.expected/mac_publish_cipd.json
+++ b/recipes/engine_v1_17_0.expected/mac_publish_cipd.json
@@ -174,7 +174,8 @@
   {
     "cmd": [
       "git",
-      "fetch"
+      "fetch",
+      "--tags"
     ],
     "cwd": "[CACHE]/builder/src/third_party/dart",
     "env": {
diff --git a/recipes/engine_v1_17_0.expected/mac_upload.json b/recipes/engine_v1_17_0.expected/mac_upload.json
index 0fda0d2..e45c6b1 100644
--- a/recipes/engine_v1_17_0.expected/mac_upload.json
+++ b/recipes/engine_v1_17_0.expected/mac_upload.json
@@ -174,7 +174,8 @@
   {
     "cmd": [
       "git",
-      "fetch"
+      "fetch",
+      "--tags"
     ],
     "cwd": "[CACHE]/builder/src/third_party/dart",
     "env": {
diff --git a/recipes/engine_v1_17_0.expected/mac_upload_maven_or_bitcode.json b/recipes/engine_v1_17_0.expected/mac_upload_maven_or_bitcode.json
index dd5a46c..90e914d 100644
--- a/recipes/engine_v1_17_0.expected/mac_upload_maven_or_bitcode.json
+++ b/recipes/engine_v1_17_0.expected/mac_upload_maven_or_bitcode.json
@@ -174,7 +174,8 @@
   {
     "cmd": [
       "git",
-      "fetch"
+      "fetch",
+      "--tags"
     ],
     "cwd": "[CACHE]/builder/src/third_party/dart",
     "env": {
diff --git a/recipes/engine_v1_17_0.expected/mac_upload_maven_or_bitcode_publish_cipd.json b/recipes/engine_v1_17_0.expected/mac_upload_maven_or_bitcode_publish_cipd.json
index dd5a46c..90e914d 100644
--- a/recipes/engine_v1_17_0.expected/mac_upload_maven_or_bitcode_publish_cipd.json
+++ b/recipes/engine_v1_17_0.expected/mac_upload_maven_or_bitcode_publish_cipd.json
@@ -174,7 +174,8 @@
   {
     "cmd": [
       "git",
-      "fetch"
+      "fetch",
+      "--tags"
     ],
     "cwd": "[CACHE]/builder/src/third_party/dart",
     "env": {
diff --git a/recipes/engine_v1_17_0.expected/mac_upload_publish_cipd.json b/recipes/engine_v1_17_0.expected/mac_upload_publish_cipd.json
index 0fda0d2..e45c6b1 100644
--- a/recipes/engine_v1_17_0.expected/mac_upload_publish_cipd.json
+++ b/recipes/engine_v1_17_0.expected/mac_upload_publish_cipd.json
@@ -174,7 +174,8 @@
   {
     "cmd": [
       "git",
-      "fetch"
+      "fetch",
+      "--tags"
     ],
     "cwd": "[CACHE]/builder/src/third_party/dart",
     "env": {
diff --git a/recipes/engine_v1_17_0.expected/pull_request.json b/recipes/engine_v1_17_0.expected/pull_request.json
index 4feb165..5b35161 100644
--- a/recipes/engine_v1_17_0.expected/pull_request.json
+++ b/recipes/engine_v1_17_0.expected/pull_request.json
@@ -176,7 +176,8 @@
   {
     "cmd": [
       "git",
-      "fetch"
+      "fetch",
+      "--tags"
     ],
     "cwd": "[CACHE]/builder/src/third_party/dart",
     "env": {
diff --git a/recipes/engine_v1_17_0.expected/win.json b/recipes/engine_v1_17_0.expected/win.json
index 2bc79a5..f0f904b 100644
--- a/recipes/engine_v1_17_0.expected/win.json
+++ b/recipes/engine_v1_17_0.expected/win.json
@@ -177,7 +177,8 @@
   {
     "cmd": [
       "git",
-      "fetch"
+      "fetch",
+      "--tags"
     ],
     "cwd": "[CACHE]\\builder\\src\\third_party\\dart",
     "env": {
diff --git a/recipes/engine_v1_17_0.expected/win_maven_or_bitcode.json b/recipes/engine_v1_17_0.expected/win_maven_or_bitcode.json
index 2bc79a5..f0f904b 100644
--- a/recipes/engine_v1_17_0.expected/win_maven_or_bitcode.json
+++ b/recipes/engine_v1_17_0.expected/win_maven_or_bitcode.json
@@ -177,7 +177,8 @@
   {
     "cmd": [
       "git",
-      "fetch"
+      "fetch",
+      "--tags"
     ],
     "cwd": "[CACHE]\\builder\\src\\third_party\\dart",
     "env": {
diff --git a/recipes/engine_v1_17_0.expected/win_maven_or_bitcode_publish_cipd.json b/recipes/engine_v1_17_0.expected/win_maven_or_bitcode_publish_cipd.json
index 2bc79a5..f0f904b 100644
--- a/recipes/engine_v1_17_0.expected/win_maven_or_bitcode_publish_cipd.json
+++ b/recipes/engine_v1_17_0.expected/win_maven_or_bitcode_publish_cipd.json
@@ -177,7 +177,8 @@
   {
     "cmd": [
       "git",
-      "fetch"
+      "fetch",
+      "--tags"
     ],
     "cwd": "[CACHE]\\builder\\src\\third_party\\dart",
     "env": {
diff --git a/recipes/engine_v1_17_0.expected/win_publish_cipd.json b/recipes/engine_v1_17_0.expected/win_publish_cipd.json
index 2bc79a5..f0f904b 100644
--- a/recipes/engine_v1_17_0.expected/win_publish_cipd.json
+++ b/recipes/engine_v1_17_0.expected/win_publish_cipd.json
@@ -177,7 +177,8 @@
   {
     "cmd": [
       "git",
-      "fetch"
+      "fetch",
+      "--tags"
     ],
     "cwd": "[CACHE]\\builder\\src\\third_party\\dart",
     "env": {
diff --git a/recipes/engine_v1_17_0.expected/win_upload.json b/recipes/engine_v1_17_0.expected/win_upload.json
index b0a1e0b..7b3688d 100644
--- a/recipes/engine_v1_17_0.expected/win_upload.json
+++ b/recipes/engine_v1_17_0.expected/win_upload.json
@@ -177,7 +177,8 @@
   {
     "cmd": [
       "git",
-      "fetch"
+      "fetch",
+      "--tags"
     ],
     "cwd": "[CACHE]\\builder\\src\\third_party\\dart",
     "env": {
diff --git a/recipes/engine_v1_17_0.expected/win_upload_maven_or_bitcode.json b/recipes/engine_v1_17_0.expected/win_upload_maven_or_bitcode.json
index b0a1e0b..7b3688d 100644
--- a/recipes/engine_v1_17_0.expected/win_upload_maven_or_bitcode.json
+++ b/recipes/engine_v1_17_0.expected/win_upload_maven_or_bitcode.json
@@ -177,7 +177,8 @@
   {
     "cmd": [
       "git",
-      "fetch"
+      "fetch",
+      "--tags"
     ],
     "cwd": "[CACHE]\\builder\\src\\third_party\\dart",
     "env": {
diff --git a/recipes/engine_v1_17_0.expected/win_upload_maven_or_bitcode_publish_cipd.json b/recipes/engine_v1_17_0.expected/win_upload_maven_or_bitcode_publish_cipd.json
index b0a1e0b..7b3688d 100644
--- a/recipes/engine_v1_17_0.expected/win_upload_maven_or_bitcode_publish_cipd.json
+++ b/recipes/engine_v1_17_0.expected/win_upload_maven_or_bitcode_publish_cipd.json
@@ -177,7 +177,8 @@
   {
     "cmd": [
       "git",
-      "fetch"
+      "fetch",
+      "--tags"
     ],
     "cwd": "[CACHE]\\builder\\src\\third_party\\dart",
     "env": {
diff --git a/recipes/engine_v1_17_0.expected/win_upload_publish_cipd.json b/recipes/engine_v1_17_0.expected/win_upload_publish_cipd.json
index b0a1e0b..7b3688d 100644
--- a/recipes/engine_v1_17_0.expected/win_upload_publish_cipd.json
+++ b/recipes/engine_v1_17_0.expected/win_upload_publish_cipd.json
@@ -177,7 +177,8 @@
   {
     "cmd": [
       "git",
-      "fetch"
+      "fetch",
+      "--tags"
     ],
     "cwd": "[CACHE]\\builder\\src\\third_party\\dart",
     "env": {
diff --git a/recipes/engine_v1_17_0.py b/recipes/engine_v1_17_0.py
index d624f35..e56b568 100644
--- a/recipes/engine_v1_17_0.py
+++ b/recipes/engine_v1_17_0.py
@@ -1427,7 +1427,7 @@
     # Presence of tags in git repo is critical for determining dart version.
     dart_sdk_dir = GetCheckoutPath(api).join('third_party', 'dart')
     with api.context(cwd=dart_sdk_dir):
-      api.step('Fetch dart tags', ['git', 'fetch'])
+      api.step('Fetch dart tags', ['git', 'fetch', '--tags'])
     api.gclient.runhooks()
 
     with api.step.nest('Android SDK Licenses'):