Skip to content

Commit

Permalink
deploy: Do not compile in Azure on Solaris
Browse files Browse the repository at this point in the history
See #6324
  • Loading branch information
fazalmajid authored and bep committed Sep 13, 2019
1 parent 13768c3 commit c0d7188
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 4 deletions.
7 changes: 3 additions & 4 deletions deploy/deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
21 changes: 21 additions & 0 deletions deploy/deploy_azure.go
Original file line number Diff line number Diff line change
@@ -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
)

0 comments on commit c0d7188

Please sign in to comment.