-
Notifications
You must be signed in to change notification settings - Fork 105
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
Support for Elm installation when --ignore-scripts
is enabled
#163
Comments
this seems to be the closest to what i'm currently experiencing. I am trying to compile with webpack and elm-webpack-loader, and in a docker based container the compile always fails, but shortly after the failure of webpack, the process is still running it seems, as it downloads the dependencies, and compiles the file.
I have tried compiling once then running webpack, which is the output above, but if I hadn't done that, you would also see the downloading of dependencies. I have tried installing the linux binary for elm, but have the same behavior. I have no issues on mac os x. |
@kelly-tock does this issue happen when running In my case, in CI, I'm running:
...and it fails:
Sometimes it randomly works, but most times it does not. I'm at loss where that problem is coming from 😕 |
Hi,
We're migrating our project to 0.19 and are running into issues with the way the loader behaves when Elm binary is not installed (when
--ignore-scripts
is passed toyarn/npm install
). In 0.18 we had to manually install Elm by runningcd node_modules/elm && node install.js
, but now the whole process is easier and best described here:https://github.com/elm/compiler/blob/master/installers/npm/bin/elm#L3-L15
Now this works fine with a regular usage, however the first time we run the build it will always fail. Building the first file triggers the download and library installs, after which the other files build just fine, but the loader still fails the build for the first file. The whole process looks like this (logs from Google Cloud Build with
verbose: true
passed to Elm compiler):(other modules follow, but it all fails later with the following)
For now we're working around this by running
elm make <random_elm_file>
in our build scripts, but it would be good to avoid this.The text was updated successfully, but these errors were encountered: