Skip to content
This repository was archived by the owner on Jan 28, 2025. It is now read-only.
This repository was archived by the owner on Jan 28, 2025. It is now read-only.

Breaking change: remove DeppySolver wrapper and export internal solver #161

@m1kola

Description

@m1kola

When we merge #160 (issue #154) which removes variable sources the DeppySolver becomes not very useful: just a thin wrapper around the solver from the internal package.

I think we can get rid of DeppySolver as well as Solution struct.

I think this should become something like below and get exported:

// Solve takes a slice containing all Variables and returns a slice
// containing only those Variables that were selected for
// installation. If no solution is possible an error is returned.
func (s *solver) Solve(vars []deppy.Variable) ([]deppy.Variable, error) {
	// ...
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/designCategorizes issue or PR as related to design.

    Type

    No type

    Projects

    Status

    Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions