You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Attempting to install a package whose name field in the GitHub releases payload is null fails.
To Reproduce
Issue command:
mise use spm:danger/swift
Resulting error text:
Error:
0: error decoding response body
1: invalid type: null, expected a string at line 1 column 1511
Location:
src/http.rs:105
Version:
2024.7.4 linux-arm64 (b9bc7df 2024-07-19)
Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.
Expected behavior
Github's schema for this field shows it is nullable:
"name": {
"type": [
"string",
"null"
]
}
I don't know the conditions why the name would be nullable, but it would be great if it were handled. Maybe if the name is null, then use the tag_name value instead? This field is not nullable.
The text was updated successfully, but these errors were encountered:
Describe the bug
Attempting to install a package whose
name
field in the GitHub releases payload isnull
fails.To Reproduce
Issue command:
Resulting error text:
Snippet of Github releases api:
Note the
null
name field.Expected behavior
Github's schema for this field shows it is nullable:
I don't know the conditions why the name would be nullable, but it would be great if it were handled. Maybe if the
name
isnull
, then use thetag_name
value instead? This field is not nullable.The text was updated successfully, but these errors were encountered: