Created
March 18, 2026 14:05
-
-
Save toots/16d285ca691479c7539aeb2dee8ce030 to your computer and use it in GitHub Desktop.
Dune dependency cycle bug: enabled_if with %{read:generated_file} triggers cycle when dune-project has a (package) stanza
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| let () = print_string "true" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (executable | |
| (name conf)) | |
| (rule | |
| (targets enabled) | |
| (action | |
| (with-stdout-to enabled | |
| (run %{exe:conf.exe})))) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (lang dune 3.21) | |
| (package | |
| (name repro) | |
| (synopsis "Minimal cycle repro")) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| let available = true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment