Skip to content
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

Incorrect partition error message #836

Open
mattculler opened this issue Sep 5, 2024 · 1 comment
Open

Incorrect partition error message #836

mattculler opened this issue Sep 5, 2024 · 1 comment
Assignees
Labels
Bug Something isn't working Triaged

Comments

@mattculler
Copy link
Contributor

mattculler commented Sep 5, 2024

Bug Description

Every PartitionUsageError tells the user that the partition names are incorrect, but this exception is used more generally than that.

To Reproduce

Trigger a PartitionUsageError using the part yaml below.

part yaml

parts:
  busybox:
    stage-packages: [busybox-static]
    plugin: nil
    organize:
      "*": (mattos-a)/
    stage:
      - (mattos-a)/
    prime:
      - (mattos-a)/

Relevant log output

2024-09-05 12:08:34.729 craft_parts.errors.PartitionUsageError: Invalid usage of partitions                                                                                             
2024-09-05 12:08:34.729   parts.busybox.stage                                                                                                                                           
2024-09-05 12:08:34.729     no path specified after partition in '(mattos-a)/'                                                                                                          
2024-09-05 12:08:34.729   parts.busybox.prime                                                                                                                                           
2024-09-05 12:08:34.729     no path specified after partition in '(mattos-a)/'                                                                                                          
2024-09-05 12:08:34.729 Valid partitions: default, bios, mattos-boot, mattos-a, mattos-b, mattos-save, mattos-data                                                                      
2024-09-05 12:08:34.729 Correct the invalid partition name(s) and try again.                                                                                                            
2024-09-05 12:08:34.729 Recommended resolution: Correct the invalid partition name(s) and try again.
@mattculler mattculler added Bug Something isn't working Triaged labels Sep 5, 2024
@mattculler mattculler self-assigned this Sep 5, 2024
Copy link

Thank you for reporting us your feedback!

The internal ticket has been created: https://warthogs.atlassian.net/browse/CRAFT-3320.

This message was autogenerated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Triaged
Projects
None yet
Development

No branches or pull requests

1 participant