kepler.gl icon indicating copy to clipboard operation
kepler.gl copied to clipboard

[Bug] scripts /fix-dependencies.sh error

Open usoop opened this issue 2 years ago • 3 comments

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. git clone the latest version
  2. use npm 16 to install, following the instructions : https://github.com/keplergl/kepler.gl/blob/master/contributing/DEVELOPERS.md
  3. error occur after running yarn bootstrap:
[5/5] Building fresh packages...
$ yarn fix-dependencies && yarn workspaces run stab && yarn workspaces run prepublish && uber-licence &&  yarn build:umd && yarn build:types
$ ./scripts/fix-dependencies.sh
/bin/sh: 1: ./scripts/fix-dependencies.sh: not found
error Command failed with exit code 127.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 127.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
error Command failed with exit code 127.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Desktop (please complete the following information):

  • OS: Linux

usoop avatar Oct 05 '23 10:10 usoop

Windows chose the CR/LF model, while Linux uses the \n model. The file fix-dependencies.sh use the CR/LF model, dose not work in Linux. Fixed by sed -i -e 's/\r$//' fix-dependencies.sh

usoop avatar Oct 05 '23 10:10 usoop

@usoop So is this an issue? fix-dependencies.sh is executed under Ubuntu during tests without the issue that you encountered.

igorDykhta avatar Oct 11 '23 00:10 igorDykhta

Is it because I am using WSL? I tested again using Ubuntu in WSL, the error occurred again.

output 1 YGG~`2KM@E1EZ(66N}U3}BJ

output 2 JT Q9{ 6A~`0U~S@ QE{ XH

output 3 5(V}9ZJYSRUE8JG(EKUV_VA

Below is the output when I run fix-dependencies.sh separately. L$FX4X)O@UPNPI)UM40@EGC

usoop avatar Oct 11 '23 02:10 usoop