-
-
Notifications
You must be signed in to change notification settings - Fork 26
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
Allow specification of location of elm-json package via a flag #44
Comments
Hi @notquiteamonad 👋 So we're using @lydell Have you thought about making For the flag name, I agree that it's a bit annoying. We could name it |
I wasn't actually using I'm similarly unsure if the change would be possible at the
This seems odd as |
I don’t know much about Nix. But I have helped Brian Hicks debug a thing once: BrianHicks/elm-csv#3. Not sure if that helps. It was about installing elm-test, which also uses elm-tooling to install elm-json.
Close. elm-tooling doesn’t look for binaries in
I haven’t, because I don’t know much about Nix either. But if there’s a way for elm-tooling to just do the right thing in Nix it sounds like a good thing to implement. So if someone enthusiastic about Nix, Elm and npm steps up it could happen.
Do you mean it exists before running elm-review? If so, it’s strange that you get that Maybe you can make a small .js file that just tries to stat |
Having played around with the paths a bit more, I think I've figured out why it's not finding |
@notquiteamonad Have you been able to figure this out? If so, I'll close this issue :) |
Hey :) I think I've figured it out this morning, so I think the issue can be closed. I'm gonna do a bit more testing over the next couple of days and then find somewhere appropriate to either document it or make something other people can use. Thanks for your help at the beginning :) |
|
Nice, thanks for adding this 👍 |
Overview
Similar to the
--compiler
flag, I'd like to be able to specify the location of theelm-json
binary rather than elm-review trying to download it from GitHub.Motivation
The context for this is that I'm trying to develop a nix-based pre-commit hook to run elm-review as a check. Running in a pure shell, it isn't able to download the CLI from GitHub.
Potential Issues
It'll be necessary to figure out how to name this to differentiate it from the unrelated
--elmjson
flag.I'm happy to tackle this myself if it's something you're not against including.
The text was updated successfully, but these errors were encountered: