Skip to content

test(repos): adjust git config in example repos to prevent autosigning - #1043

Merged
codejedi365 merged 1 commit into
python-semantic-release:masterfrom
codejedi365:test/adjust-compatibility
Oct 1, 2024
Merged

codejedi365 merged 1 commit into
python-semantic-release:masterfrom
codejedi365:test/adjust-compatibility

Conversation

@codejedi365

Copy link
Copy Markdown
Contributor

Purpose

  • Update testing configurations since git also supports tag signing configs

Rationale

While working on another repository, I realized that you can not only set commit.gpgsign = true but you can also set tag.gpgsign = true. We previously identified in this project during testing these cause errors not only in the CI but locally as you can't provide a password if this feature is tripped. Therefore in all of our example environments we must turn off the gpgsign configuration explicitly.

This PR adds the configuration to turn off tag signing in the local repository.

How did you test?

Set your global configuration to have all tags automatically signed and then try to run the test suite. Since the test suite pulls from your global git configuration as the default, the local repo will try to sign tags during the example repo construction which will cause it to fail.

How to Verify

# try this prior to this PR
git config --global tag.gpgsign true
pytest
# will fail

# checkout this PR and re-run pytest which will succeed

@codejedi365 codejedi365 self-assigned this Oct 1, 2024
@codejedi365
codejedi365 merged commit e263f46 into python-semantic-release:master Oct 1, 2024
@codejedi365
codejedi365 deleted the test/adjust-compatibility branch October 1, 2024 05:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant