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

bugfix: don't assume a fixed number of segments in blob resource IDs #109

Merged
merged 3 commits into from
Mar 18, 2024

Conversation

manicminer
Copy link
Collaborator

@manicminer manicminer commented Mar 15, 2024

@manicminer manicminer added the bug Something isn't working label Mar 15, 2024
Copy link
Owner

@tombuildsstuff tombuildsstuff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One thought about tests but otherwise 👍

Comment on lines +71 to 73
if len(segments) < 2 {
return nil, fmt.Errorf("expected the path to contain at least 2 segments but got %d", len(segments))
}
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we add a test covering this?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes absolutely 👍

@manicminer manicminer merged commit 8efc5bb into main Mar 18, 2024
1 check passed
@manicminer manicminer deleted the bugfix/resource-ids branch March 18, 2024 21:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants