summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorFazal Majid <[email protected]>2019-09-13 05:53:36 -0700
committerBjørn Erik Pedersen <[email protected]>2019-09-13 14:53:36 +0200
commitc0d7188ec85e7a4b61489e38896108d877f6d902 (patch)
tree36fff23811478db3eedb0d47d8851ae8796c5b65
parent13768c3c50ce9d088f81a5724ee97bdc309199b8 (diff)
downloadhugo-c0d7188ec85e7a4b61489e38896108d877f6d902.tar.gz
hugo-c0d7188ec85e7a4b61489e38896108d877f6d902.zip
deploy: Do not compile in Azure on Solaris
See #6324
-rw-r--r--deploy/deploy.go7
-rw-r--r--deploy/deploy_azure.go21
2 files changed, 24 insertions, 4 deletions
diff --git a/deploy/deploy.go b/deploy/deploy.go
index 6abb9e24e..9092431a5 100644
--- a/deploy/deploy.go
+++ b/deploy/deploy.go
@@ -38,10 +38,9 @@ import (
"golang.org/x/text/unicode/norm"
"gocloud.dev/blob"
- _ "gocloud.dev/blob/azureblob" // import
- _ "gocloud.dev/blob/fileblob" // import
- _ "gocloud.dev/blob/gcsblob" // import
- _ "gocloud.dev/blob/s3blob" // import
+ _ "gocloud.dev/blob/fileblob" // import
+ _ "gocloud.dev/blob/gcsblob" // import
+ _ "gocloud.dev/blob/s3blob" // import
)
// Deployer supports deploying the site to target cloud providers.
diff --git a/deploy/deploy_azure.go b/deploy/deploy_azure.go
new file mode 100644
index 000000000..6251429ff
--- /dev/null
+++ b/deploy/deploy_azure.go
@@ -0,0 +1,21 @@
+// Copyright 2019 The Hugo Authors. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+// +build !solaris
+
+package deploy
+
+import (
+ _ "gocloud.dev/blob"
+ _ "gocloud.dev/blob/azureblob" // import
+)