Repository: gohugoio/hugo (language: go)

Issue:
Build from source: `nodeploy` build tag no longer works
`go install` with `nodeploy` tag failed to build.

```
$ go install -tags extended,nodeploy
package github.com/gohugoio/hugo
	imports github.com/gohugoio/hugo/commands
	imports github.com/gohugoio/hugo/config/allconfig
	imports github.com/gohugoio/hugo/deploy: build constraints exclude all Go files in /home/pamubay/dev/repos/hugo/deploy
```

### Does this issue reproduce with the latest release?

Yes, latest git. commit 06d228aad



Discussion / hints:
Git bisect says 241b21b0fd34d91fccb2ce69874110dceae6f926 is the first bad commit.


Fix patch:
diff --git a/commands/deploy_off.go b/commands/deploy_off.go
index b238d6cf795..3150dba1626 100644
--- a/commands/deploy_off.go
+++ b/commands/deploy_off.go
@@ -30,8 +30,9 @@
 package commands
 
 import (
-	"errors"
+	"context"
 
+	"github.com/bep/simplecobra"
 	"github.com/spf13/cobra"
 )
 
diff --git a/deploy/deployConfig.go b/deploy/deployConfig.go
index 5bbec5ab4db..3cd5dc3a821 100644
--- a/deploy/deployConfig.go
+++ b/deploy/deployConfig.go
@@ -11,9 +11,6 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
-//go:build !nodeploy
-// +build !nodeploy
-
 package deploy
 
 import (


Test patch:
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index fd3847e598a..5f4f0ebfa09 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -101,3 +101,6 @@ jobs:
         mage -v test;
       env:
         HUGO_BUILD_TAGS: extended
+    - name: Build tags
+      run: |
+        go install -tags extended,nodeploy