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

regcool uses URL without the version #1004

Closed
Ana06 opened this issue Apr 22, 2024 · 3 comments · May be fixed by #1007
Closed

regcool uses URL without the version #1004

Ana06 opened this issue Apr 22, 2024 · 3 comments · May be fixed by #1007
Assignees
Labels
🐛 bug Something isn't working 🌀 FLARE-VM A package or feature to be used by FLARE-VM

Comments

@Ana06
Copy link
Member

Ana06 commented Apr 22, 2024

Details

regcool uses a URL without the version and breaks with updates. See the last daily run.

@Ana06 Ana06 added 🐛 bug Something isn't working 🌀 FLARE-VM A package or feature to be used by FLARE-VM labels Apr 22, 2024
@emtuls
Copy link
Member

emtuls commented Apr 23, 2024

For some reason, it seems that when we don't pass in a checksum, chocolately automatically attempts to validate the checksum of the newly downloaded file against the checksum of the previous package stored in the cache in our sources.
image

Because we don't want to force all packages to ignore checksums, we could add $env:ChocolateyIgnoreChecksums = $true to the top of the code (inside the try-catch) and this will act as if we set --ignore-checksums for the specific package, allowing it to install correctly.

@Ana06
Copy link
Member Author

Ana06 commented May 22, 2024

After looking into this in more detail, I realized that the issue is that we decreased the package version in https://github.com/mandiant/VM-Packages/pull/980/files#diff-cd5b9fb4bd04587cd2bc3389242f3113457aee36bf55f78267b859a0a3dde504 and didn't delete the higher versions from MyGet. This was causing that we were installing still the older version, for which the hash verification eventually broke.
Screenshot from 2024-05-22 12-03-57

I have fixed this issue by deleting the higher versions:
image

I am now able to install it without issues:
image

@Ana06 Ana06 closed this as completed May 22, 2024
@Ana06
Copy link
Member Author

Ana06 commented May 22, 2024

@emtuls did you want to add this package to the default config? 🤔

@Ana06 Ana06 added this to the FLARE-VM 2024 Q2 milestone Jun 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working 🌀 FLARE-VM A package or feature to be used by FLARE-VM
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants