Skip to content

Add "dune describe package-entries" - #7480

Merged
emillon merged 4 commits into
ocaml:mainfrom
moyodiallo:describe-entries
Jul 24, 2023
Merged

emillon merged 4 commits into
ocaml:mainfrom
moyodiallo:describe-entries

Conversation

@moyodiallo

@moyodiallo moyodiallo commented Apr 3, 2023 •

Copy link
Copy Markdown
Contributor

The need is about knowing if a private executable is going to be installed before building the project.

This PR is related to ocurrent/opam-dune-lint#46:
The command dune describe external-lib does not give the package name of private executable if it going to be installed, dune describe external-lib-deps is used by opam-dune-lint to extract the external dependencies.

@rgrinberg

Copy link
Copy Markdown
Member

The implementation looks fine but how about a clearer name like package-entries? entries alone doesn't make it clear what is being printed.

@moyodiallo

Copy link
Copy Markdown
Contributor Author

The implementation looks fine but how about a clearer name like package-entries? entries alone doesn't make it clear what is being printed.

I buy package-entries.

@moyodiallo
moyodiallo marked this pull request as ready for review April 4, 2023 09:22
@Alizter Alizter changed the title Add "dune describe entries" Add "dune describe package-entries" Apr 4, 2023
@rgrinberg
rgrinberg requested a review from emillon April 4, 2023 19:27
Comment thread src/dune_rules/dune_rules.ml Resolved
Comment thread src/dune_rules/install.ml Resolved
@emillon

emillon commented Apr 11, 2023

Copy link
Copy Markdown
Collaborator

The implementation is fine, but just to check, does opam-dune-lint work with this PR or is this in anticipation? I'd prefer if we have a clear idea of what's necessary in dune rather than add this "just in case". (and if that's all that is necessary, that's perfect)

@moyodiallo

moyodiallo commented Apr 11, 2023 •

Copy link
Copy Markdown
Contributor Author

The implementation is fine, but just to check, does opam-dune-lint work with this PR or is this in anticipation? I'd prefer if we have a clear idea of what's necessary in dune rather than add this "just in case". (and if that's all that is necessary, that's perfect)

I have already tested with opam-dune-lint. I'm working on finishing opam-dune-lint. I had an intention to notify it, after matching the all needs of opam-dune-lint.

@emillon

emillon commented Apr 11, 2023

Copy link
Copy Markdown
Collaborator

ok then I'd hold off onto merging these PRs until they've been tested with opam-dune-lint. let me know what that's the case.

@moyodiallo
moyodiallo force-pushed the describe-entries branch 2 times, most recently from 4e6ee5b to 2d7b54a Compare April 18, 2023 10:23
@moyodiallo

Copy link
Copy Markdown
Contributor Author

Ready for another review and to be merged.

@moyodiallo
moyodiallo requested a review from emillon April 18, 2023 14:06
@emillon

emillon commented Apr 20, 2023

Copy link
Copy Markdown
Collaborator

has this been tested with opam-dune-lint?

Comment thread bin/describe.ml Resolved
Comment thread src/dune_rules/install.ml Resolved
Comment thread src/dune_rules/install.ml Resolved
Comment thread src/dune_rules/install.ml Resolved
Comment thread src/dune_rules/install_rules.ml Resolved
@moyodiallo

Copy link
Copy Markdown
Contributor Author

@emillon Ready to move forward, the needs are already addressed. Same as #7478.

Comment thread bin/describe.ml Resolved
Comment thread src/dune_rules/install.ml Resolved
@moyodiallo
moyodiallo requested a review from emillon June 8, 2023 17:04
Comment thread src/dune_rules/install.ml Resolved
@Alizter

Alizter commented Jun 8, 2023

Copy link
Copy Markdown
Collaborator

FTR I am in the middle of a big refactoring of dune describe. It might make sense to wait for that. Notably you will have to introduce a new subcommand for package-entries.

@emillon

emillon commented Jun 9, 2023

Copy link
Copy Markdown
Collaborator

FTR I am in the middle of a big refactoring of dune describe. It might make sense to wait for that. Notably you will have to introduce a new subcommand for package-entries.

I wouldn't put an order between those. Both branches exist and a rebase will have to be done, it can be done in a direction or the other.

@Alizter

Alizter commented Jun 16, 2023 •

Copy link
Copy Markdown
Collaborator

It looks like my branch got merged first. Could you add a package_entries.ml file to bin/describe/ and follow the other describe commands? Let me know if you need any help.

@moyodiallo
moyodiallo requested a review from rgrinberg June 27, 2023 12:09
Comment thread bin/describe/package_entries.ml Resolved
Comment thread bin/describe/package_entries.ml Resolved

@Alizter Alizter left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, can you add a package_entries.mli?

Comment thread bin/describe/package_entries.mli Resolved

@emillon emillon left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good once the to_dyn is changed!

Comment thread src/install/entry.ml Resolved
@emillon

emillon commented Jul 7, 2023

Copy link
Copy Markdown
Collaborator

Can you promote the tests and add a changelog entry?

Comment thread bin/describe/package_entries.ml Resolved
@emillon

emillon commented Jul 12, 2023

Copy link
Copy Markdown
Collaborator

ping?

moyodiallo and others added 4 commits July 24, 2023 13:04
    The need is about knowing if a private executable is going to be
    installed before building the project.

Signed-off-by: Alpha DIALLO <[email protected]>
Co-authored-by: Etienne Millon <[email protected]>
Signed-off-by: Alpha Issiaga DIALLO <[email protected]>
Signed-off-by: Alpha DIALLO <[email protected]>
Signed-off-by: Alpha DIALLO <[email protected]>
@emillon
emillon force-pushed the describe-entries branch from 94914b4 to 15871bd Compare July 24, 2023 11:09
@emillon
emillon merged commit 8aeadd5 into ocaml:main Jul 24, 2023
@moyodiallo
moyodiallo deleted the describe-entries branch July 24, 2023 11:47
emillon added a commit to emillon/opam-repository that referenced this pull request Jul 28, 2023
CHANGES:

- Add `dune show rules` as alias of the `dune rules` command. (ocaml/dune#8000, @Alizter)

- Fix `%{deps}` to expand properly in `(cat ...)` when containing 2 or more
  items. (ocaml/dune#8196, @Alizter)

- Add `dune show installed-libraries` as an alias of the `dune
  installed-libraries` command. (ocaml/dune#8135, @Alizter)

- Fix the `severity` of error messages sent over RPC which was missing. (ocaml/dune#8193,
  @Alizter)

- Add `dune build --dump-gc-stats FILE` argument to dump garbage collection
  stats to a named file. (ocaml/dune#8072, @Alizter)

- Fix bug with ppx and Reason syntax due to missing dependency in sandboxed
  action (ocaml/dune#7932, fixes ocaml/dune#7930, @Alizter)

- Add `dune describe package-entries` to print all package entries (ocaml/dune#7480,
  @moyodiallo)

- Improve `dune describe external-lib-deps` by adding the internal dependencies
  for more information. (ocaml/dune#7478, @moyodiallo)

- Re-enable background file digests on Windows. The files are now open in a way
  that prevents race condition around deletion. (ocaml/dune#8262, fixes ocaml/dune#8268, @emillon)
emillon added a commit to emillon/opam-repository that referenced this pull request Jul 31, 2023
CHANGES:

- Add `dune show rules` as alias of the `dune rules` command. (ocaml/dune#8000, @Alizter)

- Fix `%{deps}` to expand properly in `(cat ...)` when containing 2 or more
  items. (ocaml/dune#8196, @Alizter)

- Add `dune show installed-libraries` as an alias of the `dune
  installed-libraries` command. (ocaml/dune#8135, @Alizter)

- Fix the `severity` of error messages sent over RPC which was missing. (ocaml/dune#8193,
  @Alizter)

- Add `dune build --dump-gc-stats FILE` argument to dump garbage collection
  stats to a named file. (ocaml/dune#8072, @Alizter)

- Fix bug with ppx and Reason syntax due to missing dependency in sandboxed
  action (ocaml/dune#7932, fixes ocaml/dune#7930, @Alizter)

- Add `dune describe package-entries` to print all package entries (ocaml/dune#7480,
  @moyodiallo)

- Improve `dune describe external-lib-deps` by adding the internal dependencies
  for more information. (ocaml/dune#7478, @moyodiallo)

- Re-enable background file digests on Windows. The files are now open in a way
  that prevents race condition around deletion. (ocaml/dune#8262, fixes ocaml/dune#8268, @emillon)
pmwhite pushed a commit to pmwhite/dune that referenced this pull request Aug 10, 2023
* Add "dune describe entries"

    The need is about knowing if a private executable is going to be
    installed before building the project.

Signed-off-by: Alpha DIALLO <[email protected]>
Co-authored-by: Etienne Millon <[email protected]>
nberth pushed a commit to nberth/opam-repository that referenced this pull request Jun 18, 2024
CHANGES:

- Add `dune show rules` as alias of the `dune rules` command. (ocaml/dune#8000, @Alizter)

- Fix `%{deps}` to expand properly in `(cat ...)` when containing 2 or more
  items. (ocaml/dune#8196, @Alizter)

- Add `dune show installed-libraries` as an alias of the `dune
  installed-libraries` command. (ocaml/dune#8135, @Alizter)

- Fix the `severity` of error messages sent over RPC which was missing. (ocaml/dune#8193,
  @Alizter)

- Add `dune build --dump-gc-stats FILE` argument to dump garbage collection
  stats to a named file. (ocaml/dune#8072, @Alizter)

- Fix bug with ppx and Reason syntax due to missing dependency in sandboxed
  action (ocaml/dune#7932, fixes ocaml/dune#7930, @Alizter)

- Add `dune describe package-entries` to print all package entries (ocaml/dune#7480,
  @moyodiallo)

- Improve `dune describe external-lib-deps` by adding the internal dependencies
  for more information. (ocaml/dune#7478, @moyodiallo)

- Re-enable background file digests on Windows. The files are now open in a way
  that prevents race condition around deletion. (ocaml/dune#8262, fixes ocaml/dune#8268, @emillon)
@Alizter Alizter added this to the 3.10.0 milestone Jun 10, 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.

4 participants