mirror of
https://github.com/spf13/viper
synced 2025-05-07 20:57:18 +00:00
use local remote
This commit is contained in:
parent
c2297727bd
commit
f8ccbe2a8c
2 changed files with 3 additions and 2 deletions
|
@ -11,7 +11,7 @@ import (
|
|||
"io"
|
||||
"os"
|
||||
|
||||
"github.com/spf13/viper"
|
||||
"github.com/ShaleApps/viper"
|
||||
|
||||
crypt "github.com/xordataexchange/crypt/config"
|
||||
)
|
||||
|
|
3
viper.go
3
viper.go
|
@ -25,6 +25,7 @@ import (
|
|||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
"github.com/ghodss/yaml"
|
||||
"io"
|
||||
"log"
|
||||
"os"
|
||||
|
@ -1752,7 +1753,7 @@ func (v *Viper) WatchRemoteConfigOnChannel() error {
|
|||
// Retrieve the first found remote configuration.
|
||||
func (v *Viper) getKeyValueConfig() error {
|
||||
if RemoteConfig == nil {
|
||||
return RemoteConfigError("Enable the remote features by doing a blank import of the viper/remote package: '_ github.com/spf13/viper/remote'")
|
||||
return RemoteConfigError("Enable the remote features by doing a blank import of the viper/remote package: '_ github.com/ShaleApps/viper/remote'")
|
||||
}
|
||||
|
||||
for _, rp := range v.remoteProviders {
|
||||
|
|
Loading…
Add table
Reference in a new issue