Commit graph

  • a4d7cedbbf
    Update go.mod zhangyongding 2020-09-23 09:01:34 +08:00
  • 21f7008c6a Set keys case sensitive wangchengdu 2020-09-22 15:38:23 +08:00
  • 2cb977dba0
    Merge fc6df51032 into d9d7dcdc63 Bogdan Drutu 2020-09-18 20:22:42 +00:00
  • fc6df51032
    Use ristretto to improve find performance aeneasr 2020-02-20 11:59:41 +01:00
  • dcd7fbbff7
    Allow nil values to be returned by AllSettings Bogdan Drutu 2020-09-18 10:08:05 -07:00
  • bcab3ff5ff Merge branch 'master' of https://github.com/spf13/viper into GetStringEnv Nathan Trujillo 2020-09-18 11:14:23 -07:00
  • b783f57e01 writeConfig operations are atomic Alessandro (Ale) Segala 2020-09-15 06:39:35 +00:00
  • f819f4304d add: write file with old config olongfen 2020-09-14 18:00:38 +08:00
  • 9f5de68da1 add: write file with old config olongfen 2020-09-14 17:57:57 +08:00
  • d0aba3da02 add: write file with old config olongfen 2020-09-14 17:31:45 +08:00
  • 9b28514e3a add: write file with old config olongfen 2020-09-14 17:30:56 +08:00
  • 4ee0750c91
    Allow setting multiple environment variables for the same key. (#14) Gabriel Aszalos 2020-09-14 11:27:04 +03:00
  • d9d7dcdc63 Increase lint timeout Mark Sagi-Kazar 2020-09-11 17:49:29 +02:00
  • a5152092c6 Improve lint rules Mark Sagi-Kazar 2020-09-11 17:48:38 +02:00
  • 2f7151f72b
    Increase lint timeout Mark Sagi-Kazar 2020-09-11 17:49:29 +02:00
  • 6609698316
    Improve lint rules Mark Sagi-Kazar 2020-09-11 17:48:38 +02:00
  • ae12c841bc
    Upgrade linter Mark Sagi-Kazar 2020-09-11 17:43:32 +02:00
  • e5d7915cac
    Allow BindEnv to register multiple environment variables. Gabriel Aszalos 2020-09-10 13:08:26 +03:00
  • 387404d518 Add log for remote config errors Mark Sagi-Kazar 2020-09-09 22:35:18 +02:00
  • 6220e41999
    Add log for remote config errors Mark Sagi-Kazar 2020-09-09 22:35:18 +02:00
  • f26928cd87
    Add Go 1.15 to the build matrix Mark Sagi-Kazar 2020-09-09 22:32:07 +02:00
  • ed7da26bb0 up victor 2020-09-08 10:37:18 +08:00
  • 3538d98edd upgrade from spf13 victor 2020-09-08 10:34:59 +08:00
  • bd4eb4285b remove test add logger for viper victor 2020-09-08 09:20:53 +08:00
  • 02d0307909
    Merge 7180a27422 into 9c7144ec1e Dan 2020-09-07 17:16:11 +08:00
  • 9c7144ec1e
    Build on both linux and macos Mark Sagi-Kazar 2020-09-05 23:53:06 +02:00
  • d1066ea66c Update crypt to address CVE-2020-15114 Louie Perez 2020-08-26 12:17:38 -07:00
  • d0544e4df4
    Upgrade crypt and etcd Mark Sagi-Kazar 2020-08-20 00:25:37 +02:00
  • ee97acd6e9 delete fmt.Println liuguoyang1 2020-08-19 18:22:25 +08:00
  • 00ac2c52c6 fix unnecessary leading newline liuguoyang1 2020-08-19 18:19:03 +08:00
  • 7ebd361a07 fix liuguoyang1 2020-08-19 18:15:44 +08:00
  • 5e05190e2d change name liuguoyang1 2020-08-19 18:11:42 +08:00
  • d41059169e add parser liuguoyang1 2020-08-19 17:47:40 +08:00
  • df2ced8906 fix vulnerability: CVE-2020-15114 in etcd v3.3.13+incompatible Dan Rollo 2020-08-18 15:46:19 -04:00
  • cb77550579 ensure BindPFlag() detects a nil flag parameter before wrapping in pflagValue. Dan Rollo 2020-08-11 19:26:27 -04:00
  • 4797c4d7ae Add BindEnvSliceValue() Roman Leventov 2020-08-10 11:14:12 +02:00
  • cd1f0d1b5f rich the ConfigFileNotFoundError to resolve the issue #390 saltbo 2020-08-07 12:06:20 +08:00
  • 3826be3135 Simplify $HOME prefix check v1.7.1 John Gosset 2020-07-31 15:57:33 -04:00
  • ce534045f9 Fix environment variable expansion in absPathify João Abecasis 2018-05-07 01:26:35 +02:00
  • d7e273daf5 Simplify $HOME prefix check John Gosset 2020-07-31 15:57:33 -04:00
  • 537c5c3864 Fix environment variable expansion in absPathify João Abecasis 2018-05-07 01:26:35 +02:00
  • 13494e8047 Skipping error != nil checks in favor of the fast return. Oleg Butuzov 2020-05-21 09:55:41 +03:00
  • f7fb7db43e
    Lint typo fix Greg Szabo 2020-07-05 00:55:29 -04:00
  • e0e708a4cd
    WriteConfig expected file type based on contentType instead of file extension Greg Szabo 2020-07-05 00:53:00 -04:00
  • 85fe21cf7e Merge branch 'master' into GetStringEnv Nathan Trujillo 2020-06-16 12:47:18 -07:00
  • 34e4a3a571 Merge branch 'master' of https://github.com/spf13/viper Nathan Trujillo 2020-06-16 12:28:38 -07:00
  • 59b7b4c50d Added fuzzer for Get() AdamKorcz 2020-06-03 15:24:01 +01:00
  • 49a69a17ee
    Update viper_test.go zhangyongding 2020-06-02 17:40:56 +08:00
  • 6999737484
    Update viper.go zhangyongding 2020-06-02 10:41:27 +08:00
  • 2bf315e378
    Update viper.go zhangyongding 2020-06-01 18:07:26 +08:00
  • 5ada790898 support multitype remote config file eslin88 2020-05-27 17:33:03 +08:00
  • 074ed18f7e
    fix panic while saving ini file Carlos Henrique Guardao Gandarez 2020-05-26 09:05:55 -03:00
  • fbf8d97be4 Skipping error != nil checks in favor of the fast return. Oleg Butuzov 2020-05-21 09:55:41 +03:00
  • e491f2c4ca Recognize tfvars files as hcl by default. Jim Razmus II 2020-05-13 12:15:28 -05:00
  • 13df721090
    Add Go 1.14 to build targets v1.7.0 Mark Sagi-Kazar 2020-05-09 11:42:39 +02:00
  • 3856c05f99
    Fix: Getting the value of a StringToString pflag (#874) Trevor Foster 2020-05-09 05:38:39 -04:00
  • 57c50704df fix panic when continue using WatchRemoteConfig leu1205 2020-05-08 14:01:11 +08:00
  • 6061c6da2e Merge branch 'master' of https://github.com/leu1205/viper levi chen 2020-05-08 13:44:44 +08:00
  • 4b2e776195 fix panic when continue using WatchRemoteConfig levi chen 2020-05-08 11:10:41 +08:00
  • b8bc81dfc7 go fmt levi chen 2020-05-08 11:55:28 +08:00
  • f9a856a8eb fix panic when continue using WatchRemoteConfig levi chen 2020-05-08 11:10:41 +08:00
  • c633cc5570 mostly copy pflags implementation of the conversion to a stringtostring Trevor Foster 2020-05-05 17:23:41 -04:00
  • c6ee9808ab fix_ini_save_error flow00 2020-03-15 17:55:27 +08:00
  • 018de44cf7 return map[string]interface in order to work with cast.ToStringMap Trevor Foster 2020-04-30 01:28:08 -04:00
  • cabc2530d4 Fix ConfigFileUsed to return config in search path Warren Fernandes 2020-04-22 16:29:59 -06:00
  • c42a305a4b
    Update gorilla dependency (#899) John McBride 2020-04-21 09:18:44 -06:00
  • 02e969d446 Run go mod tidy John McBride 2020-04-21 09:11:40 -06:00
  • b714bf4e79 Update gorilla dependency John McBride 2020-04-21 09:09:03 -06:00
  • 899b1be893 add DebugWith method for specifying where debug output should go Ehden Sinai 2020-04-20 12:21:51 -04:00
  • f026d8b814 Add custom metrics for viper.Get calls Kyle Hagan 2020-04-10 16:11:02 -07:00
  • e34fb51dd7
    Add mentioned in awesome badge Mark Sagi-Kazar 2020-04-09 23:56:02 +02:00
  • 7eea3718bf
    Remove go version badge Mark Sagi-Kazar 2020-04-09 22:21:21 +02:00
  • aa8e4d4983
    Update badges and logo Mark Sagi-Kazar 2020-04-09 22:20:35 +02:00
  • 59b1917503
    Update etcd to 3.3.13 v1.6.3 Mark Sagi-Kazar 2020-04-09 20:17:36 +02:00
  • 9b03d15591
    Ignore idea Mark Sagi-Kazar 2020-04-09 20:15:13 +02:00
  • 8e65055f5f merge upstream master and fix conflict yanyandenuonuo 2020-04-07 21:26:08 +08:00
  • d6288da8b8 return nil if unable to parse instead of panicing Trevor Foster 2020-03-28 23:20:43 -04:00
  • 21e376d12e add a few more cases Trevor Foster 2020-03-28 22:47:35 -04:00
  • 61c17d0781 extract parsing into single func Trevor Foster 2020-03-28 00:14:46 -04:00
  • 326772ea29 add logic to return flags default if not val set, add a test Trevor Foster 2020-03-28 00:07:50 -04:00
  • 6d67515500 add parsing for stringToString flags Trevor Foster 2020-03-27 23:21:05 -04:00
  • 0b4ed1d0fa
    Merge branch 'master' into initialize-config-file Ryan, Siu Long Wa 2020-03-20 11:02:04 +08:00
  • 7180a27422 feat: allow SetEnvKeyReplacer to take viper.StringReplacer dan-j 2020-03-16 17:08:31 +00:00
  • 8c64cb5dbe fix_ini_save_error flow00 2020-03-15 17:55:27 +08:00
  • 077606a41f Make Viper.Sub() inherit values from the bound pflags of the parent Blagoj Atanasovski 2020-03-12 19:11:58 +01:00
  • a925fa4053 Remove useless parenthesis gopherclass 2020-03-09 19:39:39 +09:00
  • 7da613aa94 Fix panic while writing invalid ini gopherclass 2020-03-09 19:37:51 +09:00
  • 896fc959b3 Add test for writing invalid ini gopherclass 2020-03-09 19:30:20 +09:00
  • deb8393798 Add SubSlice to return slice of sub vipers andig 2020-03-08 18:27:23 +01:00
  • fa4e03eaf5
    Merge pull request #13 from DataDog/define-custom-install Cody Lee 2020-02-27 10:44:43 -06:00
  • bf41424e1c
    add back go.sum Cody Lee 2020-02-27 10:38:11 -06:00
  • 940e2f6b82 move travis diff call to before vendoring MRHwick 2020-02-27 11:28:17 -05:00
  • 8a855103ac
    try excluding vendor from gofmt Matthew Hardwick 2020-02-27 11:18:38 -05:00
  • 7d500a2af3
    bump patch for etcd Matthew Hardwick 2020-02-27 10:51:42 -05:00
  • 2922e4434f
    Try fixing go.mod problem from ugorji/go/codec Matthew Hardwick 2020-02-27 10:30:37 -05:00
  • 31f45ebfd6
    try build with -mod=readonly for test command Matthew Hardwick 2020-02-27 09:59:02 -05:00
  • 146f689044
    start the script by vendoring first Cody Lee 2020-02-26 17:07:36 -06:00
  • 713af2cac4
    hacks from other travis users Cody Lee 2020-02-26 17:01:06 -06:00
  • cfa0e76c89
    define custom install to make go modules work Cody Lee 2020-02-26 16:56:56 -06:00
  • 6163a31d56
    Merge pull request #12 from DataDog/go-mod-fix Cody Lee 2020-02-26 16:45:49 -06:00