siderolabs / conform

Policy enforcement for your pipelines.
Mozilla Public License 2.0
432 stars 45 forks source link

Reference not found from Number of Commits #184

Closed olivernybroe closed 3 years ago

olivernybroe commented 3 years ago

So I am trying to setup conform and I keep getting this error when running it.

I am right now in a branch from our default branch, and I have the full git history locally image

andrewrynhard commented 3 years ago

@olivernybroe Are you able to provide a way for me to reproduce?

olivernybroe commented 3 years ago

@andrewrynhard hmm, I'll try and make a branch for reproducing it here next week 👍

olivernybroe commented 3 years ago

@andrewrynhard Alright, so the issue seems to not have the default branch named master.

I cloned this repo and reproduced it here on my main branch https://github.com/olivernybroe/conform

andrewrynhard commented 3 years ago

Ah. Ok. I can look into getting support for main.

olivernybroe commented 3 years ago

@andrewrynhard awesome, yeah so it's basically a general issue related to the branch not pointing on a branch named master 👍

In my workplace we for some reason have the default branch named develop 🤣

andrewrynhard commented 3 years ago

@olivernybroe looks like we have support for specifying the branch... please try passing in --commit-ref=develop (or main).

olivernybroe commented 3 years ago

@andrewrynhard Alright cool that works, am I misunderstanding or we cannot set this via config file right?

andrewrynhard commented 3 years ago

Doesn't look like it. But that isn't a bad idea.

andrewrynhard commented 3 years ago

@olivernybroe I am going to close this, and create an issue to note the config changes.