fix(opam): add pin-depends for ppx_forbid and dev-repo field#119
Merged
mathiasbourgoin merged 1 commit intomainfrom Feb 19, 2026
Merged
fix(opam): add pin-depends for ppx_forbid and dev-repo field#119mathiasbourgoin merged 1 commit intomainfrom
mathiasbourgoin merged 1 commit intomainfrom
Conversation
Add pin-depends field to miaou-core.opam to automatically pin ppx_forbid from GitHub when installing the package. This fixes dependency resolution for ppx_forbid which is not yet available in the opam repository. Also add dev-repo field to all opam packages for better opam metadata. Co-Authored-By: Claude <noreply@anthropic.com>
mathiasbourgoin
approved these changes
Feb 19, 2026
Collaborator
mathiasbourgoin
left a comment
There was a problem hiding this comment.
LGTM, thanks for the nice contribution!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
pin-dependsfield tomiaou-core.opamto automatically pinppx_forbidfrom GitHubdev-repofield to all opam packages for better package metadataBackground
The
ppx_forbidpackage was added as a build dependency in #118 but it's not available in the opam repository yet. This causesopam install . --deps-only --with-testto fail with:Changes
miaou-core.opam: Addedpin-dependsfield to automatically pinppx_forbidfromhttps://github.com/atacama-dev/ppx_forbid.git*.opamfiles: Addeddev-repofield pointing to the project repositoryTesting
The
pin-dependsfield works when:opam install miaouopam pin add miaou .For local development with
opam install ., users still need to manually pin:opam pin add ppx_forbid https://github.com/atacama-dev/ppx_forbid.git -y opam install . --deps-only --with-test -yThis is a limitation of opam's
pin-dependsfield with local directory installs.Note
The
dev-repofield additions are standard opam package metadata that help users find the source repository.