deploy: Do not compile in Azure on Solaris

See #6324
This commit is contained in:
Fazal Majid 2019-09-13 05:53:36 -07:00 committed by Bjørn Erik Pedersen
parent 13768c3c50
commit c0d7188ec8
2 changed files with 24 additions and 4 deletions

View file

@ -38,7 +38,6 @@ 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

21
deploy/deploy_azure.go Normal file
View file

@ -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
)