Closed hanjoosten closed 4 months ago
@hanjoosten, thanks for reporting. I'll look into that. It looks like Stack has found two registered packages named ampersand
: ampersand-5.0.1-G6syaMm3Din5CQNCRZEFuf
(which it has just built and registered) and ampersand-5.0.0-AQQ0gklhJa5L1ps1ZBcR0S
(not sure where that has come from - a cache?). That is supposed to be impossible because Stack is supposed to unregister local packages.
@hanjoosten, if that was not a one-off glitch and is repeatable, could you possibly temporarily add the --verbose
flag to Stack's build step in your workflow : stack --verbose ...
. The extra information in the output may assist.
Thanks for looking into this. I remember bumping in an 'The impossible happend!' error some time ago. Then it helped to just rerun the GitHub job once again. It is likely to be related to caching. The job is defined here.
I don't want to disturb the log, so I created a new branch, from witch I will do some test releases. I will add the --verbose
flag. Do you have access to the logs? In that case I can provide the links instead of copying.
@hanjoosten, a link to the logs is fine.
I cannot reproduce this in a new commit. However, a new attempt to do the same build (on the same commit) gave another error message: https://github.com/AmpersandTarski/Ampersand/actions/runs/7783988346/job/21788803189. This is the same run as the one of the first attemtp
@hanjoosten, looking at the line:
/Users/runner/.ghcup/bin/stack upgrade
That looks to me to be problematic. If you are using GHCup to manage Stack versions, you cannot use stack upgrade
. That is because GHCup uses an small executable named stack
and stack upgrade
will overwrite it with Stack.
@hanjoosten, I am going to close this issue. If the new error persists, please can you raise it as a distinct issue.
I tried to reproduce, but without luck. Maybe next time. Thanks for the effort, @mpilgrem
General summary/comments (optional)
During the release of ampersand v5.0.1, a build step failed for the macOS build only. The error message was:
Steps to reproduce
This happend at GitHub. The log can be viewed here: https://github.com/AmpersandTarski/Ampersand/actions/runs/7783988346/job/21223606807
Expected
I expect the build for macOS to succeed, as do the windows and linux builds of the same code.
Actual
The build failed with an error that requests to file an issue.