Skip to content
This repository was archived by the owner on Sep 17, 2023. It is now read-only.

refactor: split package into binary and library crate #153

Closed
wants to merge 2 commits into from

Conversation

EricCrosson
Copy link
Contributor

@EricCrosson EricCrosson commented May 1, 2022

  • use anyhow for error handling

The `lint-dependency-version` subcommand takes a list of dependencies,
and for each dependency will test that there is at most one version
of that dependency in use throughout the target monorepo.

If this condition is violated, the command will exit non-zero exit code.

The plan is to use this in CI to enforce monorepo invariants for using
only a single version of a given external dependency; for example,
`typescript`.

Ideally we separate out the library and binary code in this crate,
and later we can write multiple binaries that use this library, one
of which will invoke this new code and can function as a stand-alone
Drone plugin. Thinking about it now, the coupling to Drone is not a
goal of this crate but importing the library portion of this codebase
from a different crate will be a prerequisite for the plugin.
@EricCrosson EricCrosson changed the title feat: add subcommand to lint depenendency versions for consistent values refactor: split package into binary and library crate May 1, 2022
Copy link
Contributor

@ocornoc ocornoc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm a big user of anyhow, glad to see it being used here!

@ericcrosson-bitgo
Copy link

I'm a big user of anyhow, glad to see it being used here!

Neat! Dawid recommended it to me. You think anyhow was the right choice over thiserror?

@EricCrosson
Copy link
Contributor Author

Superseded by #156

@EricCrosson EricCrosson closed this May 7, 2022
@EricCrosson EricCrosson deleted the refactor-code-into-a-library-crate branch May 7, 2022 20:51
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants