Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

acessing nested array values using searchConfig #358

Open
wants to merge 575 commits into
base: revert-313-master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
575 commits
Select commit Hold shift + click to select a range
22b9573
build(deps): bump github.com/subosito/gotenv from 1.3.0 to 1.4.0
dependabot[bot] Jun 7, 2022
2b83d46
build(deps): bump github.com/pelletier/go-toml/v2 from 2.0.1 to 2.0.2
dependabot[bot] Jun 9, 2022
b1b8b3d
Fix go-staticcheck failures (ST1005)
mjmaisey Jun 5, 2022
bd03e92
build(deps): bump github.com/stretchr/testify from 1.7.2 to 1.7.3
dependabot[bot] Jun 20, 2022
501b966
build(deps): bump github.com/stretchr/testify from 1.7.3 to 1.7.4
dependabot[bot] Jun 21, 2022
0add84c
build(deps): bump mheap/github-action-required-labels from 1 to 2
dependabot[bot] Jun 21, 2022
d55cd57
build(deps): bump github.com/stretchr/testify from 1.7.4 to 1.8.0
dependabot[bot] Jun 29, 2022
a4e4f65
Update README.md
HurSungYun Jun 27, 2022
1bc0a5a
add etcd3 to supported providers
franklinkim Jun 1, 2022
98c63ed
feat: check providers and log error
franklinkim Jun 11, 2022
5247643
Recurse into arrays when converting keys to lowercase
awrichar Jun 23, 2022
c2f42f3
build(deps): bump github.com/subosito/gotenv from 1.4.0 to 1.4.1
dependabot[bot] Aug 23, 2022
d7f4832
build(deps): bump github.com/pelletier/go-toml/v2 from 2.0.2 to 2.0.5
dependabot[bot] Aug 26, 2022
601ec81
test: fix toml tests
sagikazarmark Sep 3, 2022
7b4f2b2
ci: add Go 1.19 to CI
sagikazarmark Sep 3, 2022
9af8dae
ci: upgrade golangci-lint
sagikazarmark Sep 3, 2022
97591f0
build: fix lint violations
sagikazarmark Sep 3, 2022
202060b
Adds support for uint16 with `GetUint16`
oxisto Jul 19, 2022
312417a
Add a DebugTo convenience funtion
bcrochet Aug 11, 2022
8030d5b
build(deps): bump gopkg.in/ini.v1 from 1.66.4 to 1.67.0
dependabot[bot] Sep 3, 2022
57cc9a0
test: fix ini tests
sagikazarmark Sep 6, 2022
91aa484
chore: drop support for Go 1.15
sagikazarmark Sep 6, 2022
419fd86
build(deps): bump github.com/spf13/afero from 1.8.2 to 1.9.2
dependabot[bot] Sep 6, 2022
f1d2c47
build(deps): bump github.com/sagikazarmark/crypt from 0.6.0 to 0.7.0
dependabot[bot] Sep 27, 2022
7c62cfd
build(deps): bump github.com/stretchr/testify from 1.8.0 to 1.8.1
dependabot[bot] Oct 24, 2022
b274f63
build(deps): bump github.com/fsnotify/fsnotify from 1.5.4 to 1.6.0
dependabot[bot] Oct 13, 2022
52009d3
feat: disable watcher on aix
sagikazarmark Nov 3, 2022
b2234f2
ci: add build for aix
sagikazarmark Nov 3, 2022
2e04739
ci: drop dedicated wasm build
sagikazarmark Nov 3, 2022
dcb7f30
feat: fix compilation for all platforms unsupported by fsnotify
sagikazarmark Nov 3, 2022
2e99a57
refactor: rename watch file to unsupported
sagikazarmark Nov 3, 2022
4b8d148
refactor: use new Has fsnotify method for event matching
sagikazarmark Nov 3, 2022
db9f89a
chore: disable watch on appengine
sagikazarmark Nov 6, 2022
b89e554
chore: update crypt
sagikazarmark Nov 6, 2022
38b5494
build(deps): bump github.com/spf13/afero from 1.9.2 to 1.9.3
dependabot[bot] Nov 15, 2022
41d75b2
build(deps): bump github.com/magiconair/properties from 1.8.6 to 1.8.7
dependabot[bot] Dec 8, 2022
ab1367a
build(deps): bump github.com/pelletier/go-toml/v2 from 2.0.5 to 2.0.6
dependabot[bot] Dec 8, 2022
9da88d9
Update badge route
choar816 Dec 26, 2022
ce73936
Provide a link to explain what a 12-factor app is
lol768 Jan 8, 2023
9e46b76
build(deps): bump mheap/github-action-required-labels from 2 to 3
dependabot[bot] Jan 2, 2023
e42b933
feat!: drop yaml v2 support
sagikazarmark Jan 19, 2023
77fc1c3
feat!: drop toml v1 support
sagikazarmark Jan 19, 2023
2f5cb62
ci: cleanup tags
sagikazarmark Jan 19, 2023
982460e
feat!: drop Go 1.16 support
sagikazarmark Jan 19, 2023
996ab10
ci: update golangci-lint
sagikazarmark Jan 19, 2023
63630c2
build(deps): bump github.com/subosito/gotenv from 1.4.1 to 1.4.2
dependabot[bot] Jan 19, 2023
a7ad8cf
build(deps): bump github.com/sagikazarmark/crypt from 0.8.0 to 0.9.0
dependabot[bot] Jan 19, 2023
0755477
feat: add multiple endpoints support for remote
Nov 14, 2022
5182412
Add DocBlock to WatchConfig (#1467)
glebik000 Jan 19, 2023
c898f59
fix: time.Duration slice type conversion (#1498)
UrbanskiDawid Feb 5, 2023
3f44490
Sub inerits from automaticEnvApplied and envKeyReplacer
TaylorOno Dec 24, 2020
3970ad1
Preserve envPrefix in Sub
TaylorOno Apr 4, 2021
c6ba8f4
fix: fix typo
yquansah Mar 14, 2023
34d6318
chore: fix typo
sagikazarmark Mar 31, 2023
1663811
build(deps): bump mheap/github-action-required-labels from 3 to 4
dependabot[bot] Apr 3, 2023
28997ba
build(deps): bump actions/setup-go from 3 to 4
dependabot[bot] Mar 15, 2023
6393b67
build(deps): bump golang.org/x/net from 0.4.0 to 0.7.0
dependabot[bot] Mar 6, 2023
ff77ba0
build(deps): bump github.com/pelletier/go-toml/v2 from 2.0.6 to 2.0.7
dependabot[bot] Feb 28, 2023
e2cc903
build(deps): bump github.com/stretchr/testify from 1.8.1 to 1.8.2
dependabot[bot] Feb 27, 2023
59fe4db
ci: add Go 1.20 to build matrix
sagikazarmark Feb 5, 2023
8d1fb59
chore: update linter
sagikazarmark Apr 6, 2023
995db99
test: fix test to actually assert something
sagikazarmark Apr 6, 2023
adc3a87
build(deps): bump github.com/spf13/afero from 1.9.3 to 1.9.5
dependabot[bot] Apr 6, 2023
f74916a
ADD Meshery to projects
Azanul Apr 19, 2023
9aa0336
build(deps): bump github.com/sagikazarmark/crypt from 0.9.0 to 0.10.0
dependabot[bot] May 12, 2023
9bfa0cc
build(deps): bump github.com/spf13/cast from 1.5.0 to 1.5.1
dependabot[bot] May 26, 2023
143e3bc
build(deps): bump github.com/stretchr/testify from 1.8.2 to 1.8.3
dependabot[bot] May 19, 2023
a0fed9f
Update main image to better handle dark background
Deleplace Apr 3, 2023
23b123a
doc: add bearer/bearer as projects using Viper
cfabianski May 16, 2023
b850f34
build(deps): bump github.com/pelletier/go-toml/v2 from 2.0.7 to 2.0.8
dependabot[bot] May 29, 2023
8652057
docs: Coder uses Viper
bpmct Feb 17, 2023
2ee1631
extend viper's pflag binding to stringToInt pflag
vorishirne Feb 7, 2023
98b1b9f
add:viper: allow to disable internal log messages
burgesQ Jan 3, 2023
24ece16
drop std' logger in favor of jww one
burgesQ Jan 20, 2023
53cdb52
chore: improve log messages
sagikazarmark May 29, 2023
21a7fd8
Allow ConfigParseError to unwrap (#1433)
andig May 30, 2023
0520e75
swap the order of actions/checkout@v3 and actions/setup-go@v4
goldeneggg Jun 3, 2023
5f51413
build(deps): bump mheap/github-action-required-labels from 4 to 5
dependabot[bot] Jun 8, 2023
a362607
build(deps): bump github.com/stretchr/testify from 1.8.3 to 1.8.4
dependabot[bot] May 30, 2023
351365d
chore: add local development environment using nix
sagikazarmark Jun 28, 2023
74c53b7
chore: update pr checks
sagikazarmark Jun 28, 2023
31af6d0
ci: rename yml to yaml
sagikazarmark Jun 28, 2023
731a91b
feat: add func GetEnvPrefix
baruchiro Jun 13, 2023
76acbbd
feat: drop support for Go 1.17
sagikazarmark Jun 29, 2023
bec1fce
ci: update golangci-lint
sagikazarmark Jun 29, 2023
bb60a76
chore: improve dev env
sagikazarmark Jun 29, 2023
961c396
ci: add misc release note label
sagikazarmark Jun 29, 2023
097e0d8
build(deps): bump cachix/install-nix-action from 21 to 22
dependabot[bot] Jun 29, 2023
706ccb6
build(deps): bump github.com/pelletier/go-toml/v2 from 2.0.8 to 2.0.9
dependabot[bot] Jul 13, 2023
c5102bd
chore: upgrade crypt
sagikazarmark Jul 21, 2023
cb9b2bf
fix: code optimization (#1557)
testwill Jul 27, 2023
b77f4c1
[StepSecurity] ci: Harden GitHub Actions
step-security-bot Aug 4, 2023
24cfadc
Add Vitess to list of projects using Viper
systay Sep 7, 2023
7b2db61
build(deps): bump actions/checkout from 3.5.3 to 4.0.0
dependabot[bot] Sep 4, 2023
59cd02f
build(deps): bump github/codeql-action from 2.21.2 to 2.21.5
dependabot[bot] Aug 29, 2023
64661d4
build(deps): bump github.com/pelletier/go-toml/v2 from 2.0.9 to 2.1.0
dependabot[bot] Aug 29, 2023
0195f11
build(deps): bump actions/dependency-review-action from 3.0.6 to 3.0.8
dependabot[bot] Aug 15, 2023
2bd8c8e
build(deps): bump golangci/golangci-lint-action from 3.6.0 to 3.7.0
dependabot[bot] Aug 15, 2023
c631058
build(deps): bump actions/setup-go from 4.0.1 to 4.1.0
dependabot[bot] Sep 7, 2023
a0696bb
docs: fix typos in comments
alexandear Aug 18, 2023
13dbfca
test: remove testutil.Setenv as not needed from Go 1.17
alexandear Aug 18, 2023
3718c2e
build(deps): bump github.com/subosito/gotenv from 1.4.2 to 1.6.0
dependabot[bot] Aug 15, 2023
27914f8
build(deps): bump cachix/install-nix-action from 22 to 23
dependabot[bot] Sep 7, 2023
b425370
chore(deps): update crypt
sagikazarmark Sep 8, 2023
d5c5c83
ci: add Go 1.21 to the test matrix
sagikazarmark Sep 8, 2023
1e811d1
Add NATS support
hooksie1 Jul 21, 2023
c78218c
build(deps): bump actions/dependency-review-action from 3.0.8 to 3.1.0
dependabot[bot] Sep 8, 2023
d4c2f2e
feat!: bump minimum Go version to 1.19
sagikazarmark Sep 11, 2023
d16deb4
feat: add slog support
sagikazarmark Sep 11, 2023
0c5594a
feat: deprecate logger interface
sagikazarmark Sep 11, 2023
2672f3e
refactor: drop unused jww code
sagikazarmark Sep 11, 2023
58b177a
fix: lint violations
sagikazarmark Sep 11, 2023
336e9f0
build(deps): bump github/codeql-action from 2.21.5 to 2.21.6
dependabot[bot] Sep 13, 2023
f683416
build(deps): bump github/codeql-action from 2.21.6 to 2.21.7
dependabot[bot] Sep 14, 2023
4aeec58
Remove usages of deprecated io/ioutil; simplify tests
alexandear Sep 13, 2023
6fdfebc
Fix tests on Windows
alexandear Sep 14, 2023
cfa8fd9
feat: use new finder library
sagikazarmark Sep 9, 2023
abbfd91
feat: replace io fs finder with afero finder
sagikazarmark Sep 11, 2023
db5aafa
feat: enable finder tag builds
sagikazarmark Sep 11, 2023
f2e0e48
fix: compile error
sagikazarmark Sep 11, 2023
cae55fe
fix: result order by upgrading locafero
sagikazarmark Sep 13, 2023
a9437f2
build(deps): bump actions/checkout from 4.0.0 to 4.1.0
dependabot[bot] Sep 22, 2023
a6f8e22
build(deps): bump github.com/spf13/afero from 1.9.5 to 1.10.0
dependabot[bot] Sep 22, 2023
44911d2
build(deps): bump github/codeql-action from 2.21.7 to 2.21.8
dependabot[bot] Sep 19, 2023
96c5c00
chore: remove deprecated build tags
alexandear Sep 25, 2023
8a6dc5d
build(deps): bump github/codeql-action from 2.21.8 to 2.21.9
dependabot[bot] Sep 27, 2023
3d006fe
refactor: replace interface{} with any
alexandear Sep 26, 2023
c292b55
test: refactor asserts
alexandear Sep 25, 2023
f1cb226
chore(deps): update crypt
sagikazarmark Oct 5, 2023
287507c
docs: add set subset KV example
yhliyr Sep 27, 2023
3f6cadc
chore: Fix copy-paste error for yamllint target
bersace Sep 12, 2023
94632fa
chore: Use pip3 explicitly to install yamllint
bersace Sep 12, 2023
f62f86a
refactor: make use of `strings.Cut`
scop Oct 4, 2023
1d75c51
chore: rename files according enabled build tags
alexandear Sep 25, 2023
dd9a341
Rename
alexandear Oct 6, 2023
4b59dd6
build(deps): bump github/codeql-action from 2.21.9 to 2.22.3
dependabot[bot] Oct 13, 2023
b6610e7
build(deps): bump golang.org/x/net from 0.15.0 to 0.17.0
dependabot[bot] Oct 11, 2023
b5daec6
test: Replace ifs with asserts to simplify tests
alexandear Oct 7, 2023
e9f2018
build(deps): bump actions/checkout from 4.1.0 to 4.1.1
dependabot[bot] Oct 17, 2023
be8a2e8
build(deps): bump actions/github-script from 6.4.1 to 7.0.1
dependabot[bot] Nov 20, 2023
1a4fa6c
build(deps): bump github/codeql-action from 2.22.3 to 2.22.8
dependabot[bot] Nov 23, 2023
291a41f
build(deps): bump github.com/spf13/afero from 1.10.0 to 1.11.0
dependabot[bot] Nov 28, 2023
a831a37
build(deps): bump actions/dependency-review-action from 3.1.0 to 3.1.4
dependabot[bot] Nov 29, 2023
ece813c
build(deps): bump cachix/install-nix-action from 23 to 24
dependabot[bot] Nov 29, 2023
cd3d41c
build(deps): bump github.com/nats-io/nkeys from 0.4.5 to 0.4.6
dependabot[bot] Oct 31, 2023
7a9716b
build(deps): bump github.com/spf13/cast from 1.5.1 to 1.6.0
dependabot[bot] Nov 29, 2023
1c76491
add info about multiple hosts for remote config
Nov 16, 2023
6db0ab2
build(deps): bump github.com/fsnotify/fsnotify from 1.6.0 to 1.7.0
dependabot[bot] Nov 29, 2023
464cdab
refactor: drop fsonitfy wrapper
sagikazarmark Nov 29, 2023
a4a551f
chore: update dependencies
sagikazarmark Nov 29, 2023
4c9b2a2
Note Get* behavior on parse failure
scop Nov 21, 2023
c4dcd31
fix: godot lint issues
alexandear Oct 9, 2023
6ea31ae
refactor: move all settings code to a getter
sagikazarmark Dec 5, 2023
73dfb94
feat: make Unmarshal work with AutomaticEnv
sagikazarmark Dec 5, 2023
3a23b80
ci: enable test shuffle; fix tests
alexandear Oct 7, 2023
f0c4ccd
fix: gocritic lint issues
alexandear Nov 30, 2023
36a3868
Review changes
alexandear Dec 1, 2023
f736363
fix isPathShadowedInFlatMap type cast bug (#1585)
linuxsong Dec 6, 2023
f5fcb4a
chore: update crypt
sagikazarmark Dec 6, 2023
fb6eb1e
fix: merge missing struct keys inside UnmarshalExact
krakowski Dec 6, 2023
08e4a00
build(deps): bump github/codeql-action from 2.22.8 to 2.22.9
dependabot[bot] Dec 7, 2023
9154b90
build(deps): bump actions/setup-go from 4.1.0 to 5.0.0
dependabot[bot] Dec 6, 2023
fcda114
build(deps): bump github/codeql-action from 2.22.9 to 3.22.11
dependabot[bot] Dec 13, 2023
0b0a110
build(deps): bump github.com/pelletier/go-toml/v2 from 2.1.0 to 2.1.1
dependabot[bot] Dec 12, 2023
473a3df
fix!: hide struct binding behind a feature flag
sagikazarmark Dec 15, 2023
e36638d
build(deps): bump golang.org/x/crypto from 0.16.0 to 0.17.0
dependabot[bot] Dec 19, 2023
d9cf5cf
build(deps): bump github/codeql-action from 3.22.11 to 3.23.0
dependabot[bot] Jan 8, 2024
c44f929
build(deps): bump actions/dependency-review-action from 3.1.4 to 3.1.5
dependabot[bot] Jan 4, 2024
eda8428
build(deps): bump mheap/github-action-required-labels
dependabot[bot] Jan 29, 2024
b633fc0
build(deps): bump github/codeql-action from 3.23.0 to 3.23.2
dependabot[bot] Jan 26, 2024
bc0e4e8
build(deps): bump actions/dependency-review-action from 3.1.5 to 4.0.0
dependabot[bot] Jan 18, 2024
0e82215
build(deps): bump cachix/install-nix-action from 24 to 25
dependabot[bot] Jan 12, 2024
8f34134
build(deps): bump github/codeql-action from 3.23.2 to 3.24.0
dependabot[bot] Feb 5, 2024
c9d7f65
build(deps): bump github/codeql-action from 3.24.0 to 3.24.1
dependabot[bot] Feb 13, 2024
c4c81fd
readme: update link to go modules documentation
tobb10001 Feb 11, 2024
b287131
build(deps): bump actions/dependency-review-action from 4.0.0 to 4.1.0
dependabot[bot] Feb 14, 2024
233bae8
build(deps): bump golangci/golangci-lint-action from 3.7.0 to 4.0.0
dependabot[bot] Feb 9, 2024
a38f975
build(deps): bump mheap/github-action-required-labels
dependabot[bot] Feb 12, 2024
6c6bd7c
chore: add Go 1.22 support
sagikazarmark Feb 15, 2024
030b77a
fix: lint violations
sagikazarmark Feb 15, 2024
24d6fd3
build(deps): bump github/codeql-action from 3.24.1 to 3.24.3
dependabot[bot] Feb 15, 2024
1f0aed7
build(deps): bump github.com/sagikazarmark/crypt from 0.17.0 to 0.18.0
dependabot[bot] Feb 27, 2024
5870123
build(deps): bump github/codeql-action from 3.24.3 to 3.24.5
dependabot[bot] Feb 23, 2024
f1d14ce
build(deps): bump github.com/stretchr/testify from 1.8.4 to 1.9.0
dependabot[bot] Mar 1, 2024
e2eefda
build(deps): bump github/codeql-action from 3.24.5 to 3.24.6
dependabot[bot] Feb 29, 2024
dac344c
build(deps): bump cachix/install-nix-action from 25 to 26
dependabot[bot] Mar 11, 2024
8ac6441
build(deps): bump actions/dependency-review-action from 4.1.0 to 4.1.3
dependabot[bot] Feb 21, 2024
d2d8cb1
build(deps): bump github/codeql-action from 3.24.6 to 3.24.9
dependabot[bot] Mar 22, 2024
2fdb281
build(deps): bump mheap/github-action-required-labels
dependabot[bot] Mar 21, 2024
6cf94c6
build(deps): bump actions/checkout from 4.1.1 to 4.1.2
dependabot[bot] Mar 12, 2024
e7b623d
build(deps): bump actions/dependency-review-action from 4.1.3 to 4.2.4
dependabot[bot] Mar 25, 2024
8b5a9ae
chore: upgrade crypt
sagikazarmark Mar 25, 2024
06c8eab
feat: drop Go 1.19 support
sagikazarmark Mar 25, 2024
947eb59
build(deps): bump github.com/pelletier/go-toml/v2 from 2.1.1 to 2.2.0
dependabot[bot] Mar 25, 2024
2e91486
fix #1700: update tests to use local viper instance (#1791)
smukk9 Apr 7, 2024
ad27eab
build(deps): bump actions/dependency-review-action from 4.2.4 to 4.2.5
dependabot[bot] Mar 26, 2024
bd3d203
build(deps): bump github.com/pelletier/go-toml/v2 from 2.2.0 to 2.2.1
dependabot[bot] Apr 12, 2024
ec459a1
build(deps): bump github/codeql-action from 3.24.9 to 3.25.1
dependabot[bot] Apr 17, 2024
33920be
build(deps): bump golang.org/x/net from 0.22.0 to 0.23.0
dependabot[bot] Apr 19, 2024
d539b7a
build(deps): bump actions/checkout from 4.1.2 to 4.1.3
dependabot[bot] Apr 19, 2024
3d32668
build(deps): bump actions/checkout from 4.1.3 to 4.1.4
dependabot[bot] Apr 24, 2024
ea35b92
build(deps): bump github/codeql-action from 3.25.1 to 3.25.2
dependabot[bot] Apr 23, 2024
45a0e12
build(deps): bump mheap/github-action-required-labels
dependabot[bot] Apr 29, 2024
4a182c7
build(deps): bump actions/dependency-review-action from 4.2.5 to 4.3.2
dependabot[bot] Apr 30, 2024
b67e814
build(deps): bump github.com/pelletier/go-toml/v2 from 2.2.1 to 2.2.2
dependabot[bot] May 1, 2024
4017620
build(deps): bump actions/setup-go from 5.0.0 to 5.0.1
dependabot[bot] May 2, 2024
8e285a5
build(deps): bump github/codeql-action from 3.25.2 to 3.25.4
dependabot[bot] May 8, 2024
f17acb4
build(deps): bump golangci/golangci-lint-action from 4.0.0 to 6.0.1
dependabot[bot] May 8, 2024
abea773
Update references to bketelsen/crypt
skitt May 29, 2024
248c6fd
build(deps): bump github/codeql-action from 3.25.4 to 3.25.7
dependabot[bot] May 31, 2024
6ecc5c8
build(deps): bump cachix/install-nix-action from 26 to 27
dependabot[bot] May 16, 2024
b9733f0
build(deps): bump actions/checkout from 4.1.4 to 4.1.6
dependabot[bot] May 17, 2024
c019486
chore: update mapstructure
sagikazarmark Dec 19, 2023
5ce200a
fix: add back weak string slice hook
sagikazarmark Dec 19, 2023
87dbe82
feat!: drop Go 1.20
sagikazarmark Jun 2, 2024
da9ee51
chore: update flake
sagikazarmark Jun 2, 2024
6557674
chore: update crypt
sagikazarmark May 17, 2024
7f90580
refactor: drop slog shim
sagikazarmark Jun 2, 2024
7162e92
refactor!: drop unused Logger interface
sagikazarmark Jun 2, 2024
272344e
refactor: move remote code to separate file
sagikazarmark Jun 2, 2024
f452b09
feat: add finder
sagikazarmark Jun 3, 2024
c9994ee
feat: unexport combined finder for now
sagikazarmark Jun 3, 2024
dd6204a
test: add examples for finder
sagikazarmark Jun 3, 2024
3faea9d
chore: update locafero
sagikazarmark Jun 3, 2024
1be81c3
feat: do not return early from old search functions
sagikazarmark Jun 4, 2024
db0bbd8
feat: use new finder even when build tag is disabled
sagikazarmark Jun 4, 2024
2636060
feat: add experimental finder option
sagikazarmark Jun 4, 2024
b206f20
feat: control finder behavior by experimental feature flag
sagikazarmark Jun 4, 2024
df70866
refactor: move old config search code
sagikazarmark Jun 4, 2024
1642523
test: fix finder tests
sagikazarmark Jun 4, 2024
d59cc8b
test: fix tests on windows
sagikazarmark Jun 4, 2024
796fe3d
chore: update locafero
sagikazarmark Jun 4, 2024
92e330e
test: fix test on windows
sagikazarmark Jun 4, 2024
676d2eb
test: add tests for experimental finder
sagikazarmark Jun 4, 2024
3266e43
build(deps): bump github/codeql-action from 3.25.7 to 3.25.8
dependabot[bot] Jun 4, 2024
e8707fd
test: refactor read config test
sagikazarmark Jun 5, 2024
afe3be2
test: add failing test for reading config without a config type
sagikazarmark Jun 5, 2024
a42c1b9
feat: return error when no config type is set
sagikazarmark Jun 5, 2024
3640bcd
feat: allow setting options on the global viper instance
sagikazarmark Jun 5, 2024
db85e2a
docs: update global viper documentation
sagikazarmark Jun 5, 2024
96ad74f
feat: allow enabling bind struct with an option
sagikazarmark Jun 4, 2024
d1e18b2
feat: add experimental flag for bind struct
sagikazarmark Jun 4, 2024
7ad8e1e
feat: make the remote package a separate module
sagikazarmark Jun 5, 2024
a50cdb2
feat(remote): update viper version
sagikazarmark Jun 6, 2024
eaca2f8
Revert to go-difflib and go-spew releases
skitt Jun 6, 2024
7c187a4
build(deps): bump actions/dependency-review-action from 4.3.2 to 4.3.3
dependabot[bot] Jun 6, 2024
c522f31
build(deps): bump github/codeql-action from 3.25.8 to 3.25.10
dependabot[bot] Jun 13, 2024
6e04b1f
build(deps): bump actions/checkout from 4.1.6 to 4.1.7
dependabot[bot] Jun 13, 2024
6e4ab18
chore: update crypt
sagikazarmark Jun 20, 2024
a11ee9a
chore(remote): update viper
sagikazarmark Jun 20, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
18 changes: 18 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
root = true

[*]
charset = utf-8
end_of_line = lf
indent_size = 4
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true

[*.go]
indent_style = tab

[{Makefile,*.mk}]
indent_style = tab

[*.nix]
indent_size = 2
4 changes: 4 additions & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
if ! has nix_direnv_version || ! nix_direnv_version 3.0.4; then
source_url "https://raw.githubusercontent.com/nix-community/nix-direnv/3.0.4/direnvrc" "sha256-DzlYZ33mWF/Gs8DDeyjr8mnVmQGx7ASYqA5WlxwvBG4="
fi
use flake . --impure
2 changes: 2 additions & 0 deletions .github/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[{*.yml,*.yaml}]
indent_size = 2
119 changes: 119 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
name: 🐛 Bug report
description: Report a bug to help us improve Viper
labels: [kind/bug]
body:
- type: markdown
attributes:
value: |
Thank you for submitting a bug report!

Please fill out the template below to make it easier to debug your problem.

If you are not sure if it is a bug or not, you can contact us via the available [support channels](https://github.com/spf13/viper/issues/new/choose).
- type: checkboxes
attributes:
label: Preflight Checklist
description: Please ensure you've completed all of the following.
options:
- label: I have searched the [issue tracker](https://www.github.com/spf13/viper/issues) for an issue that matches the one I want to file, without success.
required: true
- label: I am not looking for support or already pursued the available [support channels](https://github.com/spf13/viper/issues/new/choose) without success.
required: true
- label: I have checked the [troubleshooting guide](https://github.com/spf13/viper/blob/master/TROUBLESHOOTING.md) for my problem, without success.
required: true
- type: input
attributes:
label: Viper Version
description: What version of Viper are you using?
placeholder: 1.8.1
validations:
required: true
- type: input
attributes:
label: Go Version
description: What version of Go are you using?
placeholder: "1.16"
validations:
required: true
- type: dropdown
attributes:
label: Config Source
description: What sources do you load configuration from?
options:
- Manual set
- Flags
- Environment variables
- Files
- Remove K/V stores
- Defaults
multiple: true
validations:
required: true
- type: dropdown
attributes:
label: Format
description: Which file formats do you use?
options:
- JSON
- YAML
- TOML
- Dotenv
- HCL
- Java properties
- INI
- Other (specify below)
multiple: true
- type: input
attributes:
label: Repl.it link
description: Complete example on Repl.it reproducing the issue. [Here](https://repl.it/@sagikazarmark/Viper-example) is an example you can use.
placeholder: https://repl.it/@sagikazarmark/Viper-example
- type: textarea
attributes:
label: Code reproducing the issue
description: Please provide a Repl.it link if possible.
render: go
placeholder: |
package main

import (
"github.com/spf13/viper"
)

func main() {
v := viper.New()

// ...

var config Config

err = v.Unmarshal(&config)
if err != nil {
panic(err)
}
}
- type: textarea
attributes:
label: Expected Behavior
description: A clear and concise description of what you expected to happen.
validations:
required: true
- type: textarea
attributes:
label: Actual Behavior
description: A clear description of what actually happens.
validations:
required: true
- type: textarea
attributes:
label: Steps To Reproduce
description: Steps to reproduce the behavior if it is not self-explanatory.
placeholder: |
1. In this environment...
2. With this config...
3. Run '...'
4. See error...
- type: textarea
attributes:
label: Additional Information
description: Links? References? Anything that will give us more context about the issue that you are encountering!
13 changes: 13 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
blank_issues_enabled: false
contact_links:
- name: ❓ Ask a question
url: https://github.com/spf13/viper/discussions/new?category=q-a
about: Ask and discuss questions with other Viper community members

- name: 📓 Reference
url: https://pkg.go.dev/mod/github.com/spf13/viper
about: Check the Go code reference

- name: 💬 Slack channel
url: https://gophers.slack.com/messages/viper
about: Please ask and answer questions here
39 changes: 39 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: 🎉 Feature request
description: Suggest an idea for Viper
labels: [kind/enhancement]
body:
- type: markdown
attributes:
value: |
Thank you for submitting a feature request!

Please describe what you would like to change/add and why in detail by filling out the template below.

If you are not sure if your request fits into Viper, you can contact us via the available [support channels](https://github.com/spf13/viper/issues/new/choose).
- type: checkboxes
attributes:
label: Preflight Checklist
description: Please ensure you've completed all of the following.
options:
- label: I have searched the [issue tracker](https://www.github.com/spf13/viper/issues) for an issue that matches the one I want to file, without success.
required: true
- type: textarea
attributes:
label: Problem Description
description: A clear and concise description of the problem you are seeking to solve with this feature request.
validations:
required: true
- type: textarea
attributes:
label: Proposed Solution
description: A clear and concise description of what would you like to happen.
validations:
required: true
- type: textarea
attributes:
label: Alternatives Considered
description: A clear and concise description of any alternative solutions or features you've considered.
- type: textarea
attributes:
label: Additional Information
description: Add any other context about the problem here.
20 changes: 20 additions & 0 deletions .github/PULL_REQUEST_TEMPLATES.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<!--
Thank you for sending a pull request! Here some tips for contributors:

1. Fill the description template below.
2. Include appropriate tests (if necessary). Make sure that all CI checks passed.
3. If the Pull Request is a work in progress, make use of GitHub's "Draft PR" feature and mark it as such.
-->

**Overview**:
<!-- Describe your changes briefly here. -->

**What problem does it solve?**:
<!--
- Please state in detail why we need this PR and what it solves.
- If your PR closes some of the existing issues, please add links to them here.
Mentioned issues will be automatically closed.
Usage: "Closes #<issue number>", or "Closes (paste link of issue)"
-->

**Special notes for a reviewer**:
16 changes: 16 additions & 0 deletions .github/dependabot.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
version: 2

updates:
- package-ecosystem: gomod
directory: /
labels:
- area/dependencies
schedule:
interval: daily

- package-ecosystem: github-actions
directory: /
labels:
- area/dependencies
schedule:
interval: daily
Binary file added .github/logo.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
30 changes: 30 additions & 0 deletions .github/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
changelog:
exclude:
labels:
- release-note/ignore
categories:
- title: Exciting New Features 🎉
labels:
- kind/feature
- release-note/new-feature
- title: Enhancements 🚀
labels:
- kind/enhancement
- release-note/enhancement
- title: Bug Fixes 🐛
labels:
- kind/bug
- release-note/bug-fix
- title: Breaking Changes 🛠
labels:
- release-note/breaking-change
- title: Deprecations ❌
labels:
- release-note/deprecation
- title: Dependency Updates ⬆️
labels:
- area/dependencies
- release-note/dependency-update
- title: Other Changes
labels:
- "*"
30 changes: 30 additions & 0 deletions .github/workflows/checks.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: PR Checks

on:
pull_request:
types: [opened, labeled, unlabeled, synchronize]

jobs:
release-label:
name: Release note label
runs-on: ubuntu-latest

steps:
- name: Check minimum labels
uses: mheap/github-action-required-labels@5847eef68201219cf0a4643ea7be61e77837bbce # v5.4.1
with:
mode: minimum
count: 1
labels: |
release-note/ignore
kind/feature
release-note/new-feature
kind/enhancement
release-note/enhancement
kind/bug
release-note/bug-fix
release-note/breaking-change
release-note/deprecation
area/dependencies
release-note/dependency-update
release-note/misc