Skip to content

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

Closed
clearnature wants to merge 4 commits into
haskell-actions:mainfrom
clearnature:main
Closed

fix: parseYAMLBoolean for boolean flags + bump ghcup to 0.2.6.2#147
clearnature wants to merge 4 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

@Kleidukos

Copy link
Copy Markdown
Contributor

hi @andreasabel, I'm in need of using the latest GHCup. Is there anything I can do to help you. :)

@andreasabel

Copy link
Copy Markdown
Member

Thanks @clearnature , back from vacation, I released this as v2.12.0.

@andreasabel

Copy link
Copy Markdown
Member

@Kleidukos I invited you as maintainer, so you can help yourself next time. I am happy to get help on this repo, since I am not really proficient in TypeScript.

@andreasabel andreasabel added this to the 2.12.0 milestone Aug 3, 2026
@Kleidukos

Copy link
Copy Markdown
Contributor

@andreasabel got it, thanks for the invitation. :)

@andreasabel

Copy link
Copy Markdown
Member

This PR has been merged by cherry-picking.

@andreasabel andreasabel closed this Aug 3, 2026
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)

3 participants