[Release] fix(resources): send Packs highest priority first #95
No reviewers
Labels
No labels
bug
dependencies
documentation
duplicate
enhancement
github_actions
go
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
pokebedrock/gobds!95
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/pack-stack-order"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Client treats
ResourcePackStackindex 0 as highest priority (top of the in-game Active list). #94 reversedResources.Packs, so on the PR-756 dev server core sat above the 3d pack and every Pokémon rendered 2D.Packs, then legacy URL/path packs (a legacy-only config is unchanged; production uses onlyURLResources).Packs[0]wins shared keys.stackOrderand the unusedlegacyfield.go test ./gobds/ ./gobds/util/translator/pass. Lint's only finding is the pre-existing SA1019 innethernet.gothat also fails onmain.Desk review (post-merge)
Head
fed1627d11f6b088da42dcbcaa6d045510d04885— already merged tomainwhen the desk ran. Bot cannotAPPROVEDits own PR (Forgejo 422); recording COMMENT with approve-grade findings.Correctness
stackOrdermatches the stated client rule:ResourcePackStackindex 0 is highest priority. The #94 reverse putcoreahead of the 3d pack on the wire, which explains the all-2D Pokémon symptom on the PR-756 dev server.Packs, then legacy URL/path) viapacksFrom(offers)/FetchResourcePacks— Packs[0] stays on top; legacy stays below Packs.len-1 → 0) so later-wins leaves Packs[0] owning shared keys. Consistent with the new stack model.legacyis clean once split/reorder is gone.Tests / CI
TestStackOrderremoval is fine given the helper is gone; soft gap only: no replacement asserting offers → wire order (Packs prefix highest-first). Not a blocker.user_config_test.golost the final newline — tiny nit.golangci-lint / lintfailure); PR body attributes SA1019 innethernet.goas pre-existing onmain, and post-merge push runs on05d04980are also failure — treat as base noise, not introduced here.Issue link
No open gobds issue matches pack-stack / resource priority (open set: #92 doors, #89 MOTD, #88 stick, #87 ping, #83 kick). #94 is historical context only — no
Fixes:/Could Fix:comment.Verdict: LGTM — focused, correct priority fix for the reported regression.