mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-03-29 21:47:01 +02:00
<!-- Hi, thanks for contributing! Please make sure you read our CONTRIBUTING guide. Also, add tests and the respective documentation changes as well. --> <!-- If applied, this commit will... --> Fix the order in which brew artifacts are sorted. <!-- Why is this change being made? --> * The order occasionally switches, which results in a larger diff: https://github.com/confluentinc/homebrew-tap/pull/41 * The artifacts are already grouped by OS before `lessFnFor()` is called, so `list[i].OS > list[j].OS` always evaluates to `false` and the order remains unchanged. This PR removes that statement. * It looks like a `map` is used earlier, while filtering the artifacts, which might explain why the order occasionally switches. * Update the remaining statement in `lessFnFor()` to actually use `<` as the function suggests. <!-- # Provide links to any relevant tickets, URLs or other resources -->