mkdir testrepo
cd testrepo
exec git init --initial-branch=main .

cp ../src/v1.yml rules.yml
cp ../src/.pint.hcl .
env GIT_AUTHOR_NAME=pint
env GIT_AUTHOR_EMAIL=pint@example.com
env GIT_COMMITTER_NAME=pint
env GIT_COMMITTER_EMAIL=pint@example.com
exec git add .
exec git commit -am 'import rules and config'

exec git checkout -b v2
mkdir empty
cd empty

! exec pint --no-color -c ../../src/.pint.hcl ci
! stdout .
cmp stderr ../../stderr.txt

-- stderr.txt --
level=INFO msg="Loading configuration file" path=../../src/.pint.hcl
level=INFO msg="Finding all rules to check on current git branch" base=main
level=ERROR msg="Execution completed with error(s)" err="no matching files"
-- src/v1.yml --
- record: rule1
  expr: sum(foo) by(job)
-- src/.pint.hcl --
ci {
  baseBranch = "main"
}
parser {
  relaxed = [".*"]
}
