andig and GitHub
21a7fd828e
Allow ConfigParseError to unwrap ( #1433 )
...
* Allow ConfigParseError to unwrap
* wip
* Avoid pointer type
2023-05-30 12:07:27 +02:00
Márk Sági-Kazár
53cdb5253a
chore: improve log messages
2023-05-29 15:43:38 +02:00
Quentin Burgess and Márk Sági-Kazár
24ece16a9a
drop std' logger in favor of jww one
2023-05-29 15:43:38 +02:00
Quentin Burgess and Márk Sági-Kazár
98b1b9fd42
add:viper: allow to disable internal log messages
2023-05-29 15:43:38 +02:00
VOrishirne and Márk Sági-Kazár
2ee16310d0
extend viper's pflag binding to stringToInt pflag
2023-05-29 15:34:52 +02:00
Ben Potter and Márk Sági-Kazár
86520578dc
docs: Coder uses Viper
2023-05-29 15:32:18 +02:00
dependabot[bot] and Márk Sági-Kazár
b850f3448f
build(deps): bump github.com/pelletier/go-toml/v2 from 2.0.7 to 2.0.8
...
Bumps [github.com/pelletier/go-toml/v2](https://github.com/pelletier/go-toml ) from 2.0.7 to 2.0.8.
- [Release notes](https://github.com/pelletier/go-toml/releases )
- [Changelog](https://github.com/pelletier/go-toml/blob/v2/.goreleaser.yaml )
- [Commits](https://github.com/pelletier/go-toml/compare/v2.0.7...v2.0.8 )
---
updated-dependencies:
- dependency-name: github.com/pelletier/go-toml/v2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-05-29 15:16:39 +02:00
Cédric Fabianski and Márk Sági-Kazár
23b123aba9
doc: add bearer/bearer as projects using Viper
2023-05-29 15:16:28 +02:00
Deleplace and Márk Sági-Kazár
a0fed9f570
Update main image to better handle dark background
2023-05-29 14:52:14 +02:00
dependabot[bot] and Márk Sági-Kazár
143e3bc9d9
build(deps): bump github.com/stretchr/testify from 1.8.2 to 1.8.3
...
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify ) from 1.8.2 to 1.8.3.
- [Release notes](https://github.com/stretchr/testify/releases )
- [Commits](https://github.com/stretchr/testify/compare/v1.8.2...v1.8.3 )
---
updated-dependencies:
- dependency-name: github.com/stretchr/testify
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-05-29 14:50:48 +02:00
dependabot[bot] and Márk Sági-Kazár
9bfa0ccd19
build(deps): bump github.com/spf13/cast from 1.5.0 to 1.5.1
...
Bumps [github.com/spf13/cast](https://github.com/spf13/cast ) from 1.5.0 to 1.5.1.
- [Release notes](https://github.com/spf13/cast/releases )
- [Commits](https://github.com/spf13/cast/compare/v1.5.0...v1.5.1 )
---
updated-dependencies:
- dependency-name: github.com/spf13/cast
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-05-29 14:50:32 +02:00
dependabot[bot] and Márk Sági-Kazár
9aa0336962
build(deps): bump github.com/sagikazarmark/crypt from 0.9.0 to 0.10.0
...
Bumps [github.com/sagikazarmark/crypt](https://github.com/sagikazarmark/crypt ) from 0.9.0 to 0.10.0.
- [Commits](https://github.com/sagikazarmark/crypt/compare/v0.9.0...v0.10.0 )
---
updated-dependencies:
- dependency-name: github.com/sagikazarmark/crypt
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-05-27 00:13:40 +02:00
Azanul Haque and Márk Sági-Kazár
f74916adfa
ADD Meshery to projects
2023-04-19 10:29:14 +02:00
dependabot[bot]
adc3a873f0
build(deps): bump github.com/spf13/afero from 1.9.3 to 1.9.5
...
Bumps [github.com/spf13/afero](https://github.com/spf13/afero ) from 1.9.3 to 1.9.5.
- [Release notes](https://github.com/spf13/afero/releases )
- [Commits](https://github.com/spf13/afero/compare/v1.9.3...v1.9.5 )
---
updated-dependencies:
- dependency-name: github.com/spf13/afero
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-04-07 19:39:06 +00:00
Mark Sagi-Kazar and Márk Sági-Kazár
995db99714
test: fix test to actually assert something
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
2023-04-06 11:12:29 +02:00
Mark Sagi-Kazar and Márk Sági-Kazár
8d1fb59230
chore: update linter
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
2023-04-06 11:12:29 +02:00
Mark Sagi-Kazar and Márk Sági-Kazár
59fe4dbc92
ci: add Go 1.20 to build matrix
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
2023-04-06 11:12:29 +02:00
dependabot[bot]
e2cc9031b5
build(deps): bump github.com/stretchr/testify from 1.8.1 to 1.8.2
...
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify ) from 1.8.1 to 1.8.2.
- [Release notes](https://github.com/stretchr/testify/releases )
- [Commits](https://github.com/stretchr/testify/compare/v1.8.1...v1.8.2 )
---
updated-dependencies:
- dependency-name: github.com/stretchr/testify
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-04-06 08:52:37 +00:00
dependabot[bot]
ff77ba015e
build(deps): bump github.com/pelletier/go-toml/v2 from 2.0.6 to 2.0.7
...
Bumps [github.com/pelletier/go-toml/v2](https://github.com/pelletier/go-toml ) from 2.0.6 to 2.0.7.
- [Release notes](https://github.com/pelletier/go-toml/releases )
- [Changelog](https://github.com/pelletier/go-toml/blob/v2/.goreleaser.yaml )
- [Commits](https://github.com/pelletier/go-toml/compare/v2.0.6...v2.0.7 )
---
updated-dependencies:
- dependency-name: github.com/pelletier/go-toml/v2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-04-06 08:52:08 +00:00
dependabot[bot]
6393b67401
build(deps): bump golang.org/x/net from 0.4.0 to 0.7.0
...
Bumps [golang.org/x/net](https://github.com/golang/net ) from 0.4.0 to 0.7.0.
- [Release notes](https://github.com/golang/net/releases )
- [Commits](https://github.com/golang/net/compare/v0.4.0...v0.7.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/net
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-04-06 08:51:38 +00:00
dependabot[bot]
28997ba8e9
build(deps): bump actions/setup-go from 3 to 4
...
Bumps [actions/setup-go](https://github.com/actions/setup-go ) from 3 to 4.
- [Release notes](https://github.com/actions/setup-go/releases )
- [Commits](https://github.com/actions/setup-go/compare/v3...v4 )
---
updated-dependencies:
- dependency-name: actions/setup-go
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-04-06 08:51:00 +00:00
dependabot[bot]
1663811850
build(deps): bump mheap/github-action-required-labels from 3 to 4
...
Bumps [mheap/github-action-required-labels](https://github.com/mheap/github-action-required-labels ) from 3 to 4.
- [Release notes](https://github.com/mheap/github-action-required-labels/releases )
- [Commits](https://github.com/mheap/github-action-required-labels/compare/v3...v4 )
---
updated-dependencies:
- dependency-name: mheap/github-action-required-labels
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-04-06 08:50:42 +00:00
Márk Sági-Kazár
34d6318c0b
chore: fix typo
2023-03-31 13:08:16 +02:00
Yoofi Quansah and Márk Sági-Kazár
c6ba8f4702
fix: fix typo
2023-03-31 13:08:16 +02:00
TaylorOno and Márk Sági-Kazár
3970ad177e
Preserve envPrefix in Sub
2023-02-25 22:17:36 +01:00
TaylorOno and Márk Sági-Kazár
3f4449054d
Sub inerits from automaticEnvApplied and envKeyReplacer
...
parents are tracked so sub(x).sub(y).GetString(z) looks up x.y.z
2023-02-25 22:17:36 +01:00
c898f59d33
fix: time.Duration slice type conversion ( #1498 )
...
* fix DurationSlice
* Fix typo
---------
Co-authored-by: Márk Sági-Kazár <sagikazarmark@users.noreply.github.com >
2023-02-05 18:30:05 +01:00
5182412574
Add DocBlock to WatchConfig ( #1467 )
...
* Add DocBlock to WatchConfig
Added a small description of the WatchConfig().
So that you can understand in the ide why you could use it.
* Update viper.go
* update viper.go
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
Co-authored-by: Márk Sági-Kazár <sagikazarmark@users.noreply.github.com >
Co-authored-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
2023-01-19 16:38:18 +01:00
Astone and Márk Sági-Kazár
0755477020
feat: add multiple endpoints support for remote
2023-01-19 16:34:22 +01:00
dependabot[bot]
a7ad8cfcc4
build(deps): bump github.com/sagikazarmark/crypt from 0.8.0 to 0.9.0
...
Bumps [github.com/sagikazarmark/crypt](https://github.com/sagikazarmark/crypt ) from 0.8.0 to 0.9.0.
- [Release notes](https://github.com/sagikazarmark/crypt/releases )
- [Commits](https://github.com/sagikazarmark/crypt/compare/v0.8.0...v0.9.0 )
---
updated-dependencies:
- dependency-name: github.com/sagikazarmark/crypt
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-01-19 15:27:42 +00:00
dependabot[bot]
63630c2fcd
build(deps): bump github.com/subosito/gotenv from 1.4.1 to 1.4.2
...
Bumps [github.com/subosito/gotenv](https://github.com/subosito/gotenv ) from 1.4.1 to 1.4.2.
- [Release notes](https://github.com/subosito/gotenv/releases )
- [Changelog](https://github.com/subosito/gotenv/blob/master/CHANGELOG.md )
- [Commits](https://github.com/subosito/gotenv/compare/v1.4.1...v1.4.2 )
---
updated-dependencies:
- dependency-name: github.com/subosito/gotenv
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-01-19 15:20:14 +00:00
Mark Sagi-Kazar and Márk Sági-Kazár
996ab10214
ci: update golangci-lint
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
2023-01-19 16:18:37 +01:00
Mark Sagi-Kazar and Márk Sági-Kazár
982460e8e1
feat!: drop Go 1.16 support
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
2023-01-19 16:18:37 +01:00
Mark Sagi-Kazar and Márk Sági-Kazár
2f5cb62e1f
ci: cleanup tags
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
2023-01-19 16:02:48 +01:00
Mark Sagi-Kazar and Márk Sági-Kazár
77fc1c3084
feat!: drop toml v1 support
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
2023-01-19 16:02:48 +01:00
Mark Sagi-Kazar and Márk Sági-Kazár
e42b933dbe
feat!: drop yaml v2 support
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
2023-01-19 16:02:48 +01:00
dependabot[bot]
9e46b7652f
build(deps): bump mheap/github-action-required-labels from 2 to 3
...
Bumps [mheap/github-action-required-labels](https://github.com/mheap/github-action-required-labels ) from 2 to 3.
- [Release notes](https://github.com/mheap/github-action-required-labels/releases )
- [Commits](https://github.com/mheap/github-action-required-labels/compare/v2...v3 )
---
updated-dependencies:
- dependency-name: mheap/github-action-required-labels
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-01-18 23:27:40 +00:00
Adam Williams and Márk Sági-Kazár
ce73936440
Provide a link to explain what a 12-factor app is
2023-01-08 23:39:46 +01:00
Ahra Cho and Márk Sági-Kazár
9da88d94fa
Update badge route
2022-12-26 21:01:12 +01:00
dependabot[bot]
ab1367a4d9
build(deps): bump github.com/pelletier/go-toml/v2 from 2.0.5 to 2.0.6
...
Bumps [github.com/pelletier/go-toml/v2](https://github.com/pelletier/go-toml ) from 2.0.5 to 2.0.6.
- [Release notes](https://github.com/pelletier/go-toml/releases )
- [Changelog](https://github.com/pelletier/go-toml/blob/v2/.goreleaser.yaml )
- [Commits](https://github.com/pelletier/go-toml/compare/v2.0.5...v2.0.6 )
---
updated-dependencies:
- dependency-name: github.com/pelletier/go-toml/v2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-12-14 12:41:13 +00:00
dependabot[bot]
41d75b2770
build(deps): bump github.com/magiconair/properties from 1.8.6 to 1.8.7
...
Bumps [github.com/magiconair/properties](https://github.com/magiconair/properties ) from 1.8.6 to 1.8.7.
- [Release notes](https://github.com/magiconair/properties/releases )
- [Changelog](https://github.com/magiconair/properties/blob/main/CHANGELOG.md )
- [Commits](https://github.com/magiconair/properties/compare/v1.8.6...v1.8.7 )
---
updated-dependencies:
- dependency-name: github.com/magiconair/properties
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-12-08 19:12:13 +00:00
dependabot[bot]
38b5494903
build(deps): bump github.com/spf13/afero from 1.9.2 to 1.9.3
...
Bumps [github.com/spf13/afero](https://github.com/spf13/afero ) from 1.9.2 to 1.9.3.
- [Release notes](https://github.com/spf13/afero/releases )
- [Commits](https://github.com/spf13/afero/compare/v1.9.2...v1.9.3 )
---
updated-dependencies:
- dependency-name: github.com/spf13/afero
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-12-08 19:11:54 +00:00
Mark Sagi-Kazar and Márk Sági-Kazár
b89e554a96
chore: update crypt
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
2022-11-06 14:19:33 +01:00
Mark Sagi-Kazar and Márk Sági-Kazár
db9f89ac41
chore: disable watch on appengine
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
2022-11-06 03:22:10 +01:00
Mark Sagi-Kazar and Márk Sági-Kazár
4b8d14881e
refactor: use new Has fsnotify method for event matching
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
2022-11-04 05:39:26 +01:00
Mark Sagi-Kazar and Márk Sági-Kazár
2e99a57324
refactor: rename watch file to unsupported
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
2022-11-04 03:17:49 +01:00
Mark Sagi-Kazar and Márk Sági-Kazár
dcb7f30f39
feat: fix compilation for all platforms unsupported by fsnotify
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
2022-11-04 03:17:49 +01:00
Mark Sagi-Kazar and Márk Sági-Kazár
2e04739b68
ci: drop dedicated wasm build
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
2022-11-04 03:17:49 +01:00
Mark Sagi-Kazar and Márk Sági-Kazár
b2234f214f
ci: add build for aix
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
2022-11-04 03:17:49 +01:00
Mark Sagi-Kazar and Márk Sági-Kazár
52009d3493
feat: disable watcher on aix
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
2022-11-04 03:17:49 +01:00
dependabot[bot] and Márk Sági-Kazár
b274f639e0
build(deps): bump github.com/fsnotify/fsnotify from 1.5.4 to 1.6.0
...
Bumps [github.com/fsnotify/fsnotify](https://github.com/fsnotify/fsnotify ) from 1.5.4 to 1.6.0.
- [Release notes](https://github.com/fsnotify/fsnotify/releases )
- [Changelog](https://github.com/fsnotify/fsnotify/blob/main/CHANGELOG.md )
- [Commits](https://github.com/fsnotify/fsnotify/compare/v1.5.4...v1.6.0 )
---
updated-dependencies:
- dependency-name: github.com/fsnotify/fsnotify
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-11-03 17:20:38 +01:00
dependabot[bot] and Márk Sági-Kazár
7c62cfdbac
build(deps): bump github.com/stretchr/testify from 1.8.0 to 1.8.1
...
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify ) from 1.8.0 to 1.8.1.
- [Release notes](https://github.com/stretchr/testify/releases )
- [Commits](https://github.com/stretchr/testify/compare/v1.8.0...v1.8.1 )
---
updated-dependencies:
- dependency-name: github.com/stretchr/testify
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-11-03 17:19:37 +01:00
dependabot[bot]
f1d2c470bf
build(deps): bump github.com/sagikazarmark/crypt from 0.6.0 to 0.7.0
...
Bumps [github.com/sagikazarmark/crypt](https://github.com/sagikazarmark/crypt ) from 0.6.0 to 0.7.0.
- [Release notes](https://github.com/sagikazarmark/crypt/releases )
- [Commits](https://github.com/sagikazarmark/crypt/compare/v0.6.0...v0.7.0 )
---
updated-dependencies:
- dependency-name: github.com/sagikazarmark/crypt
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-27 21:07:24 +00:00
dependabot[bot] and Márk Sági-Kazár
419fd86e49
build(deps): bump github.com/spf13/afero from 1.8.2 to 1.9.2
...
Bumps [github.com/spf13/afero](https://github.com/spf13/afero ) from 1.8.2 to 1.9.2.
- [Release notes](https://github.com/spf13/afero/releases )
- [Commits](https://github.com/spf13/afero/compare/v1.8.2...v1.9.2 )
---
updated-dependencies:
- dependency-name: github.com/spf13/afero
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-06 14:46:54 +02:00
Mark Sagi-Kazar and Márk Sági-Kazár
91aa484d1d
chore: drop support for Go 1.15
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
2022-09-06 14:28:48 +02:00
Mark Sagi-Kazar and Márk Sági-Kazár
57cc9a000f
test: fix ini tests
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
2022-09-06 11:57:54 +02:00
dependabot[bot] and Márk Sági-Kazár
8030d5b976
build(deps): bump gopkg.in/ini.v1 from 1.66.4 to 1.67.0
...
Bumps [gopkg.in/ini.v1](https://github.com/go-ini/ini ) from 1.66.4 to 1.67.0.
- [Release notes](https://github.com/go-ini/ini/releases )
- [Commits](https://github.com/go-ini/ini/compare/v1.66.4...v1.67.0 )
---
updated-dependencies:
- dependency-name: gopkg.in/ini.v1
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-06 11:57:54 +02:00
Brad P. Crochet and Márk Sági-Kazár
312417a0c5
Add a DebugTo convenience funtion
...
One might want to write the debug information somewhere other than
Stdout. This patch adss a DebugTo function and method, that accepts
an io.Writer. It changes the original Debug implementation to call
this new function with a default of os.Stdout, which maintains
backward compatibility.
Signed-off-by: Brad P. Crochet <brad@redhat.com >
2022-09-06 11:14:22 +02:00
Christian Banse and Márk Sági-Kazár
202060b3a2
Adds support for uint16 with GetUint16
...
We have encountered numerous places where it is convenient to have viper return a `uint16` value, especially in combination with the new `netip` package that represents a port correctly as `uint16` rather than just an `int`. cobra already supports this, but we need a conversion from the existing `GetUint` method in viper.
2022-09-04 03:07:23 +02:00
Mark Sagi-Kazar and Márk Sági-Kazár
97591f0083
build: fix lint violations
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
2022-09-03 19:07:15 +02:00
Mark Sagi-Kazar and Márk Sági-Kazár
9af8daeeab
ci: upgrade golangci-lint
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
2022-09-03 19:07:15 +02:00
Mark Sagi-Kazar and Márk Sági-Kazár
7b4f2b27cd
ci: add Go 1.19 to CI
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
2022-09-03 19:07:15 +02:00
Mark Sagi-Kazar and Márk Sági-Kazár
601ec815ba
test: fix toml tests
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
2022-09-03 17:33:50 +02:00
dependabot[bot] and Márk Sági-Kazár
d7f4832bd3
build(deps): bump github.com/pelletier/go-toml/v2 from 2.0.2 to 2.0.5
...
Bumps [github.com/pelletier/go-toml/v2](https://github.com/pelletier/go-toml ) from 2.0.2 to 2.0.5.
- [Release notes](https://github.com/pelletier/go-toml/releases )
- [Changelog](https://github.com/pelletier/go-toml/blob/v2/.goreleaser.yaml )
- [Commits](https://github.com/pelletier/go-toml/compare/v2.0.2...v2.0.5 )
---
updated-dependencies:
- dependency-name: github.com/pelletier/go-toml/v2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-03 17:33:50 +02:00
dependabot[bot] and Márk Sági-Kazár
c2f42f3060
build(deps): bump github.com/subosito/gotenv from 1.4.0 to 1.4.1
...
Bumps [github.com/subosito/gotenv](https://github.com/subosito/gotenv ) from 1.4.0 to 1.4.1.
- [Release notes](https://github.com/subosito/gotenv/releases )
- [Changelog](https://github.com/subosito/gotenv/blob/master/CHANGELOG.md )
- [Commits](https://github.com/subosito/gotenv/compare/v1.4.0...v1.4.1 )
---
updated-dependencies:
- dependency-name: github.com/subosito/gotenv
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-03 13:54:00 +02:00
Andrew Richardson and Márk Sági-Kazár
5247643f02
Recurse into arrays when converting keys to lowercase
...
Fixes #1386
Signed-off-by: Andrew Richardson <andrew.richardson@kaleido.io >
2022-07-12 18:10:05 +02:00
Kevin Franklin Kim and Márk Sági-Kazár
98c63ede11
feat: check providers and log error
2022-07-10 13:48:18 +02:00
Kevin Franklin Kim and Márk Sági-Kazár
1bc0a5ac7a
add etcd3 to supported providers
2022-07-10 13:48:18 +02:00
Sungyun Hur and Márk Sági-Kazár
a4e4f65a0c
Update README.md
2022-07-10 12:51:24 +02:00
dependabot[bot] and Márk Sági-Kazár
d55cd57115
build(deps): bump github.com/stretchr/testify from 1.7.4 to 1.8.0
...
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify ) from 1.7.4 to 1.8.0.
- [Release notes](https://github.com/stretchr/testify/releases )
- [Commits](https://github.com/stretchr/testify/compare/v1.7.4...v1.8.0 )
---
updated-dependencies:
- dependency-name: github.com/stretchr/testify
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-07-10 12:35:00 +02:00
dependabot[bot] and Márk Sági-Kazár
0add84cdf2
build(deps): bump mheap/github-action-required-labels from 1 to 2
...
Bumps [mheap/github-action-required-labels](https://github.com/mheap/github-action-required-labels ) from 1 to 2.
- [Release notes](https://github.com/mheap/github-action-required-labels/releases )
- [Commits](https://github.com/mheap/github-action-required-labels/compare/v1...v2 )
---
updated-dependencies:
- dependency-name: mheap/github-action-required-labels
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-21 20:15:53 +02:00
dependabot[bot] and Márk Sági-Kazár
501b966b5d
build(deps): bump github.com/stretchr/testify from 1.7.3 to 1.7.4
...
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify ) from 1.7.3 to 1.7.4.
- [Release notes](https://github.com/stretchr/testify/releases )
- [Commits](https://github.com/stretchr/testify/compare/v1.7.3...v1.7.4 )
---
updated-dependencies:
- dependency-name: github.com/stretchr/testify
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-21 20:15:04 +02:00
dependabot[bot] and Márk Sági-Kazár
bd03e926b9
build(deps): bump github.com/stretchr/testify from 1.7.2 to 1.7.3
...
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify ) from 1.7.2 to 1.7.3.
- [Release notes](https://github.com/stretchr/testify/releases )
- [Commits](https://github.com/stretchr/testify/compare/v1.7.2...v1.7.3 )
---
updated-dependencies:
- dependency-name: github.com/stretchr/testify
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-20 20:02:32 +02:00
mjmaisey and Márk Sági-Kazár
b1b8b3d4d4
Fix go-staticcheck failures (ST1005)
...
Fix to example code, which fails static checks related to acceptable formats of error strings if used.
2022-06-16 21:19:37 +02:00
dependabot[bot] and Márk Sági-Kazár
2b83d46130
build(deps): bump github.com/pelletier/go-toml/v2 from 2.0.1 to 2.0.2
...
Bumps [github.com/pelletier/go-toml/v2](https://github.com/pelletier/go-toml ) from 2.0.1 to 2.0.2.
- [Release notes](https://github.com/pelletier/go-toml/releases )
- [Changelog](https://github.com/pelletier/go-toml/blob/v2/.goreleaser.yaml )
- [Commits](https://github.com/pelletier/go-toml/compare/v2.0.1...v2.0.2 )
---
updated-dependencies:
- dependency-name: github.com/pelletier/go-toml/v2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-09 19:50:27 +02:00
dependabot[bot] and Márk Sági-Kazár
22b9573a99
build(deps): bump github.com/subosito/gotenv from 1.3.0 to 1.4.0
...
Bumps [github.com/subosito/gotenv](https://github.com/subosito/gotenv ) from 1.3.0 to 1.4.0.
- [Release notes](https://github.com/subosito/gotenv/releases )
- [Changelog](https://github.com/subosito/gotenv/blob/master/CHANGELOG.md )
- [Commits](https://github.com/subosito/gotenv/compare/v1.3.0...v1.4.0 )
---
updated-dependencies:
- dependency-name: github.com/subosito/gotenv
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-07 20:44:09 +02:00
dependabot[bot] and Márk Sági-Kazár
32d4cbb62f
build(deps): bump github.com/stretchr/testify from 1.7.1 to 1.7.2
...
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify ) from 1.7.1 to 1.7.2.
- [Release notes](https://github.com/stretchr/testify/releases )
- [Commits](https://github.com/stretchr/testify/compare/v1.7.1...v1.7.2 )
---
updated-dependencies:
- dependency-name: github.com/stretchr/testify
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-07 13:01:18 +02:00
Mark Sagi-Kazar and Márk Sági-Kazár
4322cf20e9
feat: make toml2 the default
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
2022-05-26 17:48:00 +02:00
Mark Sagi-Kazar and Márk Sági-Kazár
8d0299919d
feat: make yaml3 the default
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
2022-05-26 17:27:50 +02:00
Mark Sagi-Kazar and Márk Sági-Kazár
7c35aa91d2
chore(deps): update yaml3
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
2022-05-26 17:27:50 +02:00
Mark Sagi-Kazar and Márk Sági-Kazár
433821fa47
feat: add etcd3 support to remote
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
2022-05-26 17:01:59 +02:00
Mark Sagi-Kazar and Márk Sági-Kazár
2080d43fa5
chore: update crypt
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
2022-05-26 17:01:59 +02:00
Wade Carpenter and Márk Sági-Kazár
da55858fff
chore: fix Error log calls in mergeMaps
...
The logger interface uses k,v pairs, but it was being called with a
format string, here.
Changed to use k,v pairs.
I didn't find any other instances of this problem.
2022-05-26 16:01:47 +02:00
Michael Wilson and Márk Sági-Kazár
f50ce904a9
Add in MustBindEnv.
...
Adds in a MustBindEnv function which will panic if BindEnv fails.
2022-05-26 15:53:50 +02:00
dependabot[bot] and Márk Sági-Kazár
3b836e5088
build(deps): bump github.com/subosito/gotenv from 1.2.0 to 1.3.0
...
Bumps [github.com/subosito/gotenv](https://github.com/subosito/gotenv ) from 1.2.0 to 1.3.0.
- [Release notes](https://github.com/subosito/gotenv/releases )
- [Changelog](https://github.com/subosito/gotenv/blob/master/CHANGELOG.md )
- [Commits](https://github.com/subosito/gotenv/compare/v1.2.0...v1.3.0 )
---
updated-dependencies:
- dependency-name: github.com/subosito/gotenv
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-05-26 15:47:59 +02:00
dependabot[bot] and Márk Sági-Kazár
5d65186f1e
build(deps): bump github.com/pelletier/go-toml/v2 from 2.0.0 to 2.0.1
...
Bumps [github.com/pelletier/go-toml/v2](https://github.com/pelletier/go-toml ) from 2.0.0 to 2.0.1.
- [Release notes](https://github.com/pelletier/go-toml/releases )
- [Changelog](https://github.com/pelletier/go-toml/blob/v2/.goreleaser.yaml )
- [Commits](https://github.com/pelletier/go-toml/compare/v2.0.0...v2.0.1 )
---
updated-dependencies:
- dependency-name: github.com/pelletier/go-toml/v2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-05-12 15:36:00 +02:00
dependabot[bot] and Márk Sági-Kazár
9f85518c5d
build(deps): bump github.com/spf13/cast from 1.4.1 to 1.5.0
...
Bumps [github.com/spf13/cast](https://github.com/spf13/cast ) from 1.4.1 to 1.5.0.
- [Release notes](https://github.com/spf13/cast/releases )
- [Commits](https://github.com/spf13/cast/compare/v1.4.1...v1.5.0 )
---
updated-dependencies:
- dependency-name: github.com/spf13/cast
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-05-12 11:46:19 +02:00
dependabot[bot] and Márk Sági-Kazár
ffad330c91
build(deps): bump github.com/fsnotify/fsnotify from 1.5.1 to 1.5.4
...
Bumps [github.com/fsnotify/fsnotify](https://github.com/fsnotify/fsnotify ) from 1.5.1 to 1.5.4.
- [Release notes](https://github.com/fsnotify/fsnotify/releases )
- [Changelog](https://github.com/fsnotify/fsnotify/blob/main/CHANGELOG.md )
- [Commits](https://github.com/fsnotify/fsnotify/compare/v1.5.1...v1.5.4 )
---
updated-dependencies:
- dependency-name: github.com/fsnotify/fsnotify
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-05-02 19:31:41 +02:00
dependabot[bot] and Márk Sági-Kazár
5f023c7e56
build(deps): bump github.com/pelletier/go-toml from 1.9.4 to 1.9.5
...
Bumps [github.com/pelletier/go-toml](https://github.com/pelletier/go-toml ) from 1.9.4 to 1.9.5.
- [Release notes](https://github.com/pelletier/go-toml/releases )
- [Commits](https://github.com/pelletier/go-toml/compare/v1.9.4...v1.9.5 )
---
updated-dependencies:
- dependency-name: github.com/pelletier/go-toml
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-05-02 19:29:38 +02:00
dependabot[bot] and Márk Sági-Kazár
55a46638f2
build(deps): bump github.com/mitchellh/mapstructure from 1.4.3 to 1.5.0
...
Bumps [github.com/mitchellh/mapstructure](https://github.com/mitchellh/mapstructure ) from 1.4.3 to 1.5.0.
- [Release notes](https://github.com/mitchellh/mapstructure/releases )
- [Changelog](https://github.com/mitchellh/mapstructure/blob/main/CHANGELOG.md )
- [Commits](https://github.com/mitchellh/mapstructure/compare/v1.4.3...v1.5.0 )
---
updated-dependencies:
- dependency-name: github.com/mitchellh/mapstructure
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-05-02 16:55:51 +02:00
dependabot[bot] and Márk Sági-Kazár
4eb3e0bc2f
build(deps): bump github.com/pelletier/go-toml/v2
...
Bumps [github.com/pelletier/go-toml/v2](https://github.com/pelletier/go-toml ) from 2.0.0-beta.8 to 2.0.0.
- [Release notes](https://github.com/pelletier/go-toml/releases )
- [Changelog](https://github.com/pelletier/go-toml/blob/v2/.goreleaser.yaml )
- [Commits](https://github.com/pelletier/go-toml/compare/v2.0.0-beta.8...v2.0.0 )
---
updated-dependencies:
- dependency-name: github.com/pelletier/go-toml/v2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-05-02 12:13:36 +02:00
dependabot[bot] and Márk Sági-Kazár
81089eeca9
build(deps): bump github/codeql-action from 1 to 2
...
Bumps [github/codeql-action](https://github.com/github/codeql-action ) from 1 to 2.
- [Release notes](https://github.com/github/codeql-action/releases )
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md )
- [Commits](https://github.com/github/codeql-action/compare/v1...v2 )
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-04-27 03:35:43 +02:00
Mark Sagi-Kazar
5243f253fc
chore: rename files to yaml
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
2022-04-14 01:05:39 +02:00
Mark Sagi-Kazar and Márk Sági-Kazár
6986c0ab48
chore: update crypt
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
2022-04-13 14:14:11 +02:00
Mark Sagi-Kazar and Márk Sági-Kazár
65293ecec2
add release note configuration
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
2022-04-13 13:37:59 +02:00
Mark Sagi-Kazar and Márk Sági-Kazár
6804da723f
chore!: drop Go 1.14 support
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
2022-04-13 13:37:21 +02:00
Mark Sagi-Kazar and Márk Sági-Kazár
5b21ca137d
fix: deprecated config
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
2022-04-13 13:22:15 +02:00
Mark Sagi-Kazar and Márk Sági-Kazár
55fac1047e
chore: fix lint
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
2022-04-13 13:22:15 +02:00
Mark Sagi-Kazar and Márk Sági-Kazár
e0bf4ac05d
chore: add go 1.18 builds
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
2022-04-13 13:22:15 +02:00
dependabot[bot] and Márk Sági-Kazár
973c265115
build(deps): bump github.com/pelletier/go-toml/v2
...
Bumps [github.com/pelletier/go-toml/v2](https://github.com/pelletier/go-toml ) from 2.0.0-beta.7 to 2.0.0-beta.8.
- [Release notes](https://github.com/pelletier/go-toml/releases )
- [Commits](https://github.com/pelletier/go-toml/compare/v2.0.0-beta.7...v2.0.0-beta.8 )
---
updated-dependencies:
- dependency-name: github.com/pelletier/go-toml/v2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-04-11 20:43:57 +02:00
dependabot[bot] and Márk Sági-Kazár
129e4f973c
build(deps): bump github.com/pelletier/go-toml/v2
...
Bumps [github.com/pelletier/go-toml/v2](https://github.com/pelletier/go-toml ) from 2.0.0-beta.6 to 2.0.0-beta.7.
- [Release notes](https://github.com/pelletier/go-toml/releases )
- [Commits](https://github.com/pelletier/go-toml/compare/v2.0.0-beta.6...v2.0.0-beta.7 )
---
updated-dependencies:
- dependency-name: github.com/pelletier/go-toml/v2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-04-10 14:25:58 +02:00
dependabot[bot] and Márk Sági-Kazár
9a8603d8f8
build(deps): bump actions/setup-go from 2 to 3
...
Bumps [actions/setup-go](https://github.com/actions/setup-go ) from 2 to 3.
- [Release notes](https://github.com/actions/setup-go/releases )
- [Commits](https://github.com/actions/setup-go/compare/v2...v3 )
---
updated-dependencies:
- dependency-name: actions/setup-go
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-04-09 21:49:16 +02:00
dependabot[bot] and Márk Sági-Kazár
dc76f3c0a9
build(deps): bump github.com/spf13/afero from 1.8.1 to 1.8.2
...
Bumps [github.com/spf13/afero](https://github.com/spf13/afero ) from 1.8.1 to 1.8.2.
- [Release notes](https://github.com/spf13/afero/releases )
- [Commits](https://github.com/spf13/afero/compare/v1.8.1...v1.8.2 )
---
updated-dependencies:
- dependency-name: github.com/spf13/afero
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-03-12 11:16:20 +01:00
dependabot[bot] and Márk Sági-Kazár
343434eb50
build(deps): bump gopkg.in/ini.v1 from 1.66.3 to 1.66.4
...
Bumps [gopkg.in/ini.v1](https://github.com/go-ini/ini ) from 1.66.3 to 1.66.4.
- [Release notes](https://github.com/go-ini/ini/releases )
- [Commits](https://github.com/go-ini/ini/compare/v1.66.3...v1.66.4 )
---
updated-dependencies:
- dependency-name: gopkg.in/ini.v1
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-03-05 17:53:31 +01:00
dependabot[bot] and Márk Sági-Kazár
860326d9e7
build(deps): bump github.com/magiconair/properties from 1.8.5 to 1.8.6
...
Bumps [github.com/magiconair/properties](https://github.com/magiconair/properties ) from 1.8.5 to 1.8.6.
- [Release notes](https://github.com/magiconair/properties/releases )
- [Changelog](https://github.com/magiconair/properties/blob/main/CHANGELOG.md )
- [Commits](https://github.com/magiconair/properties/compare/v1.8.5...v1.8.6 )
---
updated-dependencies:
- dependency-name: github.com/magiconair/properties
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-03-04 10:42:28 +01:00
dependabot[bot] and Márk Sági-Kazár
bba19c61d6
build(deps): bump actions/checkout from 2 to 3
...
Bumps [actions/checkout](https://github.com/actions/checkout ) from 2 to 3.
- [Release notes](https://github.com/actions/checkout/releases )
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md )
- [Commits](https://github.com/actions/checkout/compare/v2...v3 )
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-03-04 10:36:48 +01:00
dependabot[bot] and Márk Sági-Kazár
5986bd9c0c
build(deps): bump actions/github-script from 5 to 6
...
Bumps [actions/github-script](https://github.com/actions/github-script ) from 5 to 6.
- [Release notes](https://github.com/actions/github-script/releases )
- [Commits](https://github.com/actions/github-script/compare/v5...v6 )
---
updated-dependencies:
- dependency-name: actions/github-script
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-02-12 11:15:50 +01:00
dependabot[bot] and Márk Sági-Kazár
9f6bc5da85
build(deps): bump github.com/spf13/afero from 1.8.0 to 1.8.1
...
Bumps [github.com/spf13/afero](https://github.com/spf13/afero ) from 1.8.0 to 1.8.1.
- [Release notes](https://github.com/spf13/afero/releases )
- [Commits](https://github.com/spf13/afero/compare/v1.8.0...v1.8.1 )
---
updated-dependencies:
- dependency-name: github.com/spf13/afero
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-02-07 21:23:03 +01:00
dependabot[bot] and Márk Sági-Kazár
9fbab61cfd
build(deps): bump gopkg.in/ini.v1 from 1.66.2 to 1.66.3
...
Bumps [gopkg.in/ini.v1](https://github.com/go-ini/ini ) from 1.66.2 to 1.66.3.
- [Release notes](https://github.com/go-ini/ini/releases )
- [Commits](https://github.com/go-ini/ini/compare/v1.66.2...v1.66.3 )
---
updated-dependencies:
- dependency-name: gopkg.in/ini.v1
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-01-25 23:37:22 +01:00
Mark Sagi-Kazar
daf9560784
add the troubleshooting guide to the bug report template
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
2022-01-19 11:14:26 +01:00
Mark Sagi-Kazar
5f0a660bb4
add yaml y-n issue to the troubleshooting guide
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
2022-01-19 11:11:16 +01:00
Illarion Kovalchuk and Márk Sági-Kazár
97664ba020
Added test case for merging configs, where target is null, and source is not null
2022-01-11 22:36:46 +01:00
illarion Kovalchuk and Márk Sági-Kazár
0353c6ea50
Allow merging configs with different types of leaf values
2022-01-11 22:36:46 +01:00
dependabot[bot] and Márk Sági-Kazár
788403a47c
build(deps): bump github.com/spf13/afero from 1.7.1 to 1.8.0
...
Bumps [github.com/spf13/afero](https://github.com/spf13/afero ) from 1.7.1 to 1.8.0.
- [Release notes](https://github.com/spf13/afero/releases )
- [Commits](https://github.com/spf13/afero/compare/v1.7.1...v1.8.0 )
---
updated-dependencies:
- dependency-name: github.com/spf13/afero
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-01-11 18:31:11 +01:00
Mark Sagi-Kazar and Márk Sági-Kazár
5924acc506
feat: experimental logger
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
2022-01-01 19:02:51 +01:00
Mark Sagi-Kazar and Márk Sági-Kazár
b13f0963f6
feat(encoding): experimental toml v2 support
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
2022-01-01 18:45:36 +01:00
Mark Sagi-Kazar and Márk Sági-Kazár
98c10c3c31
test(encoding): fix failing tests due to the yaml library update
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
2022-01-01 18:16:38 +01:00
Mark Sagi-Kazar and Márk Sági-Kazár
f8a13cf704
feat(encoding): experimental yaml v3 library support
2022-01-01 18:16:38 +01:00
dependabot[bot] and Márk Sági-Kazár
9934fe79e7
build(deps): bump github.com/spf13/afero from 1.7.0 to 1.7.1
...
Bumps [github.com/spf13/afero](https://github.com/spf13/afero ) from 1.7.0 to 1.7.1.
- [Release notes](https://github.com/spf13/afero/releases )
- [Commits](https://github.com/spf13/afero/compare/v1.7.0...v1.7.1 )
---
updated-dependencies:
- dependency-name: github.com/spf13/afero
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-12-29 18:40:32 +01:00
dependabot[bot] and Márk Sági-Kazár
a0bc8ee4c3
build(deps): bump github.com/spf13/afero from 1.6.0 to 1.7.0
...
Bumps [github.com/spf13/afero](https://github.com/spf13/afero ) from 1.6.0 to 1.7.0.
- [Release notes](https://github.com/spf13/afero/releases )
- [Commits](https://github.com/spf13/afero/compare/v1.6.0...v1.7.0 )
---
updated-dependencies:
- dependency-name: github.com/spf13/afero
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-12-28 11:35:40 +01:00
Mark Sagi-Kazar and Márk Sági-Kazár
7b68d33505
ci: disable race detector on windows
2021-12-28 09:43:14 +01:00
Mark Sagi-Kazar and Márk Sági-Kazár
04d3a0cb02
feat(encoding): integrate dotenv codec into Viper
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
2021-12-15 22:31:11 +01:00
Mark Sagi-Kazar and Márk Sági-Kazár
1d11247e33
feat(encoding): add dotenv codec
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
2021-12-15 22:31:11 +01:00
Mark Sagi-Kazar and Márk Sági-Kazár
72453f720e
feat(encoding): integrate Java properties codec into Viper
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
2021-12-15 22:31:11 +01:00
Mark Sagi-Kazar and Márk Sági-Kazár
858ffb6bd0
feat(encoding): add Java properties codec
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
2021-12-15 22:31:11 +01:00
Mark Sagi-Kazar and Márk Sági-Kazár
430936044e
feat(encoding): integrate ini codec into Viper
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
2021-12-15 22:31:11 +01:00
Mark Sagi-Kazar and Márk Sági-Kazár
dd62da434f
refactor(encoding): initialize codecs per Viper
...
Some codecs might have options that rely on Viper in the future
(eg. key delimiter) which requires initializing codecs
for each Viper instance.
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
2021-12-15 22:31:11 +01:00
Mark Sagi-Kazar and Márk Sági-Kazár
38a4fbd769
feat(encoding): add ini codec
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
2021-12-15 22:31:11 +01:00
Mark Sagi-Kazar and Márk Sági-Kazár
e1924e3858
test(encoding): add tests for existing encoding implementations
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
2021-12-15 22:31:11 +01:00
Mark Sagi-Kazar and Márk Sági-Kazár
4b307cc0f3
feat(encoding)!: accept a map in the encoder interface
...
This interface is specific to encoding data from Viper's internal,
so it's okay to make it Viper specific.
BREAKING CHANGE: the encoder interface now accepts a map instead of an interface
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
2021-12-15 22:31:11 +01:00
Mark Sagi-Kazar and Márk Sági-Kazár
e54e7a53a5
feat(encoding)!: accept a map in the decoder interface
...
This interface is specific to decoding data into Viper's internal,
so it's okay to make it Viper specific.
BREAKING CHANGE: the decoder interface now accepts a map instead of an
interface
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
2021-12-15 22:31:11 +01:00
Stephen Wodecki and Márk Sági-Kazár
6c1745665b
unnecessary operand
2021-12-15 22:26:56 +01:00
Mark Sagi-Kazar and Márk Sági-Kazár
f646c50b18
chore(deps): update dependencies
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
2021-12-15 14:10:06 +01:00
Mark Sagi-Kazar and Márk Sági-Kazár
a4bfcd9ea0
chore(deps): update crypt
2021-12-12 04:00:30 +01:00
dependabot[bot] and Márk Sági-Kazár
1cb6606f6e
build(deps): bump gopkg.in/ini.v1 from 1.65.0 to 1.66.2
...
Bumps [gopkg.in/ini.v1](https://github.com/go-ini/ini ) from 1.65.0 to 1.66.2.
- [Release notes](https://github.com/go-ini/ini/releases )
- [Commits](https://github.com/go-ini/ini/compare/v1.65.0...v1.66.2 )
---
updated-dependencies:
- dependency-name: gopkg.in/ini.v1
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-12-12 02:56:38 +01:00
Mark Sagi-Kazar and Márk Sági-Kazár
a785a79f22
refactor: replace jww with the new logger interface
2021-12-09 18:58:22 +01:00
Mark Sagi-Kazar and Márk Sági-Kazár
f1f6b2122c
feat: add logger interface and default implementation
2021-12-09 18:58:22 +01:00
dependabot[bot] and Márk Sági-Kazár
c43197d858
build(deps): bump github.com/mitchellh/mapstructure from 1.4.2 to 1.4.3
...
Bumps [github.com/mitchellh/mapstructure](https://github.com/mitchellh/mapstructure ) from 1.4.2 to 1.4.3.
- [Release notes](https://github.com/mitchellh/mapstructure/releases )
- [Changelog](https://github.com/mitchellh/mapstructure/blob/master/CHANGELOG.md )
- [Commits](https://github.com/mitchellh/mapstructure/compare/v1.4.2...v1.4.3 )
---
updated-dependencies:
- dependency-name: github.com/mitchellh/mapstructure
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-12-02 22:22:27 +01:00
dependabot[bot] and Márk Sági-Kazár
2abe0ddbd4
build(deps): bump gopkg.in/ini.v1 from 1.64.0 to 1.65.0
...
Bumps [gopkg.in/ini.v1](https://github.com/go-ini/ini ) from 1.64.0 to 1.65.0.
- [Release notes](https://github.com/go-ini/ini/releases )
- [Commits](https://github.com/go-ini/ini/compare/v1.64.0...v1.65.0 )
---
updated-dependencies:
- dependency-name: gopkg.in/ini.v1
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-11-29 22:19:52 +01:00
Mark Sagi-Kazar and Márk Sági-Kazár
8ec82f8998
chore(deps): update crypt
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
2021-11-21 15:17:20 +01:00
Mark Sagi-Kazar and Márk Sági-Kazár
35877c8f77
chore: fix lint
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
2021-11-21 15:05:44 +01:00
Mark Sagi-Kazar and Márk Sági-Kazár
655a0aa730
chore(deps): update golangci-lint
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
2021-11-21 15:05:44 +01:00
Mark Sagi-Kazar and Márk Sági-Kazár
946ae75247
ci: fix github script
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
2021-11-21 15:04:54 +01:00
Mark Sagi-Kazar and Márk Sági-Kazár
d40d641ca7
chore: Go 1.17 update
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
2021-11-21 14:51:34 +01:00
Mark Sagi-Kazar and Márk Sági-Kazár
41ec2aaf27
chore: run lint fixer
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
2021-11-21 14:51:34 +01:00
Mark Sagi-Kazar and Márk Sági-Kazár
ba606cd9f1
chore: update build tools
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
2021-11-21 14:51:34 +01:00
dependabot[bot] and Márk Sági-Kazár
91b237fdbf
build(deps): bump actions/github-script from 4 to 5
...
Bumps [actions/github-script](https://github.com/actions/github-script ) from 4 to 5.
- [Release notes](https://github.com/actions/github-script/releases )
- [Commits](https://github.com/actions/github-script/compare/v4...v5 )
---
updated-dependencies:
- dependency-name: actions/github-script
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-11-21 14:42:33 +01:00
dependabot[bot] and Márk Sági-Kazár
793ee22246
build(deps): bump gopkg.in/ini.v1 from 1.63.2 to 1.64.0
...
Bumps [gopkg.in/ini.v1](https://github.com/go-ini/ini ) from 1.63.2 to 1.64.0.
- [Release notes](https://github.com/go-ini/ini/releases )
- [Commits](https://github.com/go-ini/ini/compare/v1.63.2...v1.64.0 )
---
updated-dependencies:
- dependency-name: gopkg.in/ini.v1
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-11-12 18:27:17 +01:00
Mark Sagi-Kazar and Márk Sági-Kazár
0594522560
test: fix failing tests on windows
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
2021-09-22 20:41:33 +02:00
Mark Sagi-Kazar and Márk Sági-Kazár
14c9dc6a57
test: fix file find tests on windows
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
2021-09-22 20:41:33 +02:00
Mark Sagi-Kazar and Márk Sági-Kazár
eae2327cb5
feat: disable finder for now
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
2021-09-22 20:41:33 +02:00
Mark Sagi-Kazar and Márk Sági-Kazár
237f373936
test: fix finder tests on windows
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
2021-09-22 20:41:33 +02:00
Mark Sagi-Kazar and Márk Sági-Kazár
78228f56c5
build: disable goconst linter for now
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
2021-09-22 11:17:33 +02:00
Mark Sagi-Kazar and Márk Sági-Kazár
8b7777d3c6
test(windows): skip failing tests on windows
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
2021-09-22 11:17:33 +02:00
Mark Sagi-Kazar and Márk Sági-Kazár
15c88da25c
test(windows): fix watch file test
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
2021-09-22 11:17:33 +02:00
Mark Sagi-Kazar and Márk Sági-Kazár
552e3bd0ca
ci: separate lint and test
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
2021-09-22 11:17:33 +02:00
Mark Sagi-Kazar and Márk Sági-Kazár
1a7008fa32
ci: make build pass on windows
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
2021-09-22 11:17:33 +02:00
Mark Sagi-Kazar and Márk Sági-Kazár
077ee305c4
ci: run tests on windows
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
2021-09-22 11:17:33 +02:00
Mark Sagi-Kazar and Márk Sági-Kazár
5a4e555471
test: add tests for reading config files
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
2021-09-21 18:01:05 +02:00
Mark Sagi-Kazar and Márk Sági-Kazár
08ba8ca7fc
ci: disable fail fast
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
2021-09-21 18:01:05 +02:00
Mark Sagi-Kazar and Márk Sági-Kazár
4e595cec77
feat: use io/fs for searching files on Go 1.16+
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
2021-09-21 18:01:05 +02:00
Mark Sagi-Kazar and Márk Sági-Kazár
557c5d64e0
test: improve tests for searching files
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
2021-09-21 18:01:05 +02:00
Mark Sagi-Kazar and Márk Sági-Kazár
8e71595a4a
feat: implement new finder using io/fs
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
2021-09-21 18:01:05 +02:00
Mark Sagi-Kazar and Márk Sági-Kazár
ce82267a11
refactor: drop unused Unsetenv from testutil
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
2021-09-21 11:27:27 +02:00
Mark Sagi-Kazar and Márk Sági-Kazár
558a299a01
feat: use TB.Setenv on Go 1.17
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
2021-09-21 11:27:27 +02:00
Jim Razmus II and Márk Sági-Kazár
b1fdc47b0d
Recognize tfvars files as hcl by default.
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
2021-09-19 23:25:03 +02:00
Mark Sagi-Kazar and Márk Sági-Kazár
65f16c1738
docs: fix indentation in code samples
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
2021-09-19 22:10:43 +02:00
dependabot[bot] and Márk Sági-Kazár
0d7e8034ee
build(deps): bump github.com/mitchellh/mapstructure from 1.4.1 to 1.4.2
...
Bumps [github.com/mitchellh/mapstructure](https://github.com/mitchellh/mapstructure ) from 1.4.1 to 1.4.2.
- [Release notes](https://github.com/mitchellh/mapstructure/releases )
- [Changelog](https://github.com/mitchellh/mapstructure/blob/master/CHANGELOG.md )
- [Commits](https://github.com/mitchellh/mapstructure/compare/v1.4.1...v1.4.2 )
---
updated-dependencies:
- dependency-name: github.com/mitchellh/mapstructure
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-09-19 09:30:36 +02:00
dependabot[bot] and Márk Sági-Kazár
6a29539e59
build(deps): bump gopkg.in/ini.v1 from 1.63.1 to 1.63.2
...
Bumps [gopkg.in/ini.v1](https://github.com/go-ini/ini ) from 1.63.1 to 1.63.2.
- [Release notes](https://github.com/go-ini/ini/releases )
- [Commits](https://github.com/go-ini/ini/compare/v1.63.1...v1.63.2 )
---
updated-dependencies:
- dependency-name: gopkg.in/ini.v1
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-09-19 09:30:24 +02:00
Séra Zoltán and Márk Sági-Kazár
fa3412d7ea
fix cannot write hidden file without extension ( #1017 )
2021-09-19 09:28:14 +02:00
Séra Zoltán and Márk Sági-Kazár
a1f26b11bd
Add test for cannot write hidden file without extension
2021-09-19 09:28:14 +02:00
Séra Zoltán and Márk Sági-Kazár
46a61e6fbd
Fixes #1062
2021-09-19 09:08:21 +02:00
Vasily Ovchinnikov and Márk Sági-Kazár
e606f7496e
fix: made InConfig process paths correctly
2021-09-16 10:32:19 +02:00
Márk Sági-Kazár and GitHub
2062cd6ee6
Fix codeql workflow
2021-09-15 21:19:19 +02:00
Mark Sagi-Kazar and Márk Sági-Kazár
c4687f7766
Add CodeQL analysis workflow
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
2021-09-15 21:08:35 +02:00
Mark Sagi-Kazar and Márk Sági-Kazár
5a4d2a0519
chore(deps): update crypt library fork
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
2021-09-15 21:08:07 +02:00
Mark Sagi-Kazar and Márk Sági-Kazár
6937864bf6
chore(deps): update go-ini dependency
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
2021-09-15 18:49:09 +02:00
dependabot[bot] and Márk Sági-Kazár
e897cbf546
build(deps): bump github.com/pelletier/go-toml from 1.9.3 to 1.9.4
...
Bumps [github.com/pelletier/go-toml](https://github.com/pelletier/go-toml ) from 1.9.3 to 1.9.4.
- [Release notes](https://github.com/pelletier/go-toml/releases )
- [Commits](https://github.com/pelletier/go-toml/compare/v1.9.3...v1.9.4 )
---
updated-dependencies:
- dependency-name: github.com/pelletier/go-toml
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-09-15 18:09:44 +02:00
连修明 and Márk Sági-Kazár
eb876e1a15
update readme.md
...
```go
viper.WatchConfig()
viper.OnConfigChange(func(e fsnotify.Event) {
fmt.Println("Config file changed:", e.Name)
})
```
this code will cause data race, please check this question:
https://stackoverflow.com/questions/68915944/viper-dynamically-loading-config-file-has-data-race/68919971#68919971
2021-09-04 19:33:59 +02:00
dependabot[bot] and Márk Sági-Kazár
38e00eefc4
Bump github.com/fsnotify/fsnotify from 1.4.9 to 1.5.1
...
Bumps [github.com/fsnotify/fsnotify](https://github.com/fsnotify/fsnotify ) from 1.4.9 to 1.5.1.
- [Release notes](https://github.com/fsnotify/fsnotify/releases )
- [Changelog](https://github.com/fsnotify/fsnotify/blob/master/CHANGELOG.md )
- [Commits](https://github.com/fsnotify/fsnotify/compare/v1.4.9...v1.5.1 )
---
updated-dependencies:
- dependency-name: github.com/fsnotify/fsnotify
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-09-04 19:28:57 +02:00
Mark Sagi-Kazar and Márk Sági-Kazár
5c0d079c4e
ci: run builds on Go 1.17
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
2021-08-24 23:23:02 +02:00
dependabot[bot] and Márk Sági-Kazár
cf6565fd72
Bump github.com/spf13/cast from 1.4.0 to 1.4.1
...
Bumps [github.com/spf13/cast](https://github.com/spf13/cast ) from 1.4.0 to 1.4.1.
- [Release notes](https://github.com/spf13/cast/releases )
- [Commits](https://github.com/spf13/cast/compare/v1.4.0...v1.4.1 )
---
updated-dependencies:
- dependency-name: github.com/spf13/cast
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-08-17 01:41:55 +02:00
Márk Sági-Kazár and GitHub
a7cfd8b8e0
Fix bug report template
2021-07-30 03:38:09 +02:00
Márk Sági-Kazár and GitHub
294bb31a4b
Add Go version to bug report tempplate
2021-07-30 03:37:33 +02:00
dependabot[bot] and Márk Sági-Kazár
f2053fabba
Bump github.com/spf13/cast from 1.3.1 to 1.4.0
...
Bumps [github.com/spf13/cast](https://github.com/spf13/cast ) from 1.3.1 to 1.4.0.
- [Release notes](https://github.com/spf13/cast/releases )
- [Commits](https://github.com/spf13/cast/compare/v1.3.1...v1.4.0 )
---
updated-dependencies:
- dependency-name: github.com/spf13/cast
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-07-28 03:20:43 +02:00
Mark Sagi-Kazar and Márk Sági-Kazár
ab4b05adc6
chore: add GitHub issue forms
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
2021-07-14 04:02:54 +02:00
Márk Sági-Kazár
e866eaa591
Update feedback_pull_request.yml
2021-07-12 19:53:25 +02:00
Márk Sági-Kazár
bc5df54485
Update feedback_issue.yml
2021-07-12 19:53:25 +02:00
dependabot[bot] and Márk Sági-Kazár
409a7ba1d6
Bump actions/github-script from 3 to 4.0.2
...
Bumps [actions/github-script](https://github.com/actions/github-script ) from 3 to 4.0.2.
- [Release notes](https://github.com/actions/github-script/releases )
- [Commits](https://github.com/actions/github-script/compare/v3...v4.0.2 )
---
updated-dependencies:
- dependency-name: actions/github-script
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-07-12 19:53:25 +02:00
Márk Sági-Kazár
489df740ac
Update dependabot.yml
2021-07-12 19:44:20 +02:00
Matthieu MOREL and Márk Sági-Kazár
899b682f8c
Create dependabot.yml
2021-07-12 19:44:20 +02:00
Mark Sagi-Kazar
030b739e60
docs: add section about decoding formats
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
2021-06-25 14:49:58 +02:00
Mark Sagi-Kazar and Márk Sági-Kazár
a02f9864fa
feat(encoding): Integrate the new encoding package into Viper
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
2021-06-25 14:26:08 +02:00
Mark Sagi-Kazar and Márk Sági-Kazár
699d749768
feat(encoding): Add toml codec
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
2021-06-25 14:26:08 +02:00
Mark Sagi-Kazar and Márk Sági-Kazár
6f15444771
feat(encoding): Add hcl codec
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
2021-06-25 14:26:08 +02:00
Mark Sagi-Kazar and Márk Sági-Kazár
186266359b
feat(encoding): Add json codec
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
2021-06-25 14:26:08 +02:00
Mark Sagi-Kazar and Márk Sági-Kazár
0e854bf27b
feat(encoding): Add yaml codec
2021-06-25 14:26:08 +02:00
Mark Sagi-Kazar and Márk Sági-Kazár
a00caae79f
feat(encoding): Encoder/Decoder registry implementations
2021-06-25 14:26:08 +02:00
Mikhail f. Shiryaev and Márk Sági-Kazár
bd03865899
Add a proper processing for pflag.StringArray
2021-06-25 13:55:36 +02:00
lmx-Hexagram and Márk Sági-Kazár
3fcad43618
update %s to %w
...
I apologize for my rude pr on modify readme
I think it is better to use %w in fmt.Errorf instead of %s
(see go doc)[https://golang.org/pkg/errors/ ]
2021-06-17 19:17:07 +02:00
Mark Sagi-Kazar and Márk Sági-Kazár
faa8ba0c53
chore: update gotestsum
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
2021-06-16 03:06:32 +02:00
Mark Sagi-Kazar and Márk Sági-Kazár
65ee98690c
chore(lint): fix gofumpt
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
2021-06-16 03:06:32 +02:00
Mark Sagi-Kazar and Márk Sági-Kazár
04ef5fa07d
chore: update golangci-lint
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
2021-06-16 03:06:32 +02:00
Carlos Henrique Guardão Gandarez and Márk Sági-Kazár
acd965b54e
Add ini load options argument
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
2021-06-16 01:55:16 +02:00
Mark Sagi-Kazar and Márk Sági-Kazár
5f4d053c3e
chore(deps): update dependencies
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
2021-06-16 01:47:15 +02:00
Mark Sagi-Kazar and Márk Sági-Kazár
dd57ae6279
chore(deps): update etcd
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
2021-06-16 01:47:15 +02:00
Carolyn Van Slyck and Márk Sági-Kazár
cdb5e5976f
Fix merging a key into a nil target
...
When merging a key where the target value is nil, the type of the target
and source do not match. What currently happens is an error is logged
and the key is skipped.
I have changed it so that it does the same thing as when the target key
is missing: copy the source value to the target.
Signed-off-by: Carolyn Van Slyck <me@carolynvanslyck.com >
2021-05-17 08:55:31 +02:00
Mark Sagi-Kazar and Márk Sági-Kazár
36be6bf91f
feat: make sure Viper compiles on WASM
...
fsnotify is not available on WASM,
so config watching is not going to work.
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
2021-04-24 10:24:23 +02:00
Chris Waldon and Márk Sági-Kazár
727a41c38a
doc: add a note about concurent Get/Set to godoc
2021-04-15 18:20:20 +02:00
Chris Waldon and Márk Sági-Kazár
cb41ae0ab8
doc: discuss concurrency in README
2021-04-15 18:20:20 +02:00
Mark Sagi-Kazar and Márk Sági-Kazár
7fdb267c73
chore: update dependencies
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
2021-04-15 18:12:07 +02:00
Mark Sagi-Kazar and Márk Sági-Kazár
52536944d5
ci: add Go 1.16 to build matrix
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
2021-03-15 09:30:15 +01:00
r-stepanenko and GitHub
fb4eafdd97
fix INI saving panics ( #1075 )
2021-03-10 14:46:19 +01:00
bridgetbarnes and GitHub
3c7b44f0bc
Update afero version (CVE-2020-14040) ( #1090 )
...
* Update afero version
* Ran go mod tidy
2021-03-10 14:45:23 +01:00
Mark Sagi-Kazar and Márk Sági-Kazár
4613c4a95f
docs: move troubleshooting to a new document
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
2021-02-15 07:47:45 +01:00
Mark Sagi-Kazar and Márk Sági-Kazár
a86148e76e
docs: add note about go modules to the readme
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
2021-02-15 07:47:45 +01:00
Mark Sagi-Kazar and Márk Sági-Kazár
e66f940bcc
docs: add troubleshooting guide about package not being found
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
2021-02-15 07:47:45 +01:00
Mark Sagi-Kazar
d10c856f6c
Add discussions to issue links
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
2021-01-11 03:55:13 +01:00
Márk Sági-Kazár and GitHub
da70fee083
Add troubleshooting about unmarshaling
2020-12-17 22:13:27 +01:00
Mark Sagi-Kazar
99da8b22a1
Add labels to issue templates
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
2020-12-11 17:36:00 +01:00
Mark Sagi-Kazar
811f0e6937
Add issue and PR templates
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
2020-12-11 17:33:03 +01:00
Mark Sagi-Kazar and Márk Sági-Kazár
bba82cfc61
docs: add run on repl.it badge with example
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
2020-12-03 01:43:52 +01:00
Benjamin Lee and Márk Sági-Kazár
6ddd35486b
Always quote $@
2020-12-02 14:59:11 +01:00
Márk Sági-Kazár and GitHub
493643fd5e
Update README.md
2020-11-03 14:29:48 +01:00
Pablo Santiago Blum de Aguiar and Márk Sági-Kazár
f415025b98
Fix a minor typo in README.md
2020-10-30 23:19:06 +01:00
Meysam GanJi and Márk Sági-Kazár
4938331709
fix typo
2020-10-12 09:45:20 +02:00
Mark Sagi-Kazar
8c89438499
docs: improve AutomaticEnv documentation
...
Fixes #1000
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
2020-10-08 02:46:11 +02:00
dylandreimerink and GitHub
33bcdc91ea
Added support for accessing slices ( #861 )
...
* Added support for accessing slices
* Processed PR feedback
- renamed searchMapWithPathPrefixes to searchIndexableWithPathPrefixes
- moved source type specific search logic to speparate functions
- Inverted if statments to avoid the arrow pattern
* Quickly return from searchSliceWithPathPrefixes and searchMapWithPathPrefixes functions without intermediate variables
2020-10-04 20:07:34 +02:00
Mark Sagi-Kazar
44e6ee8945
Use pull_request_target event in PR feedback
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
2020-10-03 17:48:38 +02:00
Mark Sagi-Kazar
656b8771b8
Revert "Remove pull request feedback"
...
This reverts commit 0a45372c6c .
2020-10-03 17:48:08 +02:00
Mark Sagi-Kazar
0a45372c6c
Remove pull request feedback
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
2020-10-01 22:37:29 +02:00
Mark Sagi-Kazar and Márk Sági-Kazár
82c2ddf493
Fix tests broken by mapstructure update
...
Mapstructure so far returned nil for empty string slices.
In a recent version this bug has been fixed:
https://github.com/mitchellh/mapstructure/pull/155
Incidentally, this was a bug in Viper too:
GetStringSlice and Unmarshal returned with different values.
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
2020-09-30 15:03:37 +02:00
Mark Sagi-Kazar and Márk Sági-Kazár
16dc0f72ce
chore(deps): update mapstructure dependency
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
2020-09-30 15:03:37 +02:00
Mark Sagi-Kazar and Márk Sági-Kazár
f67a901790
docs: add go version badge and update pkg.go.dev badge
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
2020-09-30 13:15:51 +02:00
Mark Sagi-Kazar and Márk Sági-Kazár
d2df377935
ci: drop tests for Go 1.11-1.13
...
The Cleanup function used in this PR is only available from Go 1.14
While it would be nice to support more Go versions,
Go itself does not support other than the last two,
so that should be fine for Viper as well.
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
2020-09-30 13:15:51 +02:00
Mark Sagi-Kazar and Márk Sági-Kazár
cfcfed504d
refactor: add setenv helper for tests
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
2020-09-30 13:15:51 +02:00
Gabriel Aszalos and Márk Sági-Kazár
ea890285a5
Update docs
2020-09-30 12:44:21 +02:00
Gabriel Aszalos and Márk Sági-Kazár
b655224c01
Allow BindEnv to register multiple environment variables.
...
This change modifies BindEnv to permit a list of environment variable
names in order to support multiple env. vars. for the same config key.
When this form is used, env. keys take precedence in the written order.
Closes #971
2020-09-30 12:44:21 +02:00
Mark Sagi-Kazar
b534983313
Add some emojis to feedback bot
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
2020-09-30 09:25:53 +02:00
Mark Sagi-Kazar
f3c095442f
Add some emojis to feedback bot
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
2020-09-30 09:23:52 +02:00
Mark Sagi-Kazar
dd2e0fa15f
Add feedback bot to pull request
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
2020-09-30 09:16:23 +02:00
Mark Sagi-Kazar
bed424f7c0
Add feedback bot to issue
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
2020-09-30 09:13:00 +02:00
Mark Sagi-Kazar
29c3027c49
docs: rewrite sub documentation
...
Fixes #988
Fixes #987
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
2020-09-27 22:59:46 +02:00
Mark Sagi-Kazar
6d4eb764b6
Add feedback form to the readme
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
2020-09-27 01:06:10 +02:00
Mark Sagi-Kazar
406ea27dc0
Add feedback form to the readme
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
2020-09-27 01:04:34 +02:00
Dan Rollo and Márk Sági-Kazár
a0285163e1
ensure BindPFlag() detects a nil flag parameter before wrapping in pflagValue.
2020-09-23 19:29:16 +02:00
Mark Sagi-Kazar and Márk Sági-Kazár
d9d7dcdc63
Increase lint timeout
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
2020-09-11 17:53:37 +02:00
Mark Sagi-Kazar and Márk Sági-Kazár
a5152092c6
Improve lint rules
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
2020-09-11 17:53:37 +02:00
Mark Sagi-Kazar
ae12c841bc
Upgrade linter
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
2020-09-11 17:43:32 +02:00
Mark Sagi-Kazar and Márk Sági-Kazár
387404d518
Add log for remote config errors
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
2020-09-09 22:37:34 +02:00
Mark Sagi-Kazar
f26928cd87
Add Go 1.15 to the build matrix
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
2020-09-09 22:32:07 +02:00
Mark Sagi-Kazar
9c7144ec1e
Build on both linux and macos
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com >
2020-09-05 23:53:06 +02:00
John Gosset and Márk Sági-Kazár
3826be3135
Simplify $HOME prefix check
2020-07-31 23:39:06 +02:00
João Abecasis and Márk Sági-Kazár
ce534045f9
Fix environment variable expansion in absPathify
...
- Don't expand user home directory for variable names that simply have a
HOME prefix;
- Support expansion of variables not followed by the path separator.
2020-07-31 23:39:06 +02:00
Oleg Butuzov and Márk Sági-Kazár
13494e8047
Skipping error != nil checks in favor of the fast return.
2020-07-16 06:22:21 +02:00
Mark Sagi-Kazar
13df721090
Add Go 1.14 to build targets
2020-05-09 11:42:39 +02:00
Trevor Foster and GitHub
3856c05f99
Fix: Getting the value of a StringToString pflag ( #874 )
...
* add parsing for stringToString flags
* add logic to return flags default if not val set, add a test
* extract parsing into single func
* add a few more cases
* return nil if unable to parse instead of panicing
* return map[string]interface in order to work with cast.ToStringMap
* mostly copy pflags implementation of the conversion to a stringtostring
2020-05-09 11:38:39 +02:00
flow00 and Márk Sági-Kazár
c6ee9808ab
fix_ini_save_error
2020-05-05 12:50:28 +02:00
John McBride and GitHub
c42a305a4b
Update gorilla dependency ( #899 )
...
* Update gorilla dependency
* Run go mod tidy
2020-04-21 17:18:44 +02:00
Mark Sagi-Kazar
e34fb51dd7
Add mentioned in awesome badge
2020-04-09 23:56:02 +02:00
Mark Sagi-Kazar
7eea3718bf
Remove go version badge
2020-04-09 22:21:21 +02:00
Mark Sagi-Kazar
aa8e4d4983
Update badges and logo
2020-04-09 22:20:35 +02:00
Mark Sagi-Kazar
9b03d15591
Ignore idea
2020-04-09 20:15:13 +02:00
Gustavo Bazan and GitHub
97ee7adfef
Add support to save file with no extension ( #813 )
...
* Add support to save file with no extension
The support introduced for files with no file extension is only partial as trying to save the config file would fail with `<file name> requires valid extension`
This adds support to saving such files
2020-02-20 00:41:04 +01:00
Alexey Maslov and Márk Sági-Kazár
b31a49291e
updated docs in README.
2020-02-20 00:36:32 +01:00
Alexey Maslov and Márk Sági-Kazár
9c81997cb1
added firestore support.
2020-02-20 00:36:32 +01:00
Alexey Maslov and Márk Sági-Kazár
502400c0d9
changed github.com/xordataexchange/crypt to github.com/bketelsen/crypt.
2020-02-20 00:36:32 +01:00
aeneasr and Márk Sági-Kazár
7ddaa61d67
Remove .idea directory
2020-02-20 00:27:03 +01:00
Mark Sagi-Kazar
f2cbaea4c2
Fix copy-paste error in documentation
...
Fixes #825
2020-01-16 19:54:31 +01:00
Mark Sagi-Kazar
df9f4af211
Remove travis config
2020-01-16 19:38:02 +01:00
Mark Sagi-Kazar
1b7d3e05fd
Improve golangci config
2020-01-16 19:37:50 +01:00
Mark Sagi-Kazar
16fb4b9d29
Add editorconfig
2020-01-16 19:37:42 +01:00