aboutsummaryrefslogtreecommitdiffhomepage
path: root/deploy
diff options
context:
space:
mode:
Diffstat (limited to 'deploy')
-rw-r--r--deploy/cloudfront.go1
-rw-r--r--deploy/deploy.go1
-rw-r--r--deploy/deployConfig.go2
-rw-r--r--deploy/deploy_azure.go1
-rw-r--r--deploy/deploy_test.go9
-rw-r--r--deploy/google.go1
6 files changed, 10 insertions, 5 deletions
diff --git a/deploy/cloudfront.go b/deploy/cloudfront.go
index 5e9a7a409..2f6d94b18 100644
--- a/deploy/cloudfront.go
+++ b/deploy/cloudfront.go
@@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+//go:build !nodeploy
// +build !nodeploy
package deploy
diff --git a/deploy/deploy.go b/deploy/deploy.go
index 96fecdc07..123cbe566 100644
--- a/deploy/deploy.go
+++ b/deploy/deploy.go
@@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+//go:build !nodeploy
// +build !nodeploy
package deploy
diff --git a/deploy/deployConfig.go b/deploy/deployConfig.go
index e2413a6c0..cdc146f21 100644
--- a/deploy/deployConfig.go
+++ b/deploy/deployConfig.go
@@ -115,7 +115,7 @@ func (m *matcher) Matches(path string) bool {
// decode creates a config from a given Hugo configuration.
func decodeConfig(cfg config.Provider) (deployConfig, error) {
var (
- mediaTypesConfig []map[string]interface{}
+ mediaTypesConfig []map[string]any
dcfg deployConfig
)
diff --git a/deploy/deploy_azure.go b/deploy/deploy_azure.go
index 77bbf5b3d..fc7daca3b 100644
--- a/deploy/deploy_azure.go
+++ b/deploy/deploy_azure.go
@@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+//go:build !solaris && !nodeploy
// +build !solaris,!nodeploy
package deploy
diff --git a/deploy/deploy_test.go b/deploy/deploy_test.go
index 264ca9f9e..a92649b74 100644
--- a/deploy/deploy_test.go
+++ b/deploy/deploy_test.go
@@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+//go:build !nodeploy
// +build !nodeploy
package deploy
@@ -252,7 +253,7 @@ func TestWalkLocal(t *testing.T) {
if got, err := walkLocal(fs, nil, nil, nil, media.DefaultTypes); err != nil {
t.Fatal(err)
} else {
- expect := map[string]interface{}{}
+ expect := map[string]any{}
for _, path := range tc.Expect {
if _, ok := got[path]; !ok {
t.Errorf("expected %q in results, but was not found", path)
@@ -290,7 +291,7 @@ func TestLocalFile(t *testing.T) {
Description string
Path string
Matcher *matcher
- MediaTypesConfig []map[string]interface{}
+ MediaTypesConfig []map[string]any
WantContent []byte
WantSize int64
WantMD5 []byte
@@ -351,9 +352,9 @@ func TestLocalFile(t *testing.T) {
{
Description: "Custom MediaType",
Path: "foo.hugo",
- MediaTypesConfig: []map[string]interface{}{
+ MediaTypesConfig: []map[string]any{
{
- "hugo/custom": map[string]interface{}{
+ "hugo/custom": map[string]any{
"suffixes": []string{"hugo"},
},
},
diff --git a/deploy/google.go b/deploy/google.go
index 9eae10da5..6e492bc01 100644
--- a/deploy/google.go
+++ b/deploy/google.go
@@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+//go:build !nodeploy
// +build !nodeploy
package deploy