Skip to content

Failure: branch is not main #1070

Answered by doriable
doriable asked this question in Q&A
Discussion options

You must be logged in to vote

The reason this is occurring is because on old versions of the buf CLI, specifically versions older than v1.0.0-rc10, there is validation to check for the branch of a repository. The past feature known as branch is no longer supported and is omitted from the buf.lock when resolving dependencies, so there is an incompatibility between modules managed by the older versions of the CLI that still validate this field.

The recommended fix for this is the update your buf CLI. Also, ensure that your CI and/or buf-setup-action is also updated accordingly.

Past issues that reference this:

Replies: 1 comment

Comment options

doriable
Apr 14, 2022
Maintainer Author

You must be logged in to vote
0 replies
Answer selected by doriable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant