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

Improve detection of packages building with dune #176

Merged
merged 1 commit into from
Jun 4, 2021

Conversation

NathanReb
Copy link
Contributor

Some packages such as opam-file-format are compatible with dune but don't use it as their primary build mechanism. They mark dune as an optional dependency which made opam-monorepo think they weren't building with dune when they actually could be built with it and therefore could be vendored in a duniverse.

This PR fixes that.

Signed-off-by: Nathan Rebours <nathan.p.rebours@gmail.com>
@NathanReb NathanReb merged commit 5108cec into master Jun 4, 2021
@NathanReb NathanReb deleted the improve-build-with-dune 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.

1 participant