-
Notifications
You must be signed in to change notification settings - Fork 37
Description
Hiya, I'm trying to run a CI workflow that uses elementary in the pipeline. On a fresh install of elementary on Windows I get a compilation error when running "npm run re:build".
The gentype files in rescript are improperly normalizing the paths of curry.js
":
When cloning elementary, src/Reconciler.gen.ts
and src/NodeRepr.gen.ts
correctly have the import statement:
import * as Curry__Es6Import from 'rescript/lib/es6/curry.js';
On running "npm run re:build", rescript improperly reformats the import statements to:
import * as Curry__Es6Import from 'rescript/lib/es6\curry.js';
It adds a backslash, only when building on Windows. It then attempts to build and fail.
This does not happen to any other files besides NodeRepr.gen.ts
and Reconciler.gen.ts
When running locally, I just need to manually fix it once and then I'm good to go. However, now that I'm using CI, this gets a lot more nasty to solve.
I did some research and it seems to be an unaddressed problem by the rescript maintainers:
rescript-lang/rescript#6331
I'm not sure how to fix it. Do you think you can remove the use of curry statements to avoid this problem unaddressed by the rescript developers?
Thanks!
Jack
PS: One of the Lunacys devs