Skip to content

fix: resolve hash mismatches when uploading files #96

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

CatalinSnyk
Copy link

@CatalinSnyk CatalinSnyk commented Apr 15, 2025

Description

Picked from #94 to resolve hash mismatches when uploading files to the files-bundles-store. The changes just ensure the file content we send to the files-bundle-store is UTF8 encoded.

If you want to reproduce the hash mismatches using the CLI you can use this fixture (if you want to retrigger a mismatch after the file was uploaded successfully, just make some small content changes to the file content). Tested this manually with the CLI, not sure yet on how to test this 🤔

Checklist

  • Tests added and all succeed
  • Linted
  • README.md updated, if user-facing

🚨After having merged, please update the snyk-ls and CLI go.mod to pull in latest client.

Ref: CLI-777, CLI-871

@CLAassistant
Copy link

CLAassistant commented Apr 15, 2025

CLA assistant check
All committers have signed the CLA.

@github-actions github-actions bot added fix and removed fix labels Apr 15, 2025
@CatalinSnyk CatalinSnyk marked this pull request as ready for review April 15, 2025 08:10
@CatalinSnyk CatalinSnyk requested review from a team as code owners April 15, 2025 08:10
@github-actions github-actions bot added fix and removed fix labels Apr 15, 2025
@github-actions github-actions bot added fix and removed fix labels Apr 22, 2025
@PeterSchafer
Copy link
Contributor

Please don't merge these changes yet. I'm trying to reproduce the original mismatch issue first before merging this change. So far I'm not successful with the description above.

Copy link
Contributor

@PeterSchafer PeterSchafer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Issue: have tests that show the mismatch issue is solved.

@PeterSchafer PeterSchafer force-pushed the fix/bundle-utf8-encode-file-content branch 2 times, most recently from e5f7c6c to 2663ed7 Compare April 30, 2025 15:51
@PeterSchafer PeterSchafer force-pushed the fix/bundle-utf8-encode-file-content branch from 2663ed7 to 187f835 Compare April 30, 2025 15:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants