Mark Sagi-Kazar
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
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
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
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
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
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
6c1745665b
unnecessary operand
2021-12-15 22:26:56 +01:00
Mark Sagi-Kazar
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
a4bfcd9ea0
chore(deps): update crypt
2021-12-12 04:00:30 +01:00
dependabot[bot]
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
a785a79f22
refactor: replace jww with the new logger interface
2021-12-09 18:58:22 +01:00
Mark Sagi-Kazar
f1f6b2122c
feat: add logger interface and default implementation
2021-12-09 18:58:22 +01:00
dependabot[bot]
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]
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
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
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
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
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
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
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
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]
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]
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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]
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]
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
fa3412d7ea
fix cannot write hidden file without extension ( #1017 )
2021-09-19 09:28:14 +02:00
Séra Zoltán
a1f26b11bd
Add test for cannot write hidden file without extension
2021-09-19 09:28:14 +02:00
Séra Zoltán
46a61e6fbd
Fixes #1062
2021-09-19 09:08:21 +02:00
Vasily Ovchinnikov
e606f7496e
fix: made `InConfig` process paths correctly
2021-09-16 10:32:19 +02:00
Márk Sági-Kazár
2062cd6ee6
Fix codeql workflow
2021-09-15 21:19:19 +02:00
Mark Sagi-Kazar
c4687f7766
Add CodeQL analysis workflow
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
2021-09-15 21:08:35 +02:00