You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@linkis.apache.org by GitBox <gi...@apache.org> on 2022/05/13 08:31:19 UTC

[GitHub] [incubator-linkis] casionone opened a new issue, #2111: [Bug] mvnw shell script is not unix line endings format

casionone opened a new issue, #2111:
URL: https://github.com/apache/incubator-linkis/issues/2111

   ### Search before asking
   
   - [X] I searched the [issues](https://github.com/apache/incubator-linkis/issues) and found no similar issues.
   
   
   ### Linkis Component
   
   linkis-commons
   
   ### What happened + What you expected to happen
   
   execute ./mvnw  in linux os 
   with `-bash: ./mvnw: /bin/sh^M: bad interpreter: No such file or directory` error msg 
   
   
   ### Relevent platform
   
   linux 
   
   
   ### Reproduction script
   
   in source code directory execute
   ./mvnw 
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit a PR?
   
   - [ ] Yes I am willing to submit a PR!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@linkis.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@linkis.apache.org
For additional commands, e-mail: notifications-help@linkis.apache.org


[GitHub] [incubator-linkis] casionone closed issue #2111: [Bug] mvnw shell script is not unix line endings format

Posted by GitBox <gi...@apache.org>.
casionone closed issue #2111: [Bug] mvnw shell script  is not unix line endings format
URL: https://github.com/apache/incubator-linkis/issues/2111


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@linkis.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@linkis.apache.org
For additional commands, e-mail: notifications-help@linkis.apache.org


[GitHub] [incubator-linkis] casionone commented on issue #2111: [Bug] mvnw shell script is not unix line endings format

Posted by GitBox <gi...@apache.org>.
casionone commented on issue #2111:
URL: https://github.com/apache/incubator-linkis/issues/2111#issuecomment-1127352782

   Under Windows, install the git client. By default, git clone the project to the local Windows, and git will force the newline character of the file to be converted to CTRL instead of LF.
   This will lead to the release package under the window. For the shell script to run directly under linux, there will be a newline problem.
   Need to set git config --global core.autocrlf false to turn off automatic conversion.
   
   ----
   
   Window下,安装git客户端,默认情况下,git clone 项目到Windows本地,git会强制将文件的换行符转成CTRL,而不是LF。
   这会导致window下打的发布包 ,对于shell脚本在linux下直接运行,会出现换行符问题 
   需要设置git config --global core.autocrlf false 关闭自动转换。


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@linkis.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@linkis.apache.org
For additional commands, e-mail: notifications-help@linkis.apache.org