Skip to content

Commit 01951b3

Browse files
committed
go_vendor_license: work around bug with old tomlkit versions
Older versions of Fedora still have this bug, and the new way makes much more sense when we're only setting a single key in the dictionary. This was originally written like this when the plan was to add additional items to the `write_config_data` dictionary. Relates: python-poetry/tomlkit#331
1 parent f09ff94 commit 01951b3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/go_vendor_tools/cli/go_vendor_license.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ def get_report_write_config_data(
373373
new_config_path = _write_config_verify_path(config_path)
374374
loaded = load_tomlkit_if_exists(config_path)
375375
write_config_data = loaded.setdefault("licensing", {})
376-
write_config_data |= {"detector": detector.NAME}
376+
write_config_data["detector"] = detector.NAME
377377
return new_config_path, loaded
378378

379379

0 commit comments

Comments
 (0)