Skip to content

Commit 6556aee

Browse files
test: Add repro case for #11113 (#11120)
Building the FStar repo fails because the branch and tag are named the same, as reported in #11113. This simplifies the setup into a test-case. Signed-off-by: Marek Kubica <[email protected]>
1 parent c5b60e6 commit 6556aee

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

test/blackbox-tests/test-cases/pkg/pin-stanza/git-source.t

+15-1
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,11 @@ Package sources can be set to git:
55
$ mkrepo
66
$ add_mock_repo_if_needed
77

8+
We create a repo with a fixed name for the default branch.
9+
810
$ mkdir _repo
911
$ cd _repo
10-
$ git init --quiet
12+
$ git init --initial-branch=duplicated --quiet
1113
$ cat >dune-project <<EOF
1214
> (lang dune 3.13)
1315
> (package (name foo))
@@ -29,3 +31,15 @@ Package sources can be set to git:
2931
$ dune pkg lock
3032
Solution for dune.lock:
3133
- foo.dev
34+
35+
We create a tag that clashes with the name of the branch (hence we needed to
36+
fix the name of the branch eariler):
37+
38+
$ git -C _repo tag duplicated
39+
40+
This should work but it fails at the moment:
41+
42+
$ dune pkg lock 2>&1 | head -n 3
43+
Internal error, please report upstream including the contents of _build/log.
44+
Description:
45+
("Map.of_list_exn", { key = "duplicated" })

0 commit comments

Comments
 (0)