-
Notifications
You must be signed in to change notification settings - Fork 653
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
Change to INI file parsing in [email protected]
and [email protected]
#2349
Comments
[email protected]
[email protected]
and [email protected]
Almost certainly a regression from #2226 |
@gdavison i just put up a PR to resolve this issue. While we would have liked the maintain the old behavior of ignoring the extra whitespace in front of a property definition, this will not be possible in order to support this feature aws/aws-sdk#229 This is because leading whitespace in front of a property definition is now defined as a "sub-property" and subproperties are used to support the feature above. So, we will be throwing a new error as shown in #2359 The added changelog will reflect this breakfix. |
|
Describe the bug
In previous versions, leading whitespace before keys in INI files would be ignored during parsing. A file with leading whitespace such as
[default] retry_mode = standard
would successfully use the
RetryMode
standard
Staring in v1.21.0 this file would not be parsed and configuration would silently fail.
Expected Behavior
One of two options is expected:
Current Behavior
The SDK silently ignores the parsing failure
Reproduction Steps
In the test
TestParser
(aws-sdk-go-v2/internal/ini/ini_parser_test.go
Line 11 in 71819e8
This will fail with
Possible Solution
No response
Additional Information/Context
No response
AWS Go SDK V2 Module Versions Used
github.com/aws/aws-sdk-go-v2/config v1.22.0
Compiler and Version used
go version go1.21.0 darwin/arm64
Operating System and version
macOS 13.4.1
The text was updated successfully, but these errors were encountered: