Skip to content

Report libraries using different versions in the workspace #562

@tengstrand

Description

@tengstrand

Help users identify libraries that have different versions in the workspace

Some users are fine with just a warning, while others want an easy way to check for inconsistent libraries both in their local development environment and on the CI server.

Suggested solution:

Add a :validations key in workspace.edn:

 :validations {:inconsistent-lib-versions {:type :warning
                                           :exclude []}}

The :type can be set to either :warning or :error.
Libraries that should not be validated are listed in :exclude.

If :inconsistent-lib-versions is specified, the tool will report warnings or errors (depending on :type) when two or more libraries are detected with mismatched versions in the check, info, and test commands, and returns an error code if an error (same behaviour as today).

Rows in the libs table that contain libraries with different versions are highlighted in yellow if :type is set to :warning, and in red if :type is set to :error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions