Browse Source

ci: pin go-mockgen to 1.2.0 (#7021)

Joe Chen 2 years ago
parent
commit
e3706575d5
2 changed files with 3 additions and 3 deletions
  1. 1 1
      .github/workflows/go.yml
  2. 2 2
      docs/dev/local_development.md

+ 1 - 1
.github/workflows/go.yml

@@ -40,7 +40,7 @@ jobs:
         uses: arduino/setup-task@v1
       - name: Install goimports and go-mockgen
         run: |
-          go install github.com/derision-test/go-mockgen/cmd/go-mockgen@latest
+          go install github.com/derision-test/go-mockgen/cmd/go-mockgen@v1.2.0
           go install golang.org/x/tools/cmd/goimports@latest
       - name: Check Go module tidiness and generated files
         shell: bash

+ 2 - 2
docs/dev/local_development.md

@@ -41,7 +41,7 @@ Gogs has the following dependencies:
     brew install go postgresql git npm go-task/tap/go-task
     npm install -g less
     npm install -g less-plugin-clean-css
-    go install github.com/derision-test/go-mockgen/cmd/go-mockgen@latest
+    go install github.com/derision-test/go-mockgen/cmd/go-mockgen@v1.2.0
     go install golang.org/x/tools/cmd/goimports@latest
     ```
 
@@ -79,7 +79,7 @@ Gogs has the following dependencies:
     sudo apt install -y make git-all postgresql postgresql-contrib golang-go nodejs
     npm install -g less
     go install github.com/go-task/task/v3/cmd/task@latest
-    go install github.com/derision-test/go-mockgen/cmd/go-mockgen@latest
+    go install github.com/derision-test/go-mockgen/cmd/go-mockgen@v1.2.0
     go install golang.org/x/tools/cmd/goimports@latest
     ```