Skip to content
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

scripts: avoid pointless LICENSE churn #2087

Merged
merged 1 commit into from
Jan 29, 2025

Conversation

Villemoes
Copy link

I was wondering why a bot decided to force-push a commit to a PR of mine. It turns out the script responsible for generating the LICENSE file is not deterministic, so depending on random file system layout we can end up regenerating the LICENSE without any actual change. For example:

$ diff -u <(git show baf2067~1:LICENSE | sort) <(git show baf2067:LICENSE | sort)

shows that baf2067 didn't provide any change at all in the actual contents, yet

$ git show --stat baf2067
commit baf2067
Author: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Date: Wed Jan 22 21:42:44 2025 +0000

Auto-update LICENSE file with current recipe licenses

LICENSE | 256 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--------------------------------------------------------------
1 file changed, 128 insertions(+), 128 deletions(-)

I was wondering why a bot decided to force-push a commit to a PR of
mine. It turns out the script responsible for generating the LICENSE
file is not deterministic, so depending on random file system layout
we can end up regenerating the LICENSE without any actual change. For
example:

$ diff -u <(git show baf2067~1:LICENSE | sort) <(git show baf2067:LICENSE | sort)

shows that baf2067 didn't provide any change at all in the actual
contents, yet

$ git show --stat baf2067
commit baf2067
Author: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Date:   Wed Jan 22 21:42:44 2025 +0000

    Auto-update LICENSE file with current recipe licenses

 LICENSE | 256 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--------------------------------------------------------------
 1 file changed, 128 insertions(+), 128 deletions(-)
@otavio otavio merged commit cb7b64c into Freescale:master Jan 29, 2025
Copy link
Contributor

Successfully created backport PR #2090 for styhead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants