Skip to content

Backport #12054: Fix runRuleDynDepsCmd binary format mismatch#12099

Merged
mergify[bot] merged 1 commit into
3.18from
mergify/bp/3.18/pr-12054
Jul 7, 2026
Merged

Backport #12054: Fix runRuleDynDepsCmd binary format mismatch#12099
mergify[bot] merged 1 commit into
3.18from
mergify/bp/3.18/pr-12054

Conversation

@mergify

@mergify mergify Bot commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

This change fixes the binary format mismatch between the build rules producer and the consumer, resulting in
Missing ByteString argument in 'ruleExecCmd' error during builds. When a hook creates a dynamic hook with a command for discovering dynamic dependencies, the hook creates a result of type ([Dependency], LBS.ByteString), but the consumer decodes it as Maybe ([Dependency], LBS.ByteString).

Added a test case to SetupHooksNonHs that covers this scenario.

Fixes #12053


Template Α: This PR modifies behaviour or interface


This is an automatic backport of pull request #12054 done by [Mergify](https://mergify.com).

This change fixes the binary format mismatch between the build rules
producer and the consumer, resulting in
`Missing ByteString argument in 'ruleExecCmd'` error during builds. When
a hook creates a dynamic hook with a command for discovering dynamic
dependencies, the hook creates a result of type
([Dependency], LBS.ByteString), but the consumer decodes it as
Maybe ([Dependency], LBS.ByteString).

Added a test case to SetupHooksNonHs that covers this scenario.
Added changelog entry.

Fixes #12053

(cherry picked from commit ae71634)
@mergify mergify Bot added the backport label Jul 6, 2026
@Mikolaj Mikolaj added the merge me Tell Mergify Bot to merge label Jul 6, 2026
@mergify mergify Bot added the queued label Jul 7, 2026
@mergify

mergify Bot commented Jul 7, 2026

Copy link
Copy Markdown
Contributor Author

Merge Queue Status

This pull request spent 1 hour 59 minutes 36 seconds in the queue, including 1 hour 48 minutes 51 seconds running CI.

Required conditions to merge
  • #review-threads-unresolved = 0 [🛡 GitHub branch protection]
  • github-review-approved [🛡 GitHub branch protection]
  • any of [🛡 GitHub branch protection]:
    • check-success = Doctest Cabal
    • check-neutral = Doctest Cabal
    • check-skipped = Doctest Cabal
  • any of [🛡 GitHub branch protection]:
    • check-success = Meta checks
    • check-neutral = Meta checks
    • check-skipped = Meta checks
  • any of [🛡 GitHub branch protection]:
    • check-success = Validate post job
    • check-neutral = Validate post job
    • check-skipped = Validate post job
  • any of [🛡 GitHub branch protection]:
    • check-success = docs/readthedocs.org:cabal
    • check-neutral = docs/readthedocs.org:cabal
    • check-skipped = docs/readthedocs.org:cabal
  • any of [🛡 GitHub branch protection]:
    • check-success = Bootstrap post job
    • check-neutral = Bootstrap post job
    • check-skipped = Bootstrap post job
  • any of [🛡 GitHub branch protection]:
    • check-success = whitespace
    • check-neutral = whitespace
    • check-skipped = whitespace
  • any of [🛡 GitHub branch protection]:
    • check-success = Check sdist post job
    • check-neutral = Check sdist post job
    • check-skipped = Check sdist post job
  • any of [🛡 GitHub branch protection]:
    • check-success = Changelogs
    • check-neutral = Changelogs
    • check-skipped = Changelogs

mergify Bot added a commit that referenced this pull request Jul 7, 2026
@mergify mergify Bot merged commit f929f3b into 3.18 Jul 7, 2026
60 checks passed
@mergify mergify Bot deleted the mergify/bp/3.18/pr-12054 branch July 7, 2026 02:41
@mergify mergify Bot removed the queued label Jul 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport merge me Tell Mergify Bot to merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants