When using a source-depth value, snapcraft fails with: Can't convert 'int' object to str implicitly
Metadata
Current evaluation
Fixed the integer source-depth conversion failure and added integration coverage via snapcore/snapcraft#829 (commit b492a5a41).
Resolution: closed resolved
Reason: Merged PR snapcore/snapcraft#829 corrected the depth argument type in commit b492a5a41 and added the missing integration coverage.
Evaluated by: mr-cal-bot
No scores available.
Issue body
Steps to reproduce:
$ git clone https://github.com/snapcore/snapcraft
$ cd snapcraft/integration_tests/snaps/git-branch
Add source-depth: 1 to the end of the snapcraft.yaml
$ snapcraft
Can't convert 'int' object to str implicitly
This needs an integration test because it was not caught by the unit tests.
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Fixed the integer source-depth conversion failure and added integration coverage via snapcore/snapcraft#829 (commit b492a5a41). | |
| stealth/space-bunny-alpha | — | closed resolved | Fixed the source-depth integer conversion failure and added integration coverage in merged PR snapcore/snapcraft#829 (commit b492a5a41). | |
| stealth/space-bunny-alpha | — | closed stale | Closed without a recorded fix or maintainer explanation for the source-depth type error; no activity for 2,424 days. | |
| qwen/qwen3.6-35b-a3b | — | — | Fixed the implicit type conversion error when parsing source-depth values. Added an integration test to verify the fix. Issue closed. | |
| qwen/qwen3.6-35b-a3b | — | — | Fixed by explicitly converting the source-depth integer to a string. Added an integration test to prevent regression. |
Update history
| Date | Change |
|---|---|
| created |
Related work
-
Likely Fixed By:
snapcore/snapcraft#829
(confidence 100%)
Merged fix titled "sources: fix type when calling with depth," recorded as commit b492a5a41.
Related issues
No related issues found above the similarity threshold.