https://github.com/nathanreb/duniverse-transitive-test-deps-bug
Reproduction example for duniverse pin bug
https://github.com/nathanreb/duniverse-transitive-test-deps-bug
Last synced: 6 months ago
JSON representation
Reproduction example for duniverse pin bug
- Host: GitHub
- URL: https://github.com/nathanreb/duniverse-transitive-test-deps-bug
- Owner: NathanReb
- Created: 2020-06-10T10:08:45.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-06-10T10:10:35.000Z (about 6 years ago)
- Last Synced: 2025-01-22T00:36:51.684Z (over 1 year ago)
- Size: 2.93 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Duniverse transitive test deps bug
How to reproduce:
1. Clone this repo
2. Run the following:
```
duniverse pin mdx git+https://github.com/realworldocaml/mdx.git#master
duniverse init
```
Looking at the new dune-get, you'll see that it now contains test dependencies of mdx
such as alcotest:
```
- (((dir astring.0.8.3+dune)
+ (((dir alcotest.1.1.0) (upstream https://github.com/mirage/alcotest.git)
+ (ref ((t 1.1.0) (commit 4974a9b652cbec92b9aaa71354be9a6c85d14f52)))
+ (provided_packages (((name alcotest) (version (1.1.0))))))
+ ((dir astring.0.8.3+dune)
(upstream git://github.com/dune-universe/astring.git)
```
even though the opam file still states that it's a test dependency of mdx and not of this package:
```
$ cat duniverse/.pins/mdx.opam
opam-version: "2.0"
maintainer: "Thomas Gazagnaire "
bug-reports: "https://github.com/realworldocaml/mdx/issues"
...
depends: [
"ocaml" {>= "4.02.3"}
"dune" {>= "2.0"}
"ocamlfind"
"fmt"
"cppo" {build}
"astring"
"logs"
"cmdliner"
"re" {>= "1.7.2"}
"result"
"ocaml-migrate-parsetree" {>= "1.0.6"}
"ocaml-version" {>= "2.3.0"}
"odoc"
"lwt" {with-test}
"alcotest" {with-test}
]
...
```