Skip to content

Commit

Permalink
test: add for opam switch name with absolute path (#10730)
Browse files Browse the repository at this point in the history
* test: add a test for #10721

Signed-off-by: Etienne Marais <dev@maiste.fr>

* Update test/blackbox-tests/test-cases/github10721.t

Signed-off-by: Etienne Millon <etienne.millon@gmail.com>

---------

Signed-off-by: Etienne Marais <dev@maiste.fr>
Signed-off-by: Etienne Millon <etienne.millon@gmail.com>
Co-authored-by: Etienne Millon <etienne.millon@gmail.com>
  • Loading branch information
maiste and emillon authored Jul 16, 2024
1 parent 9c5969c commit 55680a1
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions test/blackbox-tests/test-cases/github10721.t
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
$ cat > dune-project << EOF
> (lang dune 3.0)
> EOF

$ cat > dune-workspace << EOF
> (lang dune 3.0)
> (context
> (opam
> (switch /absolute/path/to/opam/switch)))
> EOF

$ dune build
File "dune-workspace", line 4, characters 10-39:
4 | (switch /absolute/path/to/opam/switch)))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error: Generated context name "/absolute/path/to/opam/switch" is invalid
Please specify a context name manually with the (name ..) field
[1]

0 comments on commit 55680a1

Please sign in to comment.