-
Notifications
You must be signed in to change notification settings - Fork 416
add font pkgs #58478
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
add font pkgs #58478
Conversation
Signed-off-by: Anushka Mittal <anushka.mittal@chainguard.dev>
Signed-off-by: Anushka Mittal <anushka.mittal@chainguard.dev>
Signed-off-by: Anushka Mittal <anushka.mittal@chainguard.dev>
🔄 Build Failed: Git Checkout Error
Build Details
Root Cause Analysis 🔍The git tag v2.14 in the repository points to commit de537a95240e0105546bed58e15b4a61be28cd89, but the package build expected it to point to commit 806b09b684deaeb6dba667670f965e7d27391a52. This mismatch is causing the build to fail as a safety measure to ensure the exact expected source code is being used. 🔍 Build failure fix suggestionsFound similar build failures that have been fixed in the past and analyzed them to suggest a fix: Similar PRs with fixes
Suggested ChangesFile: font-stix-otf.yaml
Replacement: Content: Click to expand fix analysisAnalysisAfter analyzing the similar fixed build failures, I notice a consistent pattern: in all cases, the expected commit hash for a specific git tag no longer matches what's in the repository. This happens when tags are moved in git repositories (force-pushed) to point to different commits than previously expected. In all three examples, the fix involved updating the The issue with the stixfonts repository is similar - the tag v2.14 is pointing to commit de537a95240e0105546bed58e15b4a61be28cd89, but the build configuration expects it to point to 806b09b684deaeb6dba667670f965e7d27391a52. Click to expand fix explanationExplanationThe build is failing because the expected commit hash specified in the YAML file (806b09b684deaeb6dba667670f965e7d27391a52) doesn't match the actual commit hash that the v2.14 tag points to in the repository (de537a95240e0105546bed58e15b4a61be28cd89). This mismatch causes the git-checkout step to fail as a safety measure. The melange build system is designed to verify that the exact expected source code is being used by checking commit hashes. When these don't match, the build fails to protect against potential security issues or unexpected changes. Updating the expected-commit hash to match the current commit hash that the tag points to will allow the build to proceed. This approach works because it aligns the build configuration with the current state of the upstream repository. The check exists to ensure reproducible builds and prevent supply chain attacks, but in this case, we need to acknowledge that the upstream tag has changed and update our expectation accordingly. This is precisely the same approach used in all three example fixes, where the expected-commit value was updated to match the actual commit hash that the corresponding tag pointed to. Click to expand alternative approachesAlternative Approaches
Was this comment helpful? Please use 👍 or 👎 reactions on this comment. |
Signed-off-by: Anushka Mittal <anushka.mittal@chainguard.dev>
Signed-off-by: Anushka Mittal <anushka.mittal@chainguard.dev>
No description provided.