Skip to content

Commit

Permalink
refactor(pkg): s/Context_for_dune/Context/g (#11278)
Browse files Browse the repository at this point in the history
With the functor gone, this name can be shortened.

Signed-off-by: Rudi Grinberg <[email protected]>
  • Loading branch information
rgrinberg authored Jan 9, 2025
1 parent 08f16d6 commit 1848538
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/dune_pkg/opam_solver.ml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ module Priority = struct
;;
end

module Context_for_dune = struct
module Context = struct
type rejection =
| (* TODO proper error messages for packages skipped via avoid-version *)
Unavailable
Expand Down Expand Up @@ -257,7 +257,6 @@ module Context_for_dune = struct
end

module Solver = struct
module Context = Context_for_dune
open Pp.O

(* Copyright (c) 2020 Thomas Leonard <[email protected]>
Expand Down Expand Up @@ -929,7 +928,7 @@ let opam_package_to_lock_file_pkg
version_by_package_name
opam_package
~pinned_package_names
~(candidates_cache : (Package_name.t, Context_for_dune.candidates) Table.t)
~(candidates_cache : (Package_name.t, Context.candidates) Table.t)
=
let name = Package_name.of_opam_package_name (OpamPackage.name opam_package) in
let version =
Expand Down Expand Up @@ -1206,7 +1205,7 @@ let solve_lock_dir
let pinned_package_names = Package_name.Set.of_keys pinned_packages in
let stats_updater = Solver_stats.Updater.init () in
let context =
Context_for_dune.create
Context.create
~pinned_packages
~solver_env
~repos
Expand Down

0 comments on commit 1848538

Please sign in to comment.