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

Warn when using source for different version #352

Merged
merged 2 commits into from
Nov 18, 2022

Conversation

reynir
Copy link
Contributor

@reynir reynir commented Nov 18, 2022

It is exceedingly annoying to work with pinned packages that are effectively not pinned due to this behavior. Because it was logged at INFO level this log message would not appear in the output without raising the log level.

Related to #145 and mirage/mirage#1375

It is exceedingly annoying to work with pinned packages that are
effectively not pinned due to this behavior. Because it was logged at
INFO level this log message would not appear in the output without
raising the log level.
@Leonidas-from-XIV
Copy link
Member

Looks good, thanks! Eventually I would hope that we can fix this issue by getting dune to assist with this. Meanwhile, can you add an entry to the changelog?

@samoht samoht merged commit cb0233c into tarides:main Nov 18, 2022
@reynir reynir deleted the warn-same-repo-different-urls branch November 20, 2022 21:11
Leonidas-from-XIV added a commit to Leonidas-from-XIV/opam-repository that referenced this pull request Nov 21, 2022
CHANGES:

### Added

- Add support for specifying remote URLs in `x-opam-monorepo-repositories`
  (tarides/opam-monorepo#284, tarides/opam-monorepo#317, @Leonidas-from-XIV)

### Fixed

- Enable locking of packages with depexts even with uninitialized system
  package manager state (tarides/opam-monorepo#322, @Leonidas-from-XIV)
- Fix a bug where `pull` would crash if the lock file contained no package to
  vendor (tarides/opam-monorepo#321, @NathanReb)
- Display a better error message when the depext command fails when getting the
  status of the packages (tarides/opam-monorepo#258, tarides/opam-monorepo#323, @RyanGibb, @Julow)
- Take `archive-mirrors` from the global opam configuration into account to
  allow more local caches (tarides/opam-monorepo#337, @hannesm)
- Log at WARN level when opam-monorepo chooses a source for a package that
  doesn't match the package's version (tarides/opam-monorepo#352, @reynir)
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.

None yet

3 participants