Skip to content

Conversation

fendor
Copy link
Collaborator

@fendor fendor commented Sep 15, 2025

Circle CI runs its builds with -Werror. Thus, we need to fix the warning that was accidentally introduced.

See for example the logs of the job https://circleci.com/gh/haskell/haskell-language-server/70398 in #4726

@fendor fendor requested a review from jian-lin as a code owner September 15, 2025 09:20
@fendor fendor added the merge me Label to trigger pull request merge label Sep 15, 2025
@mergify mergify bot merged commit 808407b into haskell:master Sep 15, 2025
48 of 51 checks passed
@@ -5,7 +5,6 @@ import Control.Arrow ((>>>))
import Control.Exception (throw)
import Control.Lens ((^.))
import Data.Maybe (fromJust)
import Data.String.Interpolate (__i)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Thanks for the fix and sorry for the extra work.


I am aware that this import line is redundant after #4717 is merged. However, I am surprised that this causes CI failures since the circleci check did pass before I merged #4626.

I have done some digging and found the cause. The default behavior of GitHub's actions/checkout is merging the PR branch and the target branch. On the contrary, the default behavior of circleci's checkout does not do the merge. Both of them can be configured to change to another behavior. Here is GitHub's doc. I do not find the doc of circleci, but it should be doable.

It is debatable whether we should do the merge in the checkout action or not. However, having different behaviors in different CI checks is just wrong, I think. We should choose one single checkout behavior for all CI checks.

related: https://www.github.com/actions/checkout/issues/504

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge me Label to trigger pull request merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants