GitHub
07/28/2025, 4:42 AM2025-07-28 16:19:19,058 | WARNING | py.warnings | /Users/xxx/projects/yyy/.virtualenvs/target-postgres/lib/python3.9/site-packages/singer_sdk/plugin_base.py:715: SingerSDKDeprecationWarning: Passing a list of config file paths is deprecated. Please pass the config as a dictionary instead.
super().__init__(
I've found that plugin_base does not like to be passed a list of file paths.
Yet when instantiating the TargetBase, it invokes config_from_cli_args, which does provide a list of file paths which is then directly passed to the constructor, which seems to be causing this deprecation warning.
I see on main branch there is some changes that remove config_from_cli_args and replace it with _ConfigInput.
Am I going mad, or this is a case of bad timing where at this point of time using 0.47.4 causes this deprecation warning?
Just to check, I've added a print(config_files) right after the config_from_cli_args, and here is the execution (see PosixPath... output line), so yes indeed it's a list:
> .virtualenvs/target-postgres/bin/target-postgres --config test.json --config ENV
2025-07-28 16:45:06,549 | INFO | target-postgres | target-postgres v0.4.3, Meltano SDK v0.47.4
[PosixPath('test.json')]
2025-07-28 16:45:06,550 | WARNING | py.warnings | /Users/xxx/projects/yyy/.virtualenvs/target-postgres/lib/python3.9/site-packages/singer_sdk/plugin_base.py:713: SingerSDKDeprecationWarning: Passing a list of config file paths is deprecated. Please pass the config as a dictionary instead.
super().__init__(
2025-07-28 16:45:06,550 | INFO | target-postgres | Parsing env var for settings config...
The example in target-postgres seems to say this is the right way to use --config. There doesn't seem to be a way for me to pass a dictionary to there, but am I missing something?
### Link to Slack/Linen
No response
meltano/sdkGitHub
07/31/2025, 3:14 AM