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

Update wasm bindists #173

Merged
merged 1 commit into from
Mar 2, 2024
Merged

Update wasm bindists #173

merged 1 commit into from
Mar 2, 2024

Conversation

TerrorJack
Copy link
Contributor

@hasufell If you wouldn't mind, I'm counting on you to sign the yaml payload here :)

@@ -27,30 +27,29 @@ ghcupDownloads:
dlUri: https://downloads.haskell.org/~ghcup/unofficial-bindists/ghc/javascript-unknown-ghcjs-9.6.2/ghc-javascript-unknown-ghcjs-9.6.2-aarch64-apple-darwin.tar.xz
dlHash: 0d65bb3940a820d95b4b33ea0cd61bf39670d48c4d8f747153ded01a7ef34821
dlSubdir: ghc-9.6.2-javascript-unknown-ghcjs
wasm32-wasi-9.6.3.20230927:
wasm32-wasi-9.6.4:
Copy link
Member

Choose a reason for hiding this comment

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

Why replace and not extend?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The old bindists must be used with an old wasi-sdk, since our recent update in the toolchain contains ABI breaking change. Given the official installation guide still uses ghc-wasm-meta's master branch which will contain the new toolchain, it makes sense to simply replace the old bindists.

Copy link
Member

Choose a reason for hiding this comment

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

The idea generally in ghcup is to be append only.

We can print a post-install message to tell users to use a specific ghc-wasm-meta commit to use with the bindist version.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I see. I appended to the legacy bindists now.

Copy link
Member

Choose a reason for hiding this comment

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

What is the ghc-wasm-meta commit that will work?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

til viPostInstall, thanks and i'll push the change later. where is this metadata documented, may i ask?

Copy link
Member

Choose a reason for hiding this comment

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

There's no comprehensive documentation about it.

You basically have to follow the types: https://github.com/haskell/ghcup-hs/blob/190d308ddf4a95f2024f9fc3ca8a1f14d3f62711/lib/GHCup/Types.hs#L76-L81

We tried to do a json schema once, but that stalled.

Copy link
Member

Choose a reason for hiding this comment

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

I just noticed that post-install is not really appropriate, because you need the wasm environment sourced before installing the cross GHC. We need pre install message. I'll have to add that as a new feature for the next release.

Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

docs change: haskell/ghcup-hs#1017

@hasufell hasufell merged commit f39585c into haskell:develop Mar 2, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants