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

Quieter lock logs #173

Merged
merged 1 commit into from
Jun 4, 2021
Merged

Quieter lock logs #173

merged 1 commit into from
Jun 4, 2021

Conversation

NathanReb
Copy link
Contributor

Fixes #171

The full list is now only printed when the verbosity level is strictly higher than 0 (the default). The number of root packages is printed instead.

This also removes a couple places where the full list was printed again.

@craigfe
Copy link
Contributor

craigfe commented May 31, 2021

; opam monorepo lock --recurse-opam --ocaml-version 4.10.2
==> Using 220 locally scanned packages as the roots.
opam-monorepo: [WARNING] The dune-universe opam-repository isn't set in the current switch. It contains dune ports for some opam packages. Note that opam monorepo lock will fail if not all of the project dependencies use dune as their build system. Adding this opam-repository to your current switch will help with that. If you wish to do so, run the following command:
opam repository add dune-universe git+https://github.com/dune-universe/opam-overlays.git
==> Found 154 opam dependencies for the root packages.
==> Querying opam database for their metadata and Dune compatibility.
==> Calculating exact pins for each of them.
==> Wrote lockfile with 101 entries to /root/t/tezos/tezos.opam.locked. You can now run opam monorepo pull to fetch their sources.

Much cleaner; thanks :-)

This was causing a lot of noise on big monorepos such as Tezos for
instance.
The full selection information is still available when running
opam-monorepo in a more verbose mode.

Signed-off-by: Nathan Rebours <nathan.p.rebours@gmail.com>
@NathanReb NathanReb merged commit af24d1b into master Jun 4, 2021
@NathanReb NathanReb deleted the quieter-lock-logs branch June 7, 2021 15:03
NathanReb added a commit to NathanReb/opam-repository that referenced this pull request Jun 29, 2021
CHANGES:

### Added

- Add `--ocaml-version` argument to `lock`: it allows to determine the ocaml version in the
  lockfile that's being generated (tarides/opam-monorepo#161, @pitag-ha)

### Changed

- Exclude packages depending on `jbuilder` from the lock step. Since dune 2.0, `jbuild` files are
  not supported. A new `--allow-jbuilder` option have been added to enable the old behavior.
- Recognize packages with an optional dependency on dune as building with dune. This allows
  opam-monorepo to rightfully recognize `opam-file-format` latest versions as building with
  dune. (tarides/opam-monorepo#176, @NathanReb)
- Only print the full list of selected root packages once and only in verbose mode, simply printing
  the number in the default logs. (tarides/opam-monorepo#173, @NathanReb)
- Improve the solving process so it only accepts base-compilers unless one explicitly requires
  a compiler variant, either directly or using `ocaml-option-*` packages. (tarides/opam-monorepo#178, @NathanReb)

### Deprecated

### Fixed

- Fix the default branch mechanism when the opam remote starts with `git+https` (tarides/opam-monorepo#166, @TheLortex)
- Fix a log that was still refering to the old tool name `duniverse` (tarides/opam-monorepo#158, @rizo)
- Improve how the default branch for a git repository is queried, fixing a bug
  where opam-monorepo wouldn't work outside of of git repo and a bug where it wouldn't
  work on non-english systems. (tarides/opam-monorepo#157, fixes tarides/opam-monorepo#114, @TheLortex)

### Removed

### Security
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.

Quieter lock output for large monorepos
2 participants