Skip to content

Instantly share code, notes, and snippets.

@toots
Created March 18, 2026 14:05
Show Gist options
  • Select an option

  • Save toots/16d285ca691479c7539aeb2dee8ce030 to your computer and use it in GitHub Desktop.

Select an option

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
let () = print_string "true"
(executable
(name conf))
(rule
(targets enabled)
(action
(with-stdout-to enabled
(run %{exe:conf.exe}))))
(lang dune 3.21)
(package
(name repro)
(synopsis "Minimal cycle repro"))
let available = true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment