Skip to content

fix: parseYAMLBoolean for boolean flags + bump ghcup to 0.2.6.2#147

Open
clearnature wants to merge 2 commits into
haskell-actions:mainfrom
clearnature:main
Open

fix: parseYAMLBoolean for boolean flags + bump ghcup to 0.2.6.2#147
clearnature wants to merge 2 commits into
haskell-actions:mainfrom
clearnature:main

Conversation

@clearnature

Copy link
Copy Markdown

Fixes

1. Use parseYAMLBoolean for boolean flags (opts.ts)

The four boolean flags (enable-stack, stack-no-global, stack-setup-ghc, disable-matcher) used (inputs[key] || '') !== '' which treats YAML string 'false' as true.

This means enable-stack: false was interpreted as true, causing the action to try installing stack even when explicitly disabled → GHCup-00130 on ghcup version resolution failure.

Fix: use the existing parseYAMLBoolean function (already used for cabal-update).

2. Bump bundled ghcup from 0.1.50.2 to 0.2.6.2

ghcup 0.1.50.2 cannot download stack 3.9.3 (the current latest). ghcup 0.2.6.2 is the latest stable release and confirmed working with stack 3.9.3.

Verification

🤖 Generated with Qwen Code (69-shotted by Qwen-Coder)

Yan Li added 2 commits July 10, 2026 20:39
…c/disable-matcher

These four boolean flags used (inputs[key] || '') !== '' pattern
which treats YAML 'false' string as true. Replace with parseYAMLBoolean
which correctly handles YAML boolean semantics.

Bug: enable-stack: false was treated as true → ghcup tries to install
stack → GHCup-00130 on version resolution failure.

Fixes agda/agda#8619
v0.1.50.2 is too old and cannot install stack 3.9.3 (GHCup-00130).
v0.2.6.2 is the latest stable and confirmed working with stack 3.9.3.
@clearnature

Copy link
Copy Markdown
Author

@andreasabel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CI: haskell-actions/setup@v2 resolves to 3.9.3 which cannot be installed (GHCup-00130)

1 participant