-
Notifications
You must be signed in to change notification settings - Fork 92
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
System.Posix.Terminal.PosixString: Fix imports in HAVE_OPENPTY path #312
Conversation
@bgamari |
This is surprising. @TerrorJack, do you have any insight into what might be going on here? |
import System.OsString.Internal.Types (PosixString(..)) | ||
#if MIN_VERSION_filepath(1,5,0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#if MIN_VERSION_filepath(1,5,0) | |
#ifdef MIN_VERSION_os_string |
would be more robust, I think.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bgamari did you try this?
The wasm action downloads GHC from https://gitlab.haskell.org/ghc/ghc-wasm-meta/-/archive/master/ghc-wasm-meta-master.tar.gz , which I consider fragile. I'd much rather rely on GHCup here. |
@bgamari This is sufficient to fix the wasm32 job: diff --git a/cabal.project.wasm32-wasi b/cabal.project.wasm32-wasi
index 87a3e35..598e0f2 100644
--- a/cabal.project.wasm32-wasi
+++ b/cabal.project.wasm32-wasi
@@ -1,6 +1,7 @@
packages: .
package unix
+ flags: +os-string
ghc-options: -Wno-unused-imports
write-ghc-environment-files: always I believe other platforms should also follow suit since |
@TerrorJack if wasm doesn't compile with no If the cabal solver accepts |
@hasufell This then: diff --git a/cabal.project.wasm32-wasi b/cabal.project.wasm32-wasi
index 87a3e35..f6e34e2 100644
--- a/cabal.project.wasm32-wasi
+++ b/cabal.project.wasm32-wasi
@@ -5,4 +5,4 @@ package unix
write-ghc-environment-files: always
-allow-newer: all:base, all:filepath
+allow-newer: all:base The wasm build failure in this PR is caused by |
Edit: ah right, we have this:
And the |
db6647a
to
a234ee1
Compare
Hopefully the push above should fix this. |
This appears to have broken with the `os-string` split of `filepath-1.5`.
a234ee1
to
797f521
Compare
@hasufell do I need to worry about the FreeBSD failure here? |
@bgamari I think FreeBSD just needs a version bump, similar to haskell/bytestring@6c6d81a |
Probably not. I'm trying to get rid of cirrus CI. I already have two self hosted freebsd runners. |
@hasufell , what needs to happen to merge this? |
@bgamari are you asking for a release? I recently replied to an email about GHC release process and boot library bumps, but never got an answer. |
No, I am merely asking for this to be merged so that I can bump the GHC submodule reference. |
You're aware we don't want GHC to ship non-released unix versions though? |
Apologies, I had missed the questions in that email. I will reply on the thread.
Yes, I am aware of this. However, it is common practice for GHC upstream to point its submodules at unreleased submodule commits. These are bumped to released versions as maintainers are able to finalize their releases over the course of the GHC release process. In my coordination email I suggested the timeframe on which we would like this to happen: have a release prior to alpha 2, slated for the second week of March 2024. Does this seem reasonable to you? |
Thanks, @hasufell ! |
System.OsPath.Data.ByteString.Short
no longer exists as offilepath-1.5
and theos-string
split.