Skip to content

Sanitize git log output used in for Go release template #91

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 5, 2021

Conversation

per1234
Copy link
Contributor

@per1234 per1234 commented Jul 5, 2021

This is a sync of a downstream fix: arduino/arduino-cli#1344

The Go release system uses a git log command to determine the commit in order to populate the
output of the application's version command. The expected output of the command is solely the short hash. With the
previous command, that expectation was not realized under the following conditions:

  • The log.showSignature Git configuration option is set to true.
  • The commit being built was signed (as is always the case when a commit is made via the GitHub web interface).

In this case, the signing information is shown in addition to the hash, breaking the build system.

The Go release system uses a `git log` command to determine the commit in order to populate the
output of the application's `version` command. The expected output of the command is solely the short hash. With the
previous command, that expectation was not realized under the following conditions:

- The `log.showSignature` Git configuration option is set to true.
- The commit being built was signed (as is always the case when a commit is made via the GitHub web interface).

In this case, the signing information is shown in addition to the hash, breaking the build system.
@per1234 per1234 added type: imperfection Perceived defect in any part of project topic: code Related to content of the project itself labels Jul 5, 2021
@per1234 per1234 requested a review from silvanocerza July 5, 2021 13:40
@per1234 per1234 merged commit 8543041 into main Jul 5, 2021
@per1234 per1234 deleted the no-show-signature branch July 5, 2021 23:04
@per1234 per1234 self-assigned this Nov 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants