Skip to content

Commit

Permalink
Change pin names
Browse files Browse the repository at this point in the history
  • Loading branch information
AntoinePrv committed Jan 18, 2024
1 parent 916c646 commit 284f454
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions libmamba/src/core/solver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -219,8 +219,7 @@ namespace mamba

// Add dummy solvable with a constraint on the pin (not installed if not present)
auto [cons_solv_id, cons_solv] = installed->add_solvable();
// TODO set some "pin" key on the solvable so that we can retrieve it during error messages
const std::string cons_solv_name = fmt::format("pin-{}", m_pinned_specs.size());
const std::string cons_solv_name = fmt::format("pin on {}", pin);
cons_solv.set_name(cons_solv_name);
cons_solv.set_version("1");
cons_solv.add_constraints(solv::ObjQueue{ m_pool.matchspec2id(pin_ms) });
Expand Down

0 comments on commit 284f454

Please sign in to comment.