Milos Gajdos
0d5789588f
chore: smol go fix changes
...
This PR changes the code based on the `go fix` suggestions
to modernize the codebase and keep up with the latest Go features.
Signed-off-by: Milos Gajdos <milosthegajdos@gmail.com >
2026-05-24 15:56:02 -07:00
Milos Gajdos
d4164c1edb
Correctly match environment variables to YAML-inlined structs in configuration ( #4639 )
2026-03-25 10:37:19 -07:00
Sebastiaan van Stijn
775d3734eb
modernize code
...
Automated fixing, using Go's "modernize" tool;
go install golang.org/x/tools/go/analysis/passes/modernize/cmd/modernize@latest
modernize -fix ./...
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2026-02-12 18:28:58 +01:00
evanebb
54b56cdb3f
Inline env variables if the underlying struct is YAML inlined
...
Signed-off-by: evanebb <git@evanus.nl >
2025-08-15 12:54:15 +02:00
Mateusz Urbanek
b2cc4fe1c7
fix: define types for inline structs
...
Signed-off-by: Mateusz Urbanek <mateusz.urbanek.98@gmail.com >
2025-03-09 20:44:46 +01:00
Eng Zer Jun
bcbf0431d1
testing: replace legacy gopkg.in/check.v1
...
This commit replaces the legacy `gopkg.in/check.v1` testing dependency
with `github.com/stretchr/testify`.
Closes https://github.com/distribution/distribution/issues/3884 .
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com >
2023-12-13 09:22:43 +00:00
Milos Gajdos
0cf87b1fd1
Fix the code and update tests that verify the new code works
...
Signed-off-by: Milos Gajdos <milosthegajdos@gmail.com >
2023-07-17 22:40:32 +01:00
Sebastiaan van Stijn
3fa6d5a33b
remove dot-imports for gopkg.in/check.v1
...
Dot-imports were only used in a couple of places, and replacing them
makes it more explicit what's imported.
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2023-04-29 17:08:47 +02:00
Gladkov Alexey
e69837454a
Add tests for configuration parser
...
Signed-off-by: Gladkov Alexey <agladkov@redhat.com >
2017-11-15 17:01:19 +01:00