{"id":16717359,"url":"https://github.com/nathanreb/duniverse-transitive-test-deps-bug","last_synced_at":"2026-01-02T07:49:18.786Z","repository":{"id":82831238,"uuid":"271243464","full_name":"NathanReb/duniverse-transitive-test-deps-bug","owner":"NathanReb","description":"Reproduction example for duniverse pin bug","archived":false,"fork":false,"pushed_at":"2020-06-10T10:10:35.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-22T00:36:51.684Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NathanReb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-06-10T10:08:45.000Z","updated_at":"2020-06-10T10:10:38.000Z","dependencies_parsed_at":"2023-03-04T19:45:25.506Z","dependency_job_id":null,"html_url":"https://github.com/NathanReb/duniverse-transitive-test-deps-bug","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NathanReb%2Fduniverse-transitive-test-deps-bug","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NathanReb%2Fduniverse-transitive-test-deps-bug/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NathanReb%2Fduniverse-transitive-test-deps-bug/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NathanReb%2Fduniverse-transitive-test-deps-bug/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NathanReb","download_url":"https://codeload.github.com/NathanReb/duniverse-transitive-test-deps-bug/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243713402,"owners_count":20335566,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-12T21:31:38.364Z","updated_at":"2026-01-02T07:49:18.758Z","avatar_url":"https://github.com/NathanReb.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Duniverse transitive test deps bug\n\nHow to reproduce:\n\n1. Clone this repo\n2. Run the following:\n```\nduniverse pin mdx git+https://github.com/realworldocaml/mdx.git#master\nduniverse init\n```\n\nLooking at the new dune-get, you'll see that it now contains test dependencies of mdx\nsuch as alcotest:\n\n```\n-    (((dir astring.0.8.3+dune)\n+    (((dir alcotest.1.1.0) (upstream https://github.com/mirage/alcotest.git)\n+      (ref ((t 1.1.0) (commit 4974a9b652cbec92b9aaa71354be9a6c85d14f52)))\n+      (provided_packages (((name alcotest) (version (1.1.0))))))\n+     ((dir astring.0.8.3+dune)\n       (upstream git://github.com/dune-universe/astring.git)\n```\n\neven though the opam file still states that it's a test dependency of mdx and not of this package:\n```\n$ cat duniverse/.pins/mdx.opam\nopam-version: \"2.0\"\nmaintainer:   \"Thomas Gazagnaire \u003cthomas@gazagnaire.org\u003e\"\nbug-reports:  \"https://github.com/realworldocaml/mdx/issues\"\n...\ndepends: [\n  \"ocaml\" {\u003e= \"4.02.3\"}\n  \"dune\" {\u003e= \"2.0\"}\n  \"ocamlfind\"\n  \"fmt\"\n  \"cppo\" {build}\n  \"astring\"\n  \"logs\"\n  \"cmdliner\"\n  \"re\" {\u003e= \"1.7.2\"}\n  \"result\"\n  \"ocaml-migrate-parsetree\" {\u003e= \"1.0.6\"}\n  \"ocaml-version\" {\u003e= \"2.3.0\"}\n  \"odoc\"\n  \"lwt\" {with-test}\n  \"alcotest\" {with-test}\n]\n...\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnathanreb%2Fduniverse-transitive-test-deps-bug","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnathanreb%2Fduniverse-transitive-test-deps-bug","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnathanreb%2Fduniverse-transitive-test-deps-bug/lists"}