-
Notifications
You must be signed in to change notification settings - Fork 500
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
Windows CI occasionally fails because Chocolately cannot install Gpg4win #1622
Comments
Thanks for tagging me! From what I can see in the logs, the installer for That would mean that line 24 from the installation script is where the error lies (this is coming up due to the explicitly set Get-ChildItem $toolsPath\*.exe | ForEach-Object { Remove-Item $_ -ea 0; if (Test-Path $_) { New-Item -ItemType File -Path "$_.ignore" '' }} I would think that there should be no "access denied" when listing the directory content (it is Windows, after all), but rather when removing items or creating new ones. I am too unfamiliar with GitHub workflows though to have a good idea on why this would not appear to be problematic every run. |
Perhaps one option would be to not use Chocolatey at all:
|
This would definitely be an option as soon as winget starts targeting Windows Server. This appears not to be the case in the near future though: microsoft/winget-cli#754 (comment) |
The "offline" installation method, as said in the mentioned comment, should be enough:
|
GPG on Windows seems to be regularly flaky, with all recent tests failing with what seems to be a change in GPG's output (example):
For now, I've disabled these tests, so this issue is no longer relevant. |
For info, this is because the output of |
...except that GPG on Windows doesn't like long paths 😢
|
Describe the bug
chezmoi's Windows continuous integration test occasionally fails because Chocolatey is unable to install Gpg4win, for example here. The error message looks like:
Here's chocolatey.log from the above run.
The relevant lines from chezmoi's GitHub Actions are https://github.com/twpayne/chezmoi/blob/master/.github/workflows/main.yml#L345-L350.
To reproduce
This is not easy to reproduce, it happens on GitHub Actions, and only occasionally. Each time it happens, the failure message is the same.
Expected behavior
Chocolately should reliably install Gpg4win each time.
Output of command with the
--verbose
flagn/a
Output of
chezmoi doctor
n/a
Additional context
n/a
cc @rasmuskriest as Chocolately expert
The text was updated successfully, but these errors were encountered: