1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-30 14:09:42 -05:00
forgejo/routers/api/packages/nuget
Thomas Desveaux f8774e3611
Fix NuGet Package API for $filter with Id equality (#31188) (#31242)
Backport #31188

Fixes issue when running `choco info pkgname` where `pkgname` is also a
substring of another package Id.

Relates to #31168

---

This might fix the issue linked, but I'd like to test it with more choco
commands before closing the issue in case I find other problems if
that's ok.
I'm pretty inexperienced with Go, so feel free to nitpick things.

Not sure I handled
[this](70f87e11b5/routers/api/packages/nuget/nuget.go (L135-L137))
in the best way, so looking for feedback on if I should fix the
underlying issue (`nil` might be a better default for `Value`?).

Co-authored-by: KN4CK3R <admin@oldschoolhack.me>
(cherry picked from commit ca414a7ccf5e26272662e360c44ac50221a0f2d4)
2024-06-09 11:49:18 +02:00
..
api_v2.go Fix handling of plenty Nuget package versions (#26075) 2023-07-26 19:43:21 +00:00
api_v3.go Fix NuGet search endpoints (#25613) 2023-08-14 02:50:55 +00:00
auth.go More refactoring of db.DefaultContext (#27083) 2023-09-15 06:13:19 +00:00
links.go Fix handling of plenty Nuget package versions (#26075) 2023-07-26 19:43:21 +00:00
nuget.go Fix NuGet Package API for $filter with Id equality (#31188) (#31242) 2024-06-09 11:49:18 +02:00