-
Notifications
You must be signed in to change notification settings - Fork 416
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pkg: copy files from opam repository to lock dir #8648
pkg: copy files from opam repository to lock dir #8648
Conversation
@@ -482,5 +482,40 @@ let solve_lock_dir solver_env version_preference (repo, repo_id) ~local_packages | |||
| Ok pkgs_by_name -> | |||
Lock_dir.create_latest_version pkgs_by_name ~ocaml:None ~repo_id | |||
in | |||
summary, lock_dir) | |||
let files = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rgrinberg Is there a better way to do this?
2293d33
to
991dbe3
Compare
|
||
The error message should have a location for the opam repository. | ||
|
||
This does not currently seem to be the case. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be fixed once this todo is resolved:
Lines 368 to 369 in b982acf
(* TODO figure out the loc situation *) | |
let repo_id = Option.map ~f:(fun repo_id -> Loc.none, repo_id) repo_id in |
@@ -13,4 +13,6 @@ val solve_lock_dir | |||
-> Version_preference.t | |||
-> Opam_repo.t * (Loc.t * Repository_id.t) option | |||
-> local_packages:OpamFile.OPAM.t OpamTypes.name_map | |||
-> (Summary.t * Lock_dir.t, [ `Diagnostic_message of _ Pp.t ]) result | |||
-> ( Summary.t * Lock_dir.t * Lock_dir.Write_disk.Files_entry.t Package_name.Map.Multi.t |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shall I make this a record?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not in this PR
991dbe3
to
e9e7772
Compare
Signed-off-by: Ali Caglayan <[email protected]>
Signed-off-by: Ali Caglayan <[email protected]>
e9e7772
to
eb3e3bb
Compare
Signed-off-by: Rudi Grinberg <[email protected]>
The opam solver now copies any files in the
files
directory inside a package directory in an opam repository.