Skip to content

Commit

Permalink
Fix order of steps in lint-fmt job
Browse files Browse the repository at this point in the history
Reworking fixing an error I introduced in
#937
  • Loading branch information
shonfeder committed May 31, 2024
1 parent fd18544 commit 48ba2f5
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions lib/lint.ml
Original file line number Diff line number Diff line change
Expand Up @@ -64,18 +64,20 @@ let fmt_spec ~base ~ocamlformat_source ~selection =
Option.value ~default:commit (commit_from_ocamlformat_source source)
in
let network = [ "host" ] in
install_ocamlformat source
[
user_unix ~uid:1000 ~gid:1000;
run ~network ~cache
"cd ~/opam-repository && (git cat-file -e %s || git fetch origin \
master) && git reset -q --hard %s && git log --no-decorate -n1 \
--oneline && opam update -u"
commit commit;
run ~network ~cache "opam depext -i dune";
(* Necessary in case current compiler < 4.08 *)
(* Not necessarily the dune version used by the project *)
workdir "/src";
]
@ install_ocamlformat source
@ [
user_unix ~uid:1000 ~gid:1000;
run ~network ~cache
"cd ~/opam-repository && (git cat-file -e %s || git fetch origin \
master) && git reset -q --hard %s && git log --no-decorate -n1 \
--oneline && opam update -u"
commit commit;
run ~network ~cache "opam depext -i dune";
(* Necessary in case current compiler < 4.08 *)
(* Not necessarily the dune version used by the project *)
workdir "/src";
copy [ "." ] ~dst:"/src/";
run
"opam exec -- dune build @fmt --ignore-promoted-rules || (echo \
Expand Down

0 comments on commit 48ba2f5

Please sign in to comment.