Title: CRASH on cargo provider · Issue #2001 · commitizen-tools/commitizen · GitHub
Open Graph Title: CRASH on cargo provider · Issue #2001 · commitizen-tools/commitizen
X Title: CRASH on cargo provider · Issue #2001 · commitizen-tools/commitizen
Description: Description Hello, In cargo_provider.py on line 86, there is version_workspace = package_content["version"]["workspace"]. This causes commitizen to crash (traceback) under the following conditions: you have a cargo workspace you have a c...
Open Graph Description: Description Hello, In cargo_provider.py on line 86, there is version_workspace = package_content["version"]["workspace"]. This causes commitizen to crash (traceback) under the following conditions:...
X Description: Description Hello, In cargo_provider.py on line 86, there is version_workspace = package_content["version"]["workspace"]. This causes commitizen to crash (traceback) under the f...
Opengraph URL: https://github.com/commitizen-tools/commitizen/issues/2001
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"CRASH on cargo provider","articleBody":"### Description\n\nHello,\n\nIn cargo_provider.py on line 86, there is `version_workspace = package_content[\"version\"][\"workspace\"]`.\nThis causes commitizen to crash (traceback) under the following conditions:\n- you have a cargo workspace\n- you have a crate that is a worskpace member\n- this crate has (in `[package]` key) a `version = 0.1.0`\n\nThe error is: `TypeError: string indices must be integers, not 'str'`\n\nThis could be fixed by checking that workspace key exists (and check that it is True, which is already done)\n\n### Steps to reproduce\n\n- you have a cargo workspace\n- you have a crate that is a worskpace member\n- this crate has (in `[package]` key) a `version = 0.1.0`\n\n### Current behavior\n\nTypeError: string indices must be integers, not 'str'\n\n### Desired behavior\n\nno crash\n\n### Screenshots\n\n_No response_\n\n### Environment\n\nCommitizen Version: 4.16.2","author":{"url":"https://github.com/vemilano","@type":"Person","name":"vemilano"},"datePublished":"2026-05-21T15:56:20.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/2001/commitizen/issues/2001"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:581ea0cb-aaba-1a47-11ed-87984119d5ca |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 86CE:1FFE41:75664:A051F:6A6287FB |
| html-safe-nonce | 7e21803ae55486542e22a41957ed54a2a7cd270076cf1e0756b6f15df965a31d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NkNFOjFGRkU0MTo3NTY2NDpBMDUxRjo2QTYyODdGQiIsInZpc2l0b3JfaWQiOiIyOTYwNjk5NjU1MzI2OTU5NjExIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 911f9347c4e0e2fd888182559c62703b3d522d0ec531711fce9076ce843dd346 |
| hovercard-subject-tag | issue:4496026896 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/commitizen-tools/commitizen/2001/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6159caa2ece52e8977f3c1bdefa0b7b1f7410afdcfa1f17e0c01793f0f3295d9/commitizen-tools/commitizen/issues/2001 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6159caa2ece52e8977f3c1bdefa0b7b1f7410afdcfa1f17e0c01793f0f3295d9/commitizen-tools/commitizen/issues/2001 |
| og:image:alt | Description Hello, In cargo_provider.py on line 86, there is version_workspace = package_content["version"]["workspace"]. This causes commitizen to crash (traceback) under the following conditions:... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | vemilano |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7a4ef49a11a2c05de16a801b29c54a151d2e3262d6fd17381ca13b5ae25dda8f |
| turbo-cache-control | no-preview |
| go-import | github.com/commitizen-tools/commitizen git https://github.com/commitizen-tools/commitizen.git |
| octolytics-dimension-user_id | 62252524 |
| octolytics-dimension-user_login | commitizen-tools |
| octolytics-dimension-repository_id | 106127589 |
| octolytics-dimension-repository_nwo | commitizen-tools/commitizen |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 106127589 |
| octolytics-dimension-repository_network_root_nwo | commitizen-tools/commitizen |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 97b18c8f1d2683a31995fd6e802daf9bf0d4d3f0 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width