Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[coq_lib] Enforce that boot libraries depend on no theories #5867

Merged
merged 2 commits into from
Jun 12, 2022

Conversation

ejgallego
Copy link
Collaborator

Signed-off-by: Emilio Jesus Gallego Arias e+git@x80.org

@ejgallego ejgallego added the coq label Jun 11, 2022
@ejgallego ejgallego force-pushed the coq_rules+boot_check branch 2 times, most recently from 763b635 to 373bf6b Compare June 11, 2022 12:41
@ejgallego
Copy link
Collaborator Author

I was thinking of enforcing the invariant in the stanza datatype with a Boot_or_theories.t type, but IMHO it seems overkill.

@rgrinberg
Copy link
Member

I was thinking of enforcing the invariant in the stanza datatype with a Boot_or_theories.t type, but IMHO it seems overkill.

Indeed it seems like wasted effort if we just make the stdlib a first class library.

@ejgallego ejgallego force-pushed the coq_rules+boot_check branch from 373bf6b to 5e243ec Compare June 11, 2022 13:25
@ejgallego ejgallego marked this pull request as ready for review June 11, 2022 13:26
@ejgallego ejgallego force-pushed the coq_rules+boot_check branch from 5e243ec to ddd8f66 Compare June 11, 2022 13:30
@rgrinberg rgrinberg added this to the 3.3.0 milestone Jun 11, 2022
Signed-off-by: Emilio Jesus Gallego Arias <e+git@x80.org>
@ejgallego ejgallego force-pushed the coq_rules+boot_check branch from ddd8f66 to 29fc1dd Compare June 11, 2022 14:04
@ejgallego ejgallego enabled auto-merge (rebase) June 12, 2022 12:12
@ejgallego ejgallego merged commit eb4788d into ocaml:main Jun 12, 2022
@ejgallego ejgallego deleted the coq_rules+boot_check branch June 12, 2022 12:13
@rgrinberg
Copy link
Member

@ejgallego could you push a CHANGES entry for this?

@ejgallego
Copy link
Collaborator Author

Yes, I didn't do a CHANGES as (boot) is really "internal" so far, but I will signal it.

ejgallego added a commit to ejgallego/dune that referenced this pull request Jun 12, 2022
Signed-off-by: Emilio Jesus Gallego Arias <e+git@x80.org>
@ejgallego
Copy link
Collaborator Author

Note that indeed (boot) is (purposely) undocumented.

ejgallego added a commit that referenced this pull request Jun 12, 2022
Signed-off-by: Emilio Jesus Gallego Arias <e+git@x80.org>
kit-ty-kate pushed a commit to ocaml/opam-repository that referenced this pull request Jun 17, 2022
…ne-site, dune-rpc, dune-rpc-lwt, dune-private-libs, dune-glob, dune-configurator, dune-build-info, dune-action-plugin and chrome-trace (3.3.0)

CHANGES:

- Sandbox preprocessing, lint, and dialect rules by default. All these rules
  now require precise dependency specifications (ocaml/dune#5807, @rgrinberg)

- Allow list expansion in the `pps` specification for preprocessing (ocaml/dune#5820,
  @Firobe)

- Add warnings 67-69 to dune's default set of warnings. These are warnings of
  the form "unused X.." (ocaml/dune#5844, @rgrinbreg)

- Introduce project "composition" for coq theories. Coq theories in separate
  projects can now refer to each other when in the same workspace (ocaml/dune#5784,
  @Alitzer, @rgrinberg)

- Fix hint message for ``data_only_dirs`` that wrongly mentions the unknown
  constructor ``data_only`` (ocaml/dune#5803, @lambdaxdotx)

- Fix creating sandbox directory trees by getting rid of buggy memoization
  (@5794, @rgrinberg, @snowleopard)

- Handle directory dependencies in sandboxed rules. Previously, the parents of
  these directory dependencies weren't created. (ocaml/dune#5754, @rgrinberg)

- Set the exit code to 130 when dune is terminated with a signal (ocaml/dune#5769, fixes
  ocaml/dune#5757)

- Support new locations of unix, str, dynlink in OCaml >= 5.0 (ocaml/dune#5582, @dra27)

- The ``coq.theory`` stanza now produces rules for running ``coqdoc``. Given a
  theory named ``mytheory``, the directory targets ``mytheory.html/`` and
  ``mytheory.tex/`` or additionally the aliases `@doc` and `@doc-latex` will
  build the HTML and LaTeX documentation repsectively. (ocaml/dune#5695, fixes ocaml/dune#3760,
  @Alizter)

- Coq theories marked as `(boot)` cannot depend on other theories
  (ocaml/dune#5867, @ejgallego)

- Ignore `bigarray` in `(libraries)` with OCaml >= 5.0. (ocaml/dune#5526, fixes ocaml/dune#5494,
  @moyodiallo)

- Start with :standard when building the ctypes generated foreign stubs so that
  we include important compiler flags, such as -fPIC (ocaml/dune#5816, fixes ocaml/dune#5809).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants