Skip to content

Package doesn't match if case differs. #19

@santiagobiali

Description

@santiagobiali

Thank you for this awesome package, been using for some months.
Today I noticed that rewinged doesn't return a package when the case doesn't match in --id.

# Local winget repo, all lower case: doesn't match
PS> winget show --id mozilla.thunderbird -s wingetlocal --verbose
	An unexpected error occurred while executing the command:
	0x8a150044 : The rest API endpoint is not found

docker logs rewinged -n 4
	{"level":"debug","time":"2025-12-10T17:00:01Z","message":"/packageManifests: Someone tried to GET package 'mozilla.thunderbird' with query params: map[]"}
	{"level":"debug","time":"2025-12-10T17:00:01Z","message":"client requested API version 1.10.0"}
	{"level":"debug","time":"2025-12-10T17:00:01Z","message":"the package was not found"}
	{"level":"info","method":"GET","path":"/api/packageManifests/mozilla.thunderbird","status_code":404,"response_size":72,"elapsed_ms":0.088294,"client_ip":"172.23.0.21","time":"2025-12-10T17:00:01Z","message":"incoming request"}
	
# Local winget repo, exact case, match
PS> winget show --id Mozilla.Thunderbird -s wingetlocal --verbose
	Found Mozilla Thunderbird (en-US) [Mozilla.Thunderbird]
	Version: 146.0
	Publisher: Mozilla
	[...]

docker logs rewinged -n 4
	{"level":"debug","time":"2025-12-10T17:01:17Z","message":"/packageManifests: Someone tried to GET package 'Mozilla.Thunderbird' with query params: map[]"}
	{"level":"debug","time":"2025-12-10T17:01:17Z","message":"client requested API version 1.10.0"}
	{"level":"debug","time":"2025-12-10T17:01:17Z","message":"the package was found"}
	{"level":"info","method":"GET","path":"/api/packageManifests/Mozilla.Thunderbird","status_code":200,"response_size":5780,"elapsed_ms":0.169369,"client_ip":"172.23.0.21","time":"2025-12-10T17:01:17Z","message":"incoming request"}


https://winget.local/api/packages
{
    "Data": [ {
            "PackageIdentifier": "Mozilla.Thunderbird.pt-BR"
        }, {
            "PackageIdentifier": "Mozilla.Thunderbird"
        }
    ],
    "ContinuationToken": ""
}
https://winget.local/api/information
{"Data":{"SourceIdentifier":"rewinged","ServerSupportedVersions":["1.1.0","1.4.0","1.5.0","1.6.0","1.7.0","1.9.0","1.10.0"]}}


# Official winget repo, all lower case. Matches as expected:
winget show --id mozilla.thunderbird -s winget --verbose
	Found Mozilla Thunderbird (en-US) [Mozilla.Thunderbird]
	Version: 146.0
	Publisher: Mozilla
	[...]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions