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

bug: development on Windows #266

Open
fetis opened this issue Jun 12, 2019 · 11 comments
Open

bug: development on Windows #266

fetis opened this issue Jun 12, 2019 · 11 comments
Labels
bug Something isn't working

Comments

@fetis
Copy link
Contributor

fetis commented Jun 12, 2019

Is this a feature request or a bug?

bug

Expected behavior:

npm install just works

Actual behavior:

postinstall scripts fail on Windows platform.

I know Windows is not very friendly platform for web-development, but ds is supposed to be cross-platform tool, so it would be nice have development env running there as well.

I suggest to replace direct bash command with npm package (like loop) or script which will execute npm i for desired directories.

Environment info (where relevant)

  • Browser: n/a
  • Operating System & Version: Windows any
  • Version of Node (node -v): v12.4.0
  • Version of ds (ds --version): 1.0.0
@zacanger
Copy link
Contributor

zacanger commented Jun 13, 2019

I think this is a good idea, since right now my PR (#263) on hacking in Windows is pretty much just "good luck." This would probably supersede #259.

I don't have Windows to test on, do you know if the install scripts are the only major issue? Last time I tried to get Docker with Linux containers working on Windows, I think I gave up after two days and a lot of tears.

@fetis
Copy link
Contributor Author

fetis commented Jun 13, 2019

@zacanger ds works for me and I haven't faced any issues so far. I'm getting more familiar with the project and I'm planning to try the registry locally as well.

@fetis
Copy link
Contributor Author

fetis commented Jun 16, 2019

ok, I give up.

I made postinstall script work for the whole repo, but there're more scripts
In registry test and start which require bash-like variables NODE_ENV=dev and will not run without big modifications.

docker-compose works but need some adjustments in run scripts

I think there's no sense to put more efforts into it.

@zacanger
Copy link
Contributor

Do you know if all those thing work in WSL? I wonder if the best thing for now would be to just recommend that folks use WSL or some other Unix-y layer in Windows, rather than trying to make sweeping changes across the project to make it Windows-friendl.

@fetis
Copy link
Contributor Author

fetis commented Jun 17, 2019

Do you know if all those thing work in WSL?

@zacanger I need to install this first. It might be challenging as well 🙈

@toddself
Copy link
Contributor

@zacanger ms provides free VMs with windows installed specifically for things like this (its how I used to test IE) (also not that you should need obligated to solve this issue!)

There is some relevant discussion in discourse about this and post-install scripts.

I don't think we've discussed what to do about legacy packages requiring them though

@toddself toddself added bug Something isn't working cli the ds command-line client labels Jun 17, 2019
@fetis
Copy link
Contributor Author

fetis commented Jun 17, 2019

@toddself cli label is not fully relevant. I would say cli development is quite possible so far, rather than registry.

@toddself
Copy link
Contributor

@fetis the bug mentions ds which is the ci tool and it failing to do something? (as in the bug exists in the cli tool and not the registry component)

@fetis
Copy link
Contributor Author

fetis commented Jun 17, 2019

@toddself https://github.com/entropic-dev/entropic/blob/master/package.json#L55
that's the original bug. it affects all the projects.

I fixed it and moved further, but encountered more and more problems #266 (comment)

@toddself
Copy link
Contributor

ah! sorry for the confusion!

@toddself toddself removed the cli the ds command-line client label Jun 17, 2019
@fetis
Copy link
Contributor Author

fetis commented Jun 17, 2019

current status
https://github.com/fetis/entropic/tree/win_dev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants