Skip to content

Idea: cache checked packages to avoid manually passing --no-verify to brioche publish #371

@seasonedfish

Description

@seasonedfish

Hello and congrats on the recent release of 0.1.6!

I was reading the blog post, and after I read the section on Lazy publishing, I had an idea: what if brioche check had some way of signaling to brioche publish that a package had already been checked? This would avoid the need to run brioche publish with the --no-verify flag, allowing the safety measure of the last-step check to remain in place without sacrificing performance.

The way I imagine it could be implemented is that brioche check would compute a checksum of a project, and if checks are successful, it would write the checksum somewhere in $XDG_CACHE_HOME. Then, when brioche publish is run, it would first check if the checksum matches that of the cached checksum, and if it did, it would automatically skip checking.

What do you think? If this sounds sounds good, I'd be happy to cobble together a PR.

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