sillsdev / sillsdev/languageforge-lexbox
Get-FileHash error in Powershell 7.5.0-rc.1?
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 9
- Forks
- 8
- Avg merge
- 2d 13h
- Merged PRs (30d)
- 49
Description
Describe the bug
I recently downloaded PowerShell 7.5.0-rc.1 on my Windows dev laptop. When I ran task setup, I got an error on the line $hash = Get-FileHash -Path $FilePath -Algorithm SHA256 saying "ObjectNotFound: (Get-FileHash:String) [], CommandNotFoundException". This resulted in the script thinking the checksum of sena-3.zip didn't match and it re-downloaded it.
Other versions of PowerShell ran our task setup ps1 script just fine.
I'll look into this at some point; it's possible that we need to change something in our Get-FileHash invocation in order to make it work with PowerShell 7.5 once it comes out. I don't see any mention of the syntax changing in the MSDN docs, though, so what needs to change is not immediately obvious.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the task setup PowerShell script and the Get-FileHash invocation shown in the report, then reproduce the failure with PowerShell 7.5.0-rc.1 and compare it with a working version. Done means task setup runs without CommandNotFoundException and validates the sena-3.zip checksum without an unnecessary re-download.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- powershell
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100