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

container-image: provide a Monocle container based on UBI 8 #1070

Merged
merged 2 commits into from
Oct 24, 2023

Conversation

morucci
Copy link
Collaborator

@morucci morucci commented Oct 5, 2023

No description provided.

The Monocle build is done with ghc 9.4.6 Using 9.6.x was made difficult
due to dependencies requierments issues.

This patch includes changes:

- Remove usage of `isLowerCase` as only available in base >= 4.18
- Add some overrides in cabal-override.project
- Cap effectful-core to monocle.cabal to match the version used
  via Nix. 2.3.0.0 brings functions type changes.
@morucci morucci changed the title container-image: provide a Monocle container based on UBI 9 container-image: provide a Monocle container based on UBI 8 Oct 5, 2023
@@ -502,7 +502,7 @@ mkIndexName name = do
let check explanation p = if p then Right () else Left explanation
check "Is empty" $ not $ T.null name
check "Is longer than 255 bytes" $ BS.length (T.encodeUtf8 name) < 256
check "Contains uppercase letter(s)" $ T.all (\x -> not (isLetter x) || isLowerCase x) name
check "Contains uppercase letter(s)" $ T.all (\x -> not (isLetter x) || isLower x) name
Copy link
Contributor

Choose a reason for hiding this comment

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

What was the issue?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

On that image I use ghc 9.4 and it seems that isLowerCase is only available from base 4.18 1, however base 4.18 is available with ghc 9.6 2.

This PR uses ghc 9.4, however ideally using 9.6 will be better as that's the one we use under nix. Dependencies issues went a bit too far using 9.6 then I stopped and fallback to use 9.4 for now.

Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks for the explanation.

@TristanCacqueray TristanCacqueray added the merge me Trigger the merge process label Oct 24, 2023
@mergify mergify bot merged commit 159f027 into change-metrics:master Oct 24, 2023
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge me Trigger the merge process
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants