Skip to content

Commit

Permalink
Merge pull request #198 from gridbugs/replace-workspace_root-with-pro…
Browse files Browse the repository at this point in the history
…ject_root

Replace workspace_root with project_root
  • Loading branch information
akabe authored Feb 19, 2023
2 parents 54eed0a + fe3385d commit 961bcdc
Show file tree
Hide file tree
Showing 12 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion src/comm/dune
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
Stdin)
(flags (:standard
-thread
(:include %{workspace_root}/config/ocaml_flags.sexp)))
(:include %{project_root}/config/ocaml_flags.sexp)))
(preprocess (pps ppx_yojson_conv))
(libraries jupyter
jupyter.notebook))
2 changes: 1 addition & 1 deletion src/completor/dune
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
(modules Jupyter_completor
Merlin
Intf)
(flags ((:include %{workspace_root}/config/ocaml_flags.sexp)))
(flags ((:include %{project_root}/config/ocaml_flags.sexp)))
(preprocess (pps lwt_ppx ppx_yojson_conv))
(libraries jupyter
jupyter_log
Expand Down
2 changes: 1 addition & 1 deletion src/core/dune
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
AnsiCode
Json
Version)
(flags ((:include %{workspace_root}/config/ocaml_flags.sexp)))
(flags ((:include %{project_root}/config/ocaml_flags.sexp)))
(preprocess (pps ppx_yojson_conv))
(libraries unix uuidm ppx_yojson_conv_lib))
2 changes: 1 addition & 1 deletion src/kernel/dune
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
Channel_intf
Connection_info
Hmac)
(flags ((:include %{workspace_root}/config/ocaml_flags.sexp)))
(flags ((:include %{project_root}/config/ocaml_flags.sexp)))
(preprocess (pps lwt_ppx ppx_yojson_conv))
(libraries jupyter
jupyter_repl
Expand Down
2 changes: 1 addition & 1 deletion src/log/dune
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
(name jupyter_log)
(synopsis "A logging library for OCaml Jupyter kernel")
(modules Jupyter_log)
(flags ((:include %{workspace_root}/config/ocaml_flags.sexp)))
(flags ((:include %{project_root}/config/ocaml_flags.sexp)))
(preprocess (pps lwt_ppx))
(libraries lwt lwt.unix logs logs.lwt))
2 changes: 1 addition & 1 deletion src/main/dune
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
jupyter_repl
jupyter_completor
jupyter_kernel)
(flags ((:include %{workspace_root}/config/ocaml_flags.sexp))))
(flags ((:include %{project_root}/config/ocaml_flags.sexp))))
2 changes: 1 addition & 1 deletion src/notebook/dune
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
Process
Eval
Unsafe)
(flags ((:include %{workspace_root}/config/ocaml_flags.sexp)))
(flags ((:include %{project_root}/config/ocaml_flags.sexp)))
(libraries jupyter
uuidm
base64
Expand Down
2 changes: 1 addition & 1 deletion src/repl/dune
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
Error
Dir_trace
Compat)
(flags ((:include %{workspace_root}/config/ocaml_flags.sexp)))
(flags ((:include %{project_root}/config/ocaml_flags.sexp)))
(preprocess (pps lwt_ppx))
(libraries jupyter
jupyter_log
Expand Down
4 changes: 2 additions & 2 deletions tests/completor/dune
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
(libraries jupyter
jupyter_completor
ounit2)
(flags ((:include %{workspace_root}/config/ocaml_flags.sexp))))
(flags ((:include %{project_root}/config/ocaml_flags.sexp))))

(alias
(name runtest)
(deps test_completor.exe)
(action (chdir %{workspace_root}/test (run %{deps} -runner sequential))))
(action (chdir %{project_root}/test (run %{deps} -runner sequential))))
4 changes: 2 additions & 2 deletions tests/kernel/dune
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
(libraries jupyter
jupyter_kernel
ounit2)
(flags ((:include %{workspace_root}/config/ocaml_flags.sexp))))
(flags ((:include %{project_root}/config/ocaml_flags.sexp))))

(alias
(name runtest)
(deps test_kernel.bc)
(action (chdir %{workspace_root}/test (run %{deps} -runner sequential))))
(action (chdir %{project_root}/test (run %{deps} -runner sequential))))
2 changes: 1 addition & 1 deletion tests/notebook/dune
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
(preprocess (pps lwt_ppx ppx_deriving.show ppx_yojson_conv))
(libraries jupyter_notebook
ounit2)
(flags ((:include %{workspace_root}/config/ocaml_flags.sexp))))
(flags ((:include %{project_root}/config/ocaml_flags.sexp))))

(alias
(name runtest)
Expand Down
4 changes: 2 additions & 2 deletions tests/repl/dune
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
(libraries jupyter
jupyter_repl
ounit2)
(flags ((:include %{workspace_root}/config/ocaml_flags.sexp))))
(flags ((:include %{project_root}/config/ocaml_flags.sexp))))

(alias
(name runtest)
Expand All @@ -15,7 +15,7 @@
../fixtures/ocamlinit.ml
../fixtures/file.bin)
(action
(chdir %{workspace_root}/tests
(chdir %{project_root}/tests
(progn
(run %{dep:test_evaluation.bc})
(run %{dep:test_process.bc} -runner sequential)))))

0 comments on commit 961bcdc

Please sign in to comment.