chore(taskfile): enhance `deps` task to work for recent releases

Andrey Nering created

Change summary

Taskfile.yaml | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)

Detailed changes

Taskfile.yaml 🔗

@@ -180,9 +180,14 @@ tasks:
 
   deps:
     desc: Update Fantasy and Catwalk
+    env:
+      # The Go proxy takes a bit of time to see the latest release. Setting
+      # these bypass it to ensure we can update to a release from a minute ago.
+      GOPROXY: direct
+      GONOSUMDB: charm.land/*
     cmds:
-      - go get charm.land/fantasy
-      - go get charm.land/catwalk
+      - go get charm.land/fantasy@latest
+      - go get charm.land/catwalk@latest
       - go mod tidy
 
   sqlc: