-
Notifications
You must be signed in to change notification settings - Fork 414
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: reproduce
@ocaml-index
failing with package management
- Loading branch information
Showing
8 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
(dirs (:standard \ external_sources)) | ||
(library | ||
(name foo) | ||
(libraries mypkg.lib)) |
1 change: 1 addition & 0 deletions
1
test/blackbox-tests/test-cases/ocaml-index/gh10985/dune-project
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
(lang dune 3.17) |
1 change: 1 addition & 0 deletions
1
test/blackbox-tests/test-cases/ocaml-index/gh10985/dune.lock/lock.dune
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
(lang package 0.1) |
3 changes: 3 additions & 0 deletions
3
test/blackbox-tests/test-cases/ocaml-index/gh10985/external_sources/dune
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
(library | ||
(public_name mypkg.lib) | ||
(name test_lib)) |
2 changes: 2 additions & 0 deletions
2
test/blackbox-tests/test-cases/ocaml-index/gh10985/external_sources/dune-project
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
(lang dune 3.11) | ||
(package (name mypkg)) |
1 change: 1 addition & 0 deletions
1
test/blackbox-tests/test-cases/ocaml-index/gh10985/external_sources/test_lib.ml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
let x = () |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
let () = Test_lib.x |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
This test attempts to build the ocaml index while depending on a library | ||
installed through a lock file. | ||
|
||
This is based off of the pkg/libraries.t test, just taking advantage of | ||
being in its own directory. | ||
|
||
This can't be just written to disk, I /think/ so it cat get an absolute path | ||
in the source stanza. | ||
|
||
$ cat >dune.lock/mypkg.pkg <<EOF | ||
> (version 0.0.1) | ||
> (source (copy $PWD/external_sources)) | ||
> (build (run dune build --release --promote-install-file=true . @install)) | ||
> EOF | ||
|
||
$ dune build @ocaml-index | ||
Error: This rule defines a directory target "default/.pkg/mypkg/target" that | ||
matches the requested path | ||
"default/.pkg/mypkg/target/lib/mypkg/lib/cctx.ocaml-index" but the rule's | ||
action didn't produce it | ||
-> required by _build/default/.foo.objs/cctx.ocaml-index | ||
-> required by alias ocaml-index | ||
[1] |