Skip to content

Commit

Permalink
cudf: fix bad encoding of cudf package name
Browse files Browse the repository at this point in the history
  • Loading branch information
rjbou authored and kit-ty-kate committed Jul 2, 2024
1 parent ea8874d commit ac5510f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions master_changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ users)
## Actions

## Install
* Fix package name display for no agreement conflicts [#6055 @rjbou - fix #6030]

## Remove

Expand Down
2 changes: 1 addition & 1 deletion src/solver/opamCudf.ml
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ module Package = struct
type t = Cudf.package
include Dose_common.CudfAdd
let to_string = string_of_package
let name_to_string t = t.Cudf.package
let name_to_string t = OpamPackage.name_to_string (cudf2opam t)
let version_to_string t = string_of_int t.Cudf.version
let to_json = to_json
let of_json = of_json
Expand Down
2 changes: 1 addition & 1 deletion tests/reftests/empty-conflicts-007.test
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ opam-version: "2.0"
### opam switch create --empty encode-cudf
### opam install bar foo
[ERROR] Package conflict!
* No agreement on the version of ba%5fz:
* No agreement on the version of ba_z:
- bar -> ba_z < 2
- foo -> ba_z >= 3

Expand Down

0 comments on commit ac5510f

Please sign in to comment.